From 2f59f6414f7e3291be93b19b47354f8b0a3c93f1 Mon Sep 17 00:00:00 2001 From: marinthiercelin Date: Mon, 25 Apr 2022 13:57:07 +0200 Subject: [PATCH] Return decrypted PGP/MIME content with wrong signatures When the PGP/MIME decryption encounters a signature verification error, it will keep decrypting the content and return it in the appropriate callbacks. This allows the caller to choose to display the content with a warning rather than just returning an error. --- crypto/mime.go | 1 - 1 file changed, 1 deletion(-) diff --git a/crypto/mime.go b/crypto/mime.go index 65dc89d..4d55cd0 100644 --- a/crypto/mime.go +++ b/crypto/mime.go @@ -45,7 +45,6 @@ func (keyRing *KeyRing) DecryptMIMEMessage( callbacks.OnError(embeddedSigError) callbacks.OnError(mimeSigError) callbacks.OnVerified(prioritizeSignatureErrors(embeddedSigError, mimeSigError)) - return } else if verifyKey != nil { callbacks.OnVerified(constants.SIGNATURE_OK) }