aboutsummaryrefslogtreecommitdiffstats
path: root/agent/genkey.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2010-09-01 11:07:16 +0000
committerWerner Koch <[email protected]>2010-09-01 11:07:16 +0000
commit31bc3c8eddd53e0ca088bebf26b9173f2450e27b (patch)
treeae78047fe9da63ea906f7e66f93b2d521eb01f91 /agent/genkey.c
parentUse passphrase caching for import and genkey. (diff)
downloadgnupg-31bc3c8eddd53e0ca088bebf26b9173f2450e27b.tar.gz
gnupg-31bc3c8eddd53e0ca088bebf26b9173f2450e27b.zip
s/CACHE_MODE_IMPGEN/CACHE_MODE_NONCE/.
Prepare for more use cases of the cache nonce.
Diffstat (limited to 'agent/genkey.c')
-rw-r--r--agent/genkey.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/agent/genkey.c b/agent/genkey.c
index 60cc3416f..f46974e77 100644
--- a/agent/genkey.c
+++ b/agent/genkey.c
@@ -377,7 +377,7 @@ agent_genkey (ctrl_t ctrl, const char *cache_nonce,
void *cache_marker = NULL;
const char *cache_value;
- cache_value = agent_get_cache (cache_nonce, CACHE_MODE_IMPGEN,
+ cache_value = agent_get_cache (cache_nonce, CACHE_MODE_NONCE,
&cache_marker);
if (cache_value)
{
@@ -439,7 +439,7 @@ agent_genkey (ctrl_t ctrl, const char *cache_nonce,
cache_nonce = bin2hex (tmpbuf, 12, NULL);
}
if (cache_nonce
- && !agent_put_cache (cache_nonce, CACHE_MODE_IMPGEN,
+ && !agent_put_cache (cache_nonce, CACHE_MODE_NONCE,
passphrase, 900 /*seconds*/))
agent_write_status (ctrl, "CACHE_NONCE", cache_nonce, NULL);
}