mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Add OPTION:cache-ttl-opt-preset to gpg-agent.
This option may be used to change the default ttl values use with the --preset option of GENKEY and PASSWD.
This commit is contained in:
parent
dd491d290a
commit
4caa768f1d
6 changed files with 31 additions and 7 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue