Home GnuPG
Diffusion GnuPG ebe12be034f0

agent: Serialize access to passphrase cache.

Description

agent: Serialize access to passphrase cache.

* agent/cache.c (encryption_lock): Remove.
(cache_lock): New.  Now, we have coarse grain lock to serialize
entire cache access.
(initialize_module_cache): Use CACHE_LOCK.
(init_encryption, new_data): Remove ENCRYPTION_LOCK.
(agent_flush_cache, agent_put_cache, agent_get_cache): Lock the cache.
  • GnuPG-bug-id: T3027
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Apr 7 2017, 1:39 AM
Differential Revision
D419: gpg-agent cache handling serialization
Parents
rGf1dc34f502a6: gpgscm: Avoid mutating integer.
Branches
Unknown
Tags
Unknown
Tasks
T3027: gpg-agent crash on macOS Sierra triggerd by ssh