diff options
author | David Shaw <[email protected]> | 2006-01-17 20:55:53 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2006-01-17 20:55:53 +0000 |
commit | dbe415ea61569fd7b0ad4a2fd56fe948c4bdbdca (patch) | |
tree | b85cc7a86b9f1f6ecea878b137084facdc7d0407 /util/errors.c | |
parent | * libcurl.m4: Add IDN, SSPI, NTLM, and TFTP defines. (diff) | |
download | gnupg-dbe415ea61569fd7b0ad4a2fd56fe948c4bdbdca.tar.gz gnupg-dbe415ea61569fd7b0ad4a2fd56fe948c4bdbdca.zip |
* keydb.h, passphrase.c (next_to_last_passphrase): New. "Touch" a
passphrase as if it was used (move from next_pw to last_pw).
* pubkey-enc.c (get_session_key): Use it here to handle the case where a
passphrase happens to be correct for a secret key, but yet that key isn't
the anonymous recipient (i.e. the secret key could be decrypted, but not
the session key). This also handles the case where a secret key is
located on a card and a secret key with no passphrase. Note this does not
fix bug 594 (anonymous recipients on smartcard do not work) - it just
prevents the anonymous search from stopping when the card is encountered.
Diffstat (limited to 'util/errors.c')
0 files changed, 0 insertions, 0 deletions