diff options
author | Brendan Cully <brendan@kublai.com> | 2007-07-14 17:26:16 -0700 |
---|---|---|
committer | Brendan Cully <brendan@kublai.com> | 2007-07-14 17:26:16 -0700 |
commit | 4c9e05938f77abf2433ebdc7e55accecb9dba301 (patch) | |
tree | a2b9478582d714473e675c1f45a2e865c383436a /crypt-gpgme.c | |
parent | dbda2f511421d3f719d00626f8872c5bf924dc5d (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.c | 3 |
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; |