diff options
author | Werner Koch <wk@gnupg.org> | 2009-10-19 11:18:46 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2009-10-19 11:18:46 +0200 |
commit | 97be197d31314ce89b91683e6440c4630075296d (patch) | |
tree | ffe2d357588e22e0b06bdb16574ffca72c0d7412 /g10/mainproc.c | |
parent | Removed audit.h cruft which forced us to link against libksba. (diff) | |
download | gnupg2-97be197d31314ce89b91683e6440c4630075296d.tar.xz gnupg2-97be197d31314ce89b91683e6440c4630075296d.zip |
[g13] Add RECIPEINT and CREATE command.
[sm] Chnage --include-certs default
Diffstat (limited to 'g10/mainproc.c')
-rw-r--r-- | g10/mainproc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/g10/mainproc.c b/g10/mainproc.c index 4a8df6f57..c3d082c56 100644 --- a/g10/mainproc.c +++ b/g10/mainproc.c @@ -581,6 +581,7 @@ proc_encrypted( CTX c, PACKET *pkt ) } } else if( result == G10ERR_BAD_SIGN ) { + glo_ctrl.lasterr = result; log_error(_("WARNING: encrypted message has been manipulated!\n")); write_status( STATUS_BADMDC ); write_status( STATUS_DECRYPTION_FAILED ); @@ -593,6 +594,7 @@ proc_encrypted( CTX c, PACKET *pkt ) c->dek->s2k_cacheid); passphrase_clear_cache (NULL, c->dek->s2k_cacheid, 0); } + glo_ctrl.lasterr = result; write_status( STATUS_DECRYPTION_FAILED ); log_error(_("decryption failed: %s\n"), g10_errstr(result)); /* Hmmm: does this work when we have encrypted using multiple |