diff options
author | Neal H. Walfield <[email protected]> | 2015-05-19 12:58:04 +0000 |
---|---|---|
committer | Neal H. Walfield <[email protected]> | 2015-05-19 13:01:00 +0000 |
commit | e201c20f25e7bed29088186c5f717d43047a0f4b (patch) | |
tree | 97b72a92dd749593c311dadbb896d9310261a9eb /agent/agent.h | |
parent | g10: detects public key encryption packet error properly. (diff) | |
download | gnupg-e201c20f25e7bed29088186c5f717d43047a0f4b.tar.gz gnupg-e201c20f25e7bed29088186c5f717d43047a0f4b.zip |
agent: Modify agent_clear_passphrase to support an ext. password cache.
* agent/agent.h (agent_get_passphrase): Add arguments keyinfo and
cache_mode. Update callers.
* agent/call-pinentry.c (agent_get_passphrase): Add arguments keyinfo
and cache_mode. If KEYINFO and CACHE_MODE describe a cachable key,
then send SETKEYINFO to the pinentry.
--
Signed-off-by: Neal H. Walfield <[email protected]>
Diffstat (limited to 'agent/agent.h')
-rw-r--r-- | agent/agent.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/agent/agent.h b/agent/agent.h index 45f71eb19..d5d6392a2 100644 --- a/agent/agent.h +++ b/agent/agent.h @@ -366,7 +366,8 @@ int agent_askpin (ctrl_t ctrl, const char *keyinfo, cache_mode_t cache_mode); int agent_get_passphrase (ctrl_t ctrl, char **retpass, const char *desc, const char *prompt, - const char *errtext, int with_qualitybar); + const char *errtext, int with_qualitybar, + const char *keyinfo, cache_mode_t cache_mode); int agent_get_confirmation (ctrl_t ctrl, const char *desc, const char *ok, const char *notokay, int with_cancel); int agent_show_message (ctrl_t ctrl, const char *desc, const char *ok_btn); |