aboutsummaryrefslogtreecommitdiffstats
path: root/agent/agent.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2015-05-11 16:08:44 +0000
committerWerner Koch <[email protected]>2015-05-11 16:14:28 +0000
commitd7293cb317acc40cc9e5189cef33fe9d8b47e62a (patch)
treec4f78a96da5769cdbb52fc10fe237a9f6c64520c /agent/agent.h
parentagent: Add strings for use by future Pinentry versions. (diff)
downloadgnupg-d7293cb317acc40cc9e5189cef33fe9d8b47e62a.tar.gz
gnupg-d7293cb317acc40cc9e5189cef33fe9d8b47e62a.zip
agent: Add option --no-allow-external-cache.
* agent/agent.h (opt): Add field allow_external_cache. * agent/call-pinentry.c (start_pinentry): Act upon new var. * agent/gpg-agent.c (oNoAllowExternalCache): New. (opts): Add option --no-allow-external-cache. (parse_rereadable_options): Set this option. -- Pinentry 0.9.2 may be build with libsecret support and thus an extra checkbox is displayed to allow the user to get passwords out of an libsecret maintained cache. Security aware user may want to avoid this feature and may do this at runtime by enabling this option. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to '')
-rw-r--r--agent/agent.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/agent/agent.h b/agent/agent.h
index 4d28effa4..45f71eb19 100644
--- a/agent/agent.h
+++ b/agent/agent.h
@@ -128,6 +128,11 @@ struct
pinentry-mode=loopback is allowed. */
int allow_loopback_pinentry;
+ /* Allow the use of an external password cache. If this option is
+ enabled (which is the default) we send an option to Pinentry
+ to allow it to enable such a cache. */
+ int allow_external_cache;
+
int keep_tty; /* Don't switch the TTY (for pinentry) on request */
int keep_display; /* Don't switch the DISPLAY (for pinentry) on request */