summaryrefslogtreecommitdiff
path: root/src/decrypt-verify.c
diff options
context:
space:
mode:
authorJinWang An <jinwang.an@samsung.com>2021-12-01 16:54:37 +0900
committerJinWang An <jinwang.an@samsung.com>2021-12-01 16:54:37 +0900
commit56c3832bc03cffe24fcca71370b668a6678d0cf9 (patch)
tree7d2ccfe8d9c60dbb012bb62d7fcd6820db56dc61 /src/decrypt-verify.c
parent398648eddb70bc844e1bc5996521e87dea3188e9 (diff)
downloadgpgme-upstream/1.12.0.tar.gz
gpgme-upstream/1.12.0.tar.bz2
gpgme-upstream/1.12.0.zip
Imported Upstream version 1.12.0upstream/1.12.0
Diffstat (limited to 'src/decrypt-verify.c')
-rw-r--r--src/decrypt-verify.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/decrypt-verify.c b/src/decrypt-verify.c
index 17f79ac..224edc1 100644
--- a/src/decrypt-verify.c
+++ b/src/decrypt-verify.c
@@ -58,7 +58,7 @@ decrypt_verify_start (gpgme_ctx_t ctx, int synchronous,
if (err)
return err;
- err = _gpgme_op_decrypt_init_result (ctx);
+ err = _gpgme_op_decrypt_init_result (ctx, plain);
if (err)
return err;
@@ -74,7 +74,7 @@ decrypt_verify_start (gpgme_ctx_t ctx, int synchronous,
if (ctx->passphrase_cb)
{
err = _gpgme_engine_set_command_handler
- (ctx->engine, _gpgme_passphrase_command_handler, ctx, NULL);
+ (ctx->engine, _gpgme_passphrase_command_handler, ctx);
if (err)
return err;
}
@@ -127,6 +127,7 @@ gpgme_op_decrypt_verify (gpgme_ctx_t ctx, gpgme_data_t cipher,
err = decrypt_verify_start (ctx, 1, GPGME_DECRYPT_VERIFY, cipher, plain);
if (!err)
err = _gpgme_wait_one (ctx);
+ ctx->ignore_mdc_error = 0; /* Always reset. */
return TRACE_ERR (err);
}
@@ -177,5 +178,6 @@ gpgme_op_decrypt_ext (gpgme_ctx_t ctx,
err = _gpgme_decrypt_start (ctx, 1, flags, cipher, plain);
if (!err)
err = _gpgme_wait_one (ctx);
+ ctx->ignore_mdc_error = 0; /* Always reset. */
return TRACE_ERR (err);
}