1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-10-31 20:08:43 +01:00

doc: Add note regarding gpg-preset-passphrase and --max-cache-ttl.

--
GnuPG-bug-id: 1615
This commit is contained in:
Werner Koch 2014-06-24 13:46:52 +02:00
parent 6295b6675e
commit 74c7ab5fa6
2 changed files with 12 additions and 8 deletions

View File

@ -372,13 +372,16 @@ seconds. The default is 1800 seconds.
@opindex max-cache-ttl @opindex max-cache-ttl
Set the maximum time a cache entry is valid to @var{n} seconds. After Set the maximum time a cache entry is valid to @var{n} seconds. After
this time a cache entry will be expired even if it has been accessed this time a cache entry will be expired even if it has been accessed
recently. The default is 2 hours (7200 seconds). recently or has been set using @command{gpg-preset-passphrase}. The
default is 2 hours (7200 seconds).
@item --max-cache-ttl-ssh @var{n} @item --max-cache-ttl-ssh @var{n}
@opindex max-cache-ttl-ssh @opindex max-cache-ttl-ssh
Set the maximum time a cache entry used for SSH keys is valid to @var{n} Set the maximum time a cache entry used for SSH keys is valid to
seconds. After this time a cache entry will be expired even if it has @var{n} seconds. After this time a cache entry will be expired even
been accessed recently. The default is 2 hours (7200 seconds). if it has been accessed recently or has been set using
@command{gpg-preset-passphrase}. The default is 2 hours (7200
seconds).
@item --enforce-passphrase-constraints @item --enforce-passphrase-constraints
@opindex enforce-passphrase-constraints @opindex enforce-passphrase-constraints

View File

@ -1060,10 +1060,11 @@ may not be used and the passphrases for the to be used keys are given at
machine startup. machine startup.
Passphrases set with this utility don't expire unless the Passphrases set with this utility don't expire unless the
@option{--forget} option is used to explicitly clear them from the cache @option{--forget} option is used to explicitly clear them from the
--- or @command{gpg-agent} is either restarted or reloaded (by sending a cache --- or @command{gpg-agent} is either restarted or reloaded (by
SIGHUP to it). It is necessary to allow this passphrase presetting by sending a SIGHUP to it). Nite that the maximum cache time as set with
starting @command{gpg-agent} with the @option{--max-cache-ttl} is still honored. It is necessary to allow
this passphrase presetting by starting @command{gpg-agent} with the
@option{--allow-preset-passphrase}. @option{--allow-preset-passphrase}.
@menu @menu