Home GnuPG
Diffusion GnuPG f474249366e8

agent: Fix passphrase cache lookups.
f474249366e8Unpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

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: T2015
  • Signed-off-by: Justus Winter <justus@g10code.com>

Details

Provenance
justusAuthored on Jul 18 2016, 12:51 PM
Parents
rG7f4dd24b8803: build: Always build gpgtar.
Branches
Unknown
Tags
Unknown

Event Timeline

Justus Winter <justus@g10code.com> committed rGf474249366e8: agent: Fix passphrase cache lookups. (authored by Justus Winter <justus@g10code.com>).Jul 18 2016, 12:51 PM
justus mentioned this in Unknown Object (Maniphest Task).Mar 27 2017, 5:10 PM
justus mentioned this in Unknown Object (Maniphest Task).Mar 27 2017, 5:33 PM