aboutsummaryrefslogtreecommitdiffstats
path: root/agent/gpg-agent.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2018-03-06 15:22:42 +0000
committerWerner Koch <[email protected]>2018-03-06 15:22:42 +0000
commitf060cb5c63923d6caec784f65f3bb0aadf52f795 (patch)
tree01c8cfb212800be36311b66d9899e607168641db /agent/gpg-agent.c
parentgpg: Fix regression in last --card-status patch (diff)
downloadgnupg-f060cb5c63923d6caec784f65f3bb0aadf52f795.tar.gz
gnupg-f060cb5c63923d6caec784f65f3bb0aadf52f795.zip
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 <[email protected]>
Diffstat (limited to '')
-rw-r--r--agent/gpg-agent.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/agent/gpg-agent.c b/agent/gpg-agent.c
index a1964ece8..bd9a471e8 100644
--- a/agent/gpg-agent.c
+++ b/agent/gpg-agent.c
@@ -2398,6 +2398,9 @@ handle_tick (void)
}
#endif
+ /* Need to check for expired cache entries. */
+ agent_cache_housekeeping ();
+
/* Check whether the homedir is still available. */
if (!shutdown_pending
&& (!have_homedir_inotify || !reliable_homedir_inotify)