diff options
author | Werner Koch <[email protected]> | 2002-04-27 13:49:40 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2002-04-27 13:49:40 +0000 |
commit | 8460fb4a7325d1f009dae07c39dd48309cb7d361 (patch) | |
tree | 1ba30ec7a09fed9c152075b79e093c8491e509b2 /agent/cache.c | |
parent | * call-agent.c (start_agent): Make copies of old locales and check (diff) | |
download | gnupg-8460fb4a7325d1f009dae07c39dd48309cb7d361.tar.gz gnupg-8460fb4a7325d1f009dae07c39dd48309cb7d361.zip |
Debug message cleanups.
Fixed passphrase caching.
Diffstat (limited to 'agent/cache.c')
-rw-r--r-- | agent/cache.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/agent/cache.c b/agent/cache.c index 445c4c5a8..4819ad197 100644 --- a/agent/cache.c +++ b/agent/cache.c @@ -139,7 +139,7 @@ housekeeping (void) /* Store DATA of length DATALEN in the cache under KEY and mark it - with a maximum lifetime of TTL seconds. If tehre is already data + with a maximum lifetime of TTL seconds. If there is already data under this key, it will be replaced. Using a DATA of NULL deletes the entry */ int @@ -170,6 +170,8 @@ agent_put_cache (const char *key, const char *data, int ttl) } if (data) { + r->created = r->accessed = time (NULL); + r->ttl = ttl; r->pw = new_data (data, strlen (data)+1); if (!r->pw) log_error ("out of core while allocating new cache item\n"); |