agent: Also evict cached items via a timer.
authorWerner Koch <wk@gnupg.org>
Tue, 6 Mar 2018 15:22:42 +0000 (16:22 +0100)
committerWerner Koch <wk@gnupg.org>
Tue, 6 Mar 2018 15:22:42 +0000 (16:22 +0100)
commitf060cb5c63923d6caec784f65f3bb0aadf52f795
tree01c8cfb212800be36311b66d9899e607168641db
parentbf43b39c05cfc68ea17483c78f14bfca6faf08eb
agent: Also evict cached items via a timer.

* agent/cache.c (agent_cache_housekeeping): New func.
* agent/gpg-agent.c (handle_tick): Call it.
--

This change mitigates the risk of having cached items in a post mortem
dump.

GnuPG-bug-id: 3829
Signed-off-by: Werner Koch <wk@gnupg.org>
agent/agent.h
agent/cache.c
agent/gpg-agent.c
doc/gpg-agent.texi