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

@ -108,6 +108,14 @@ 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;
/* The default and maximum TTL of cache entries. */
unsigned long def_cache_ttl; /* Default. */
unsigned long def_cache_ttl_ssh; /* for SSH. */