null on fail. If the decryption fails, an exception will be set on err to provide information as to why the failure occurred.
ApplicationPkcs7Mime.decrypt
gmime.object.ObjectWrap decrypt(gmime.types.DecryptFlags flags, string sessionKey, gmime.decrypt_result.DecryptResult result)Attempts to decrypt the encrypted application/pkcs7-mime part.
When non-null, session_key should be a null-terminated string, such as the one returned by [gmime.decrypt_result.DecryptResult.getSessionKey] from a previous decryption. If the session_key is not valid, decryption will fail.
If result is non-null, then on a successful decrypt operation, it will be updated to point to a newly-allocated #GMimeDecryptResult with signature status information as well as a list of recipients that the part was encrypted to.
Parameters
flags | a #GMimeDecryptFlags |
sessionKey | session key to use or null |
result | the decryption result |
Returns
the decrypted MIME part on success or
Throws
[ErrorWrap]