diff options
author | Werner Koch <[email protected]> | 2005-05-03 22:27:07 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2005-05-03 22:27:07 +0000 |
commit | 6639bbf699b7625c3b674f39b30138ef835f00ee (patch) | |
tree | 361b9c9dab56e9e34628f8afc8989cee64c534d6 /g10/sign.c | |
parent | * gpgkeys_hkp.c, gpgkeys_oldhkp.c, ksutil.h: Some minor cleanup and (diff) | |
download | gnupg-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 '')
-rw-r--r-- | g10/sign.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/g10/sign.c b/g10/sign.c index 814f3816d..c65b8275e 100644 --- a/g10/sign.c +++ b/g10/sign.c @@ -808,6 +808,8 @@ sign_file( STRLIST filenames, int detached, STRLIST locusr, } mfx.md = md_open(0, 0); + if (DBG_HASHING) + md_start_debug (mfx.md, "sign"); /* If we're encrypting and signing, it is reasonable to pick the hash algorithm to use out of the recepient key prefs. */ @@ -1217,6 +1219,8 @@ sign_symencrypt_file (const char *fname, STRLIST locusr) if (opt.textmode) iobuf_push_filter (inp, text_filter, &tfx); mfx.md = md_open(0, 0); + if ( DBG_HASHING ) + md_start_debug (mfx.md, "symc-sign"); for (sk_rover = sk_list; sk_rover; sk_rover = sk_rover->next) { PKT_secret_key *sk = sk_rover->sk; |