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/command.c | |
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/command.c')
-rw-r--r-- | agent/command.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/agent/command.c b/agent/command.c index 3188bbd0e..8ed9a0f76 100644 --- a/agent/command.c +++ b/agent/command.c @@ -1519,7 +1519,7 @@ cmd_get_passphrase (assuan_context_t ctx, char *line) next_try: rc = agent_get_passphrase (ctrl, &response, desc, prompt, repeat_errtext? repeat_errtext:errtext, - opt_qualbar); + opt_qualbar, cacheid, CACHE_MODE_USER); xfree (repeat_errtext); repeat_errtext = NULL; if (!rc) @@ -1536,7 +1536,8 @@ cmd_get_passphrase (assuan_context_t ctx, char *line) char *response2; rc = agent_get_passphrase (ctrl, &response2, desc2, prompt, - errtext, 0); + errtext, 0, + cacheid, CACHE_MODE_USER); if (rc) break; if (strcmp (response2, response)) |