aboutsummaryrefslogtreecommitdiffstats
path: root/g10/cardglue.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2005-05-03 22:27:07 +0000
committerWerner Koch <[email protected]>2005-05-03 22:27:07 +0000
commit6639bbf699b7625c3b674f39b30138ef835f00ee (patch)
tree361b9c9dab56e9e34628f8afc8989cee64c534d6 /g10/cardglue.h
parent* gpgkeys_hkp.c, gpgkeys_oldhkp.c, ksutil.h: Some minor cleanup and (diff)
downloadgnupg-6639bbf699b7625c3b674f39b30138ef835f00ee.tar.gz
gnupg-6639bbf699b7625c3b674f39b30138ef835f00ee.zip
* 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.
Diffstat (limited to 'g10/cardglue.h')
-rw-r--r--g10/cardglue.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/g10/cardglue.h b/g10/cardglue.h
index 7ab04f027..068a1aacf 100644
--- a/g10/cardglue.h
+++ b/g10/cardglue.h
@@ -194,6 +194,10 @@ int agent_openpgp_storekey (int keyno,
const unsigned char *m, size_t mlen,
const unsigned char *e, size_t elen);
+/* Clear a cached PIN. */
+void agent_clear_pin_cache (const char *sn);
+
+
#endif /*ENABLE_CARD_SUPPORT*/
#endif /*GNUPG_G10_CARDGLUE_H*/