aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/gpg/gpgbin/gpgbin.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/crypto/gpg/gpgbin/gpgbin.go')
-rw-r--r--lib/crypto/gpg/gpgbin/gpgbin.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/crypto/gpg/gpgbin/gpgbin.go b/lib/crypto/gpg/gpgbin/gpgbin.go
index a63dd886..a7eafacd 100644
--- a/lib/crypto/gpg/gpgbin/gpgbin.go
+++ b/lib/crypto/gpg/gpgbin/gpgbin.go
@@ -206,6 +206,11 @@ func parse(r io.Reader, md *models.MessageDetails) error {
md.SignatureError = "gpg: unsupported algorithm"
}
md.SignedBy = "(unknown signer)"
+ case "INV_RECP":
+ t := strings.SplitN(line, " ", 4)
+ if t[2] == "10" {
+ return fmt.Errorf("gpg: public key of %s is not trusted", t[3])
+ }
case "BEGIN_ENCRYPTION":
msgCollecting = true
case "SIG_CREATED":