diff options
| author | Adam Langley <agl@golang.org> | 2014-05-05 11:41:50 -0700 |
|---|---|---|
| committer | Adam Langley <agl@golang.org> | 2014-05-05 11:41:50 -0700 |
| commit | aa3adaf1aa5ad51e1aa2b29b5875fece929e9b75 (patch) | |
| tree | c188ce179e9dd4ea782937e99a5e0f88cafd0b2a /openpgp/errors/errors.go | |
| parent | df2851958a0ce56eeebd5354ee55aea25e9d9919 (diff) | |
| download | go-x-crypto-aa3adaf1aa5ad51e1aa2b29b5875fece929e9b75.tar.xz | |
go.crypto/openpgp: check for revoked keys.
R=agl
CC=golang-codereviews
https://golang.org/cl/95050043
Diffstat (limited to 'openpgp/errors/errors.go')
| -rw-r--r-- | openpgp/errors/errors.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/openpgp/errors/errors.go b/openpgp/errors/errors.go index cb3f319..6c4c2f1 100644 --- a/openpgp/errors/errors.go +++ b/openpgp/errors/errors.go @@ -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 { |
