go.crypto/openpgp: check for revoked keys.

R=agl
CC=golang-codereviews
https://golang.org/cl/95050043
This commit is contained in:
Adam Langley
2014-05-05 11:41:50 -07:00
parent df2851958a
commit aa3adaf1aa
7 changed files with 290 additions and 41 deletions
+8
View File
@@ -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 {