[git] GnuPG - branch, master, updated. gnupg-2.1.21-132-ge4c720f
by Marcus Brinkmann
cvs at cvs.gnupg.org
Fri Jul 21 20:04:05 CEST 2017
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU Privacy Guard".
The branch, master has been updated
via e4c720fa3b31ebd3e9d764c6eab02729cf06124c (commit)
from b55b72bb815ad5870456b89c3a011fa00991b4a8 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit e4c720fa3b31ebd3e9d764c6eab02729cf06124c
Author: Marcus Brinkmann <marcus.brinkmann at ruhr-uni-bochum.de>
Date: Fri Jul 21 20:01:10 2017 +0200
g10: Avoid caching passphrase for failed symmetric encryption.
* g10/mainproc.c (proc_encrypted): If error code is GPG_ERR_CIPHER_ALGO,
assume the symmetric passphrase was wrong and invalidate the cache.
Signed-off-by: Marcus Brinkmann <mb at g10code.com>
GnuPG-bug-id: 2270
diff --git a/g10/mainproc.c b/g10/mainproc.c
index fddafd8..d0584d3 100644
--- a/g10/mainproc.c
+++ b/g10/mainproc.c
@@ -681,7 +681,8 @@ proc_encrypted (CTX c, PACKET *pkt)
}
else
{
- if (gpg_err_code (result) == GPG_ERR_BAD_KEY
+ if ((gpg_err_code (result) == GPG_ERR_BAD_KEY
+ || gpg_err_code (result) == GPG_ERR_CIPHER_ALGO)
&& *c->dek->s2k_cacheid != '\0')
{
if (opt.debug)
-----------------------------------------------------------------------
Summary of changes:
g10/mainproc.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
hooks/post-receive
--
The GNU Privacy Guard
http://git.gnupg.org
More information about the Gnupg-commits
mailing list