1
0
mirror of https://github.com/DNSCrypt/dnscrypt-proxy.git synced 2024-12-29 00:30:30 +01:00

Fix unit tests

This commit is contained in:
Frank Denis 2020-03-20 22:40:29 +01:00
parent 0b87cc92b6
commit d80af74300

View File

@ -41,10 +41,11 @@ type Source struct {
}
func (source *Source) checkSignature(bin, sig []byte) (err error) {
if signature, err := minisign.DecodeSignature(string(sig)); err == nil {
var signature minisign.Signature
if signature, err = minisign.DecodeSignature(string(sig)); err == nil {
_, err = source.minisignKey.Verify(bin, signature)
}
return
return err
}
// timeNow can be replaced by tests to provide a static value