agent: Cleanup caching code for command GET_PASSPHRASE.
authorWerner Koch <wk@gnupg.org>
Wed, 20 May 2015 14:13:55 +0000 (16:13 +0200)
committerWerner Koch <wk@gnupg.org>
Wed, 20 May 2015 14:20:24 +0000 (16:20 +0200)
commit78e0a30fb19010b48efd752e1a73af20f93be533
treed1820a1472f81e628d18ce388cc346141843b546
parentdde8ddffd37c9ef96cae2e2b1317d1dee607fc0b
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.

(backported from commit 23d2ef83cda644c6a83499f9327350d3371e8a17)
agent/command.c