Home GnuPG
Diffusion GnuPG e4c720fa3b31

g10: Avoid caching passphrase for failed symmetric encryption.

Description

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@g10code.com>
  • GnuPG-bug-id: T2270

Details

Provenance
marcusAuthored on Jul 21 2017, 8:01 PM
Parents
rGb55b72bb815a: gpg: Extend --quick-set-expire to allow subkey expiration setting.
Branches
Unknown
Tags
Unknown
Tasks
T2270: gpg caches bad symmetric passwords