go.crypto/openpgp: check for revoked keys.
R=agl CC=golang-codereviews https://golang.org/cl/95050043
This commit is contained in:
@@ -57,6 +57,14 @@ func (unknownIssuerError) Error() string {
|
||||
|
||||
var ErrUnknownIssuer error = unknownIssuerError(0)
|
||||
|
||||
type keyRevokedError int
|
||||
|
||||
func (keyRevokedError) Error() string {
|
||||
return "openpgp: signature made by revoked key"
|
||||
}
|
||||
|
||||
var ErrKeyRevoked error = keyRevokedError(0)
|
||||
|
||||
type UnknownPacketTypeError uint8
|
||||
|
||||
func (upte UnknownPacketTypeError) Error() string {
|
||||
|
||||
Reference in New Issue
Block a user