mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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>
This commit is contained in:
parent
bf43b39c05
commit
f060cb5c63
4 changed files with 28 additions and 1 deletions
|
@ -450,6 +450,7 @@ int agent_clear_passphrase (ctrl_t ctrl,
|
|||
/*-- cache.c --*/
|
||||
void initialize_module_cache (void);
|
||||
void deinitialize_module_cache (void);
|
||||
void agent_cache_housekeeping (void);
|
||||
void agent_flush_cache (void);
|
||||
int agent_put_cache (const char *key, cache_mode_t cache_mode,
|
||||
const char *data, int ttl);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue