mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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
This commit is contained in:
parent
0802cbb59b
commit
99601778f4
4 changed files with 8 additions and 39 deletions
|
@ -108,13 +108,8 @@ struct
|
|||
upon this timeout value. */
|
||||
unsigned long pinentry_timeout;
|
||||
|
||||
/* Mode for the formatted passphrase option to use by pinentry.
|
||||
Possible values are:
|
||||
0 - Option is not shown (and off).
|
||||
1 - Option is shown, off by default, and user can change it.
|
||||
2 - Option is shown, on, and user cannot change it.
|
||||
3 - Option is shown, on by default, and user can change it. */
|
||||
unsigned int pinentry_formatted_passphrase;
|
||||
/* If set, then passphrase formatting is enabled in pinentry. */
|
||||
int pinentry_formatted_passphrase;
|
||||
|
||||
/* The default and maximum TTL of cache entries. */
|
||||
unsigned long def_cache_ttl; /* Default. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue