Skip to content
This repository was archived by the owner on Oct 21, 2023. It is now read-only.

Commit

Permalink
Fix WTF where Verify does not return ErrBadSignature on bad signature
Browse files Browse the repository at this point in the history
  • Loading branch information
mixmasala committed Apr 4, 2020
1 parent 278b0c8 commit 1ddb4d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/cert/cert.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ func Verify(verifier Verifier, rawCert []byte) ([]byte, error) {
if verifier.Verify(sig.Payload, mesg) {
return cert.Certified, nil
}
return nil, nil
return nil, ErrBadSignature
}
}
return nil, ErrIdentitySignatureNotFound
Expand Down

0 comments on commit 1ddb4d1

Please sign in to comment.