mirror of
git://git.gnupg.org/gnupg.git
synced 2024-06-08 23:37:47 +02:00
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.
This commit is contained in:
parent
3a9305439b
commit
23d2ef83cd
|
@ -1495,7 +1495,7 @@ cmd_get_passphrase (assuan_context_t ctx, char *line)
|
||||||
if (!strcmp (desc, "X"))
|
if (!strcmp (desc, "X"))
|
||||||
desc = NULL;
|
desc = NULL;
|
||||||
|
|
||||||
pw = cacheid ? agent_get_cache (cacheid, CACHE_MODE_NORMAL) : NULL;
|
pw = cacheid ? agent_get_cache (cacheid, CACHE_MODE_USER) : NULL;
|
||||||
if (pw)
|
if (pw)
|
||||||
{
|
{
|
||||||
rc = send_back_passphrase (ctx, opt_data, pw);
|
rc = send_back_passphrase (ctx, opt_data, pw);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user