1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00
Justus Winter f474249366 agent: Fix passphrase cache lookups.
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 <justus@g10code.com>
2016-07-18 12:51:38 +02:00
..
2016-07-18 12:51:38 +02:00
2015-10-28 10:20:17 +01:00
2015-11-17 12:50:22 +01:00
2014-12-02 14:13:53 +01:00
2016-01-05 10:15:49 +09:00
2007-07-04 19:49:40 +00:00
2015-11-17 12:50:22 +01:00
2007-07-04 19:49:40 +00:00