aboutsummaryrefslogtreecommitdiffstats
path: root/agent/agent.h
diff options
context:
space:
mode:
authorIngo Klöcker <[email protected]>2021-07-12 10:20:28 +0000
committerWerner Koch <[email protected]>2021-08-10 10:05:53 +0000
commitbf20a80f68449cc83b67c53ba9a0a84c45827ac4 (patch)
treea4c0e1469cb7755d7a7e2e6a74097d910a355a77 /agent/agent.h
parentbuild: Simplify for string.h and getopt.h. (diff)
downloadgnupg-bf20a80f68449cc83b67c53ba9a0a84c45827ac4.tar.gz
gnupg-bf20a80f68449cc83b67c53ba9a0a84c45827ac4.zip
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
Diffstat (limited to 'agent/agent.h')
-rw-r--r--agent/agent.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/agent/agent.h b/agent/agent.h
index 064b7be74..fb2adde79 100644
--- a/agent/agent.h
+++ b/agent/agent.h
@@ -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. */