[gmime] Use gpgme_op_decrypt() for decrypting pkcs7 instead of decrypt_verify()



commit 86ab74b3c913628e63b114788512ade3fecb160b
Author: Jeffrey Stedfast <fejj gnome org>
Date:   Tue Mar 7 20:36:40 2017 -0500

    Use gpgme_op_decrypt() for decrypting pkcs7 instead of decrypt_verify()

 gmime/gmime-pkcs7-context.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gmime/gmime-pkcs7-context.c b/gmime/gmime-pkcs7-context.c
index b2d61fa..399fe46 100644
--- a/gmime/gmime-pkcs7-context.c
+++ b/gmime/gmime-pkcs7-context.c
@@ -618,7 +618,7 @@ pkcs7_decrypt (GMimeCryptoContext *context, GMimeDecryptFlags flags, const char
                gpgme_set_ctx_flag (pkcs7->ctx, "override-session-key", session_key);
        
        /* decrypt the input stream */
-       if ((error = gpgme_op_decrypt_verify (pkcs7->ctx, input, output)) != GPG_ERR_NO_ERROR) {
+       if ((error = gpgme_op_decrypt (pkcs7->ctx, input, output)) != GPG_ERR_NO_ERROR) {
                g_set_error (err, GMIME_GPGME_ERROR, error, _("Decryption failed: %s"), gpgme_strerror 
(error));
                
                if (flags & GMIME_DECRYPT_FLAGS_EXPORT_SESSION_KEY)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]