diff options
author | Ingo Klöcker <[email protected]> | 2021-08-12 08:47:34 +0000 |
---|---|---|
committer | Ingo Klöcker <[email protected]> | 2021-08-12 08:50:33 +0000 |
commit | 99601778f4a9dc1c9fee792361c959f5e0732cfd (patch) | |
tree | 84363a4e4389b824fd04d9ce817b92fc79dbd2c7 /doc/gpg-agent.texi | |
parent | w32: Move socketdir to LCOAL_APPDATA (diff) | |
download | gnupg-99601778f4a9dc1c9fee792361c959f5e0732cfd.tar.gz gnupg-99601778f4a9dc1c9fee792361c959f5e0732cfd.zip |
agent: Make --pinentry-formatted-passphrase a simple flag
* agent/agent.h (opt): Change type of pinentry_formatted_passphrase
to int (as for other flags).
* agent/call-pinentry.c (setup_formatted_passphrase): Remove no longer
needed translated strings. Write option without value to Assuan
connection.
* agent/gpg-agent.c (opts): Use ARGPARSE_s_n for
oPinentryFormattedPassphrase.
(parse_rereadable_options): Set option to 1.
--
GnuPG-bug-id: 5553, 5517
Diffstat (limited to 'doc/gpg-agent.texi')
-rw-r--r-- | doc/gpg-agent.texi | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/doc/gpg-agent.texi b/doc/gpg-agent.texi index e83dc6268..a061283d6 100644 --- a/doc/gpg-agent.texi +++ b/doc/gpg-agent.texi @@ -465,25 +465,10 @@ user input. The default value of 0 does not ask the pinentry to timeout, however a Pinentry may use its own default timeout value in this case. A Pinentry may or may not honor this request. -@item --pinentry-formatted-passphrase @var{n} +@item --pinentry-formatted-passphrase @opindex pinentry-formatted-passphrase -This option asks the Pinentry to use the mode @var{n} for passphrase -formatting when asking the user for a new passphrase. -Possible values are: -@table @code -@item 0 -Passphrase formatting is disabled. The option to change it is not shown, -so that the user cannot turn it on. This is the default. -@item 1 -Passphrase formatting is disabled. The option to change it is shown, so -that the user can turn it on. -@item 2 -Passphrase formatting is enabled. The option to change it is shown, but -disabled, so that the user cannot turn it off. -@item 3 -Passphrase formatting is enabled. The option to change it is shown, so -that the user can turn it off. -@end table +This option asks the Pinentry to enable passphrase formatting when asking the +user for a new passphrase and masking of the passphrase is turned off. If passphrase formatting is enabled, then all non-breaking space characters are stripped from the entered passphrase. Passphrase formatting is mostly |