summaryrefslogtreecommitdiffstats
path: root/crypt-gpgme.c
diff options
context:
space:
mode:
authorBrendan Cully <brendan@kublai.com>2007-07-14 17:26:16 -0700
committerBrendan Cully <brendan@kublai.com>2007-07-14 17:26:16 -0700
commit4c9e05938f77abf2433ebdc7e55accecb9dba301 (patch)
treea2b9478582d714473e675c1f45a2e865c383436a /crypt-gpgme.c
parentdbda2f511421d3f719d00626f8872c5bf924dc5d (diff)
GPGME: do not attempt to extract signatures unless gpgme_op_verify returned success.
Diffstat (limited to 'crypt-gpgme.c')
-rw-r--r--crypt-gpgme.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypt-gpgme.c b/crypt-gpgme.c
index 4469aa22..3809daab 100644
--- a/crypt-gpgme.c
+++ b/crypt-gpgme.c
@@ -1551,8 +1551,9 @@ static BODY *decrypt_part (BODY *a, STATE *s, FILE *fpout, int is_smime,
else if (maybe_signed)
err = gpgme_op_verify (ctx, ciphertext, NULL, plaintext);
+ if (err == GPG_ERR_NO_ERROR)
{
- /* Check wether signatures have been verified. */
+ /* Check whether signatures have been verified. */
gpgme_verify_result_t verify_result = gpgme_op_verify_result (ctx);
if (verify_result->signatures)
sig_stat = 1;