aboutsummaryrefslogtreecommitdiffstats
path: root/agent/call-pinentry.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2015-05-11 08:23:24 +0000
committerWerner Koch <[email protected]>2015-05-11 08:23:24 +0000
commit14232c3870c5ef5d2fa15e8ed3f302b1ba29d25c (patch)
treec604fce0d1ca321f8cadc6a248bf5fb996478368 /agent/call-pinentry.c
parentgpg: Avoid cluttering stdout with trustdb info in verbose mode. (diff)
downloadgnupg-14232c3870c5ef5d2fa15e8ed3f302b1ba29d25c.tar.gz
gnupg-14232c3870c5ef5d2fa15e8ed3f302b1ba29d25c.zip
agent: Add option --debug-pinentry.
* agent/gpg-agent.c (oDebugPinentry): New. (opts): Add --debug-pinentry. (parse_rereadable_options): Set that option. * agent/call-pinentry.c (start_pinentry): Pass option to assuan_set_flag. -- This option is quite useful to see the IPC between gpg-agent and Pinentry. Note that "debug 1024" is also required. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to '')
-rw-r--r--agent/call-pinentry.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/call-pinentry.c b/agent/call-pinentry.c
index 0a0f95be8..8cbb33edd 100644
--- a/agent/call-pinentry.c
+++ b/agent/call-pinentry.c
@@ -332,7 +332,7 @@ start_pinentry (ctrl_t ctrl)
easier to read. We might want to add a new debug option to enable
pinentry logging. */
#ifdef ASSUAN_NO_LOGGING
- assuan_set_flag (ctx, ASSUAN_NO_LOGGING, 1);
+ assuan_set_flag (ctx, ASSUAN_NO_LOGGING, !opt.debug_pinentry);
#endif
/* Connect to the pinentry and perform initial handshaking. Note