1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

agent: New option --pinentry-formatted-passphrase

* agent/agent.h (opt): Add field pinentry_formatted_passphrase.
* agent/call-pinentry.c (setup_formatted_passphrase): New.
(agent_get_passphrase): Pass option to pinentry.
* agent/gpg-agent.c (oPinentryFormattedPassphrase): New.
(opts): Add option.
(parse_rereadable_options): Set option.
--

GnuPG-bug-id: 5517
This commit is contained in:
Ingo Klöcker 2021-07-12 12:20:28 +02:00 committed by Werner Koch
parent 29d58e9de7
commit bf20a80f68
No known key found for this signature in database
GPG key ID: E3FDFF218E45B72B
4 changed files with 104 additions and 0 deletions

View file

@ -465,6 +465,30 @@ 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}
@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
If passphrase formatting is enabled, then all non-breaking space characters
are stripped from the entered passphrase. Passphrase formatting is mostly
useful in combination with passphrases generated with the GENPIN command.
@item --pinentry-program @var{filename}
@opindex pinentry-program
Use program @var{filename} as the PIN entry. The default is