diff options
Diffstat (limited to '')
-rw-r--r-- | agent/genkey.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/agent/genkey.c b/agent/genkey.c index 30e698f77..79b99e6e5 100644 --- a/agent/genkey.c +++ b/agent/genkey.c @@ -432,7 +432,7 @@ agent_genkey (ctrl_t ctrl, const char *cache_nonce, if (cache_nonce && !no_protection && !agent_put_cache (cache_nonce, CACHE_MODE_NONCE, - passphrase, CACHE_TTL_OPT_PRESET)) + passphrase, ctrl->cache_ttl_opt_preset)) agent_write_status (ctrl, "CACHE_NONCE", cache_nonce, NULL); if (preset && !no_protection) { @@ -442,7 +442,7 @@ agent_genkey (ctrl_t ctrl, const char *cache_nonce, { bin2hex(grip, 20, hexgrip); rc = agent_put_cache (hexgrip, CACHE_MODE_ANY, passphrase, - CACHE_TTL_OPT_PRESET); + ctrl->cache_ttl_opt_preset); } } } |