diff options
author | Werner Koch <[email protected]> | 2015-05-20 14:13:55 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2015-05-20 14:14:22 +0000 |
commit | 23d2ef83cda644c6a83499f9327350d3371e8a17 (patch) | |
tree | 12de33c99ab22f2eaea4969d630ffcd348a90086 | |
parent | agent: When the password cache is cleared, also clear the ext. cache. (diff) | |
download | gnupg-23d2ef83cda644c6a83499f9327350d3371e8a17.tar.gz gnupg-23d2ef83cda644c6a83499f9327350d3371e8a17.zip |
agent: Cleanup caching code for command GET_PASSPHRASE.
* agent/command.c (cmd_get_passphrase): Read from the user cache.
--
We used to read the passphrase with mode CACHE_MODE_NORMAL but we put
it into the cache with CACHE_MODE_USER. However, agent_get_cache does
not yet distinguish between them and thus this does not change
anything.
-rw-r--r-- | agent/command.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/command.c b/agent/command.c index a5dce44be..f71325d55 100644 --- a/agent/command.c +++ b/agent/command.c @@ -1495,7 +1495,7 @@ cmd_get_passphrase (assuan_context_t ctx, char *line) if (!strcmp (desc, "X")) desc = NULL; - pw = cacheid ? agent_get_cache (cacheid, CACHE_MODE_NORMAL) : NULL; + pw = cacheid ? agent_get_cache (cacheid, CACHE_MODE_USER) : NULL; if (pw) { rc = send_back_passphrase (ctx, opt_data, pw); |