* passphrase.c (agent_get_passphrase): Add new arg CACHEID.
authorWerner Koch <wk@gnupg.org>
Tue, 3 May 2005 22:27:07 +0000 (22:27 +0000)
committerWerner Koch <wk@gnupg.org>
Tue, 3 May 2005 22:27:07 +0000 (22:27 +0000)
commit6639bbf699b7625c3b674f39b30138ef835f00ee
tree361b9c9dab56e9e34628f8afc8989cee64c534d6
parent5e6d360596efbf7d1c6008a8c8fbe60de7e40cba
* passphrase.c (agent_get_passphrase): Add new arg CACHEID.
Changed all callers.
(ask_passphrase): Add new arg CACHEID and use it in agent mode.
Changed all callers.
(passphrase_clear_cache): New arg CACHEID.  Changed all callers.
* cardglue.c (format_cacheid): New.
(pin_cb): Compute a cache ID.
(agent_scd_pksign, agent_scd_pkdecrypt): Use it.
(agent_clear_pin_cache): New.
* card-util.c (change_pin): Clear the PIN cache.
(check_pin_for_key_operation): Ditto.
g10/ChangeLog
g10/card-util.c
g10/cardglue.c
g10/cardglue.h
g10/keydb.h
g10/passphrase.c
g10/seckey-cert.c
g10/sign.c