gpg: Allow decryption using several passphrases in may cases.
authorWerner Koch <wk@gnupg.org>
Fri, 6 Jul 2018 06:24:57 +0000 (08:24 +0200)
committerWerner Koch <wk@gnupg.org>
Fri, 6 Jul 2018 06:24:57 +0000 (08:24 +0200)
commitb4599a0449ead7dc5c0d922aa78b6168e625e15e
tree8cd545a598be1d8516d8c0efb519d044c07c5aca
parent833738a316977ee774399bd658d535216dff22e9
gpg: Allow decryption using several passphrases in may cases.

* g10/mainproc.c (symkey_decrypt_seskey): Check for a valid algorithm.
(proc_symkey_enc): Clear passpharse on error from above function.
--

This does not work reliable as stated in bug 3795 but we can try to
fix ~95% of all cases.  The real fix is to use AEAD which will come
with 2.3

GnuPG-bug-id: 3795, 4050
Signed-off-by: Werner Koch <wk@gnupg.org>
g10/mainproc.c