diff options
author | NIIBE Yutaka <[email protected]> | 2017-04-06 23:39:26 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2017-04-06 23:39:26 +0000 |
commit | ebe12be034f052cdec871f0d8ad1bfab85d7b943 (patch) | |
tree | 32c96215b279237ef43db8e4d481abe1465a8b98 /tests/gpgscm/scheme.c | |
parent | gpgscm: Avoid mutating integer. (diff) | |
download | gnupg-ebe12be034f052cdec871f0d8ad1bfab85d7b943.tar.gz gnupg-ebe12be034f052cdec871f0d8ad1bfab85d7b943.zip |
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: 3027
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'tests/gpgscm/scheme.c')
0 files changed, 0 insertions, 0 deletions