Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | agent: Fix passphrase cache lookups. | Justus Winter | 2016-07-18 | 1 | -0/+29 |
CACHE_MODE_ANY is supposed to match any cache mode except CACHE_MODE_IGNORE, but the code used '==' to compare cache modes. * agent/cache.c (cache_mode_equal): New function. (agent_set_cache): Use the new function to compare cache modes. (agent_get_cache): Likewise. * tests/openpgp/Makefile.am (TESTS): Add new test. * tests/openpgp/issue2015.scm: New file. GnuPG-bug-id: 2015 Signed-off-by: Justus Winter <[email protected]> |