diff options
author | Werner Koch <wk@gnupg.org> | 2007-01-25 09:30:47 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2007-01-25 09:30:47 +0100 |
commit | 6cee3e66c25871a8d94bf0fd22be3579a4d1b775 (patch) | |
tree | d1f9bf251aa5ff3c6f0daad99613051f637af809 /doc | |
parent | * gpg.texi, specify-user-id.texi: Only some of the mentions of (diff) | |
download | gnupg2-6cee3e66c25871a8d94bf0fd22be3579a4d1b775.tar.xz gnupg2-6cee3e66c25871a8d94bf0fd22be3579a4d1b775.zip |
agent/
* protect-tool.c (get_passphrase): New arg OPT_CHECK.
(get_new_passphrase): Enable OTP_CHECK on the first call.
* command.c (cmd_get_passphrase): Implement option --check.
* gpg-agent.c (MIN_PASSPHRASE_LEN): New
(parse_rereadable_options): New option --min-passphrase-len.
* genkey.c (check_passphrase_constraints): New.
(agent_genkey, agent_protect_and_store): Call new function. Fix
memory leak.
* call-pinentry.c (agent_askpin): Allow translation of the displayed
error message.
(agent_popup_message_start): Remove arg CANCEL_BTN.
(popup_message_thread): Use --one-button option.
* command.c (cmd_passwd): Now that we don't distinguish between
assuan and regular error codes we can jump to the end on error.
common/
* simple-pwquery.c (simple_pwquery): New arg OPT_CHECK.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/gpg-agent.texi | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/doc/gpg-agent.texi b/doc/gpg-agent.texi index a1b7ac3b2..12c870588 100644 --- a/doc/gpg-agent.texi +++ b/doc/gpg-agent.texi @@ -334,6 +334,11 @@ Set the maximum time a cache entry used for SSH keys is valid to @var{n} seconds. After this time a cache entry will get expired even if it has been accessed recently. The default are 2 hours (7200 seconds). +@item --min-passphrase-len @var{n} +@opindex min-passphrase-len +Set the minimal length of a passphrase. When entereing a new passphrase +shorter than this value a warning will be displayed. Defaults to 8. + @item --pinentry-program @var{filename} @opindex pinentry-program Use program @var{filename} as the PIN entry. The default is installation @@ -972,7 +977,7 @@ special handling of passphrases. This command uses a syntax which helps clients to use the agent with minimum effort. @example - GET_PASSPHRASE [--data] @var{cache_id} [@var{error_message} @var{prompt} @var{description}] + GET_PASSPHRASE [--data] [--check] @var{cache_id} [@var{error_message} @var{prompt} @var{description}] @end example @var{cache_id} is expected to be a string used to identify a cached @@ -999,6 +1004,10 @@ limited by the maximum length of a command. If the option @option{--data} is used, the passphrase is not returned on the OK line but by regular data lines; this is the preferred method. +If the option @option{--check} is used, the standard passphrase +constraints checks are applied. A check is not done if the passphrase +has been found in the cache. + @example CLEAR_PASSPHRASE @var{cache_id} @end example |