From 7d9ed16fe6bfbb80755b2dba983e58435088bc63 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 31 Jan 2002 16:38:45 +0000 Subject: * genkey.c (store_key): Protect the key. (agent_genkey): Ask for the passphrase. * findkey.c (unprotect): Actually unprotect the key. * query.c (agent_askpin): Add an optional start_err_text. --- agent/cache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'agent/cache.c') diff --git a/agent/cache.c b/agent/cache.c index 96213712d..aa7a21b16 100644 --- a/agent/cache.c +++ b/agent/cache.c @@ -132,7 +132,7 @@ housekeeping (void) /* Store DATA of length DATALEN in the cache under KEY and mark it - with a maxiumum lifetime of TTL seconds. If tehre is already data + with a maximum lifetime of TTL seconds. If tehre is already data under this key, it will be replaced. Using a DATA of NULL deletes the entry */ int @@ -206,7 +206,7 @@ agent_get_cache (const char *key) { if (r->pw && !strcmp (r->key, key)) { - /* put_cache does onlu put strings into the cache, so we + /* put_cache does only put strings into the cache, so we don't need the lengths */ r->accessed = time (NULL); return r->pw->data; -- cgit v1.2.3