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.
This commit is contained in:
parent
7e0a46f7f6
commit
2f59f6414f
1 changed files with 0 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue