From bf20a80f68449cc83b67c53ba9a0a84c45827ac4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingo=20Kl=C3=B6cker?= Date: Mon, 12 Jul 2021 12:20:28 +0200 Subject: 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 --- agent/agent.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'agent/agent.h') 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. */ -- cgit v1.2.3