aboutsummaryrefslogtreecommitdiffstats
path: root/agent/command.c
diff options
context:
space:
mode:
authorNeal H. Walfield <[email protected]>2015-05-19 13:00:16 +0000
committerNeal H. Walfield <[email protected]>2015-05-19 13:01:01 +0000
commit3a9305439b75ccd4446378d4fd87da087fd9c892 (patch)
tree6d34efaf2d68216fbe4e34a7f9a2894dc23e4403 /agent/command.c
parentagent: Modify agent_clear_passphrase to support an ext. password cache. (diff)
downloadgnupg-3a9305439b75ccd4446378d4fd87da087fd9c892.tar.gz
gnupg-3a9305439b75ccd4446378d4fd87da087fd9c892.zip
agent: When the password cache is cleared, also clear the ext. cache.
* agent/agent.h (agent_clear_passphrase): New declaration. * agent/call-pinentry.c (agent_clear_passphrase): New function. * agent/command.c (cmd_clear_passphrase): Call agent_clear_passphrase. -- Signed-off-by: Neal H. Walfield <[email protected]>
Diffstat (limited to 'agent/command.c')
-rw-r--r--agent/command.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/agent/command.c b/agent/command.c
index 8ed9a0f76..a5dce44be 100644
--- a/agent/command.c
+++ b/agent/command.c
@@ -1602,6 +1602,10 @@ cmd_clear_passphrase (assuan_context_t ctx, char *line)
agent_put_cache (cacheid, opt_normal ? CACHE_MODE_NORMAL : CACHE_MODE_USER,
NULL, 0);
+
+ agent_clear_passphrase (ctrl, cacheid,
+ opt_normal ? CACHE_MODE_NORMAL : CACHE_MODE_USER);
+
return 0;
}