aboutsummaryrefslogtreecommitdiffstats
path: root/scd/scdaemon.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2023-11-17 13:40:38 +0000
committerWerner Koch <[email protected]>2023-11-21 07:35:01 +0000
commite43bd2a7a7831a2d23fb9aa06b913f17dad89478 (patch)
treea3830e7c6120765f9ef4ecbf9b41c340ebfaab7c /scd/scdaemon.c
parentpo: Update Japanese Translation. (diff)
downloadgnupg-e43bd2a7a7831a2d23fb9aa06b913f17dad89478.tar.gz
gnupg-e43bd2a7a7831a2d23fb9aa06b913f17dad89478.zip
scd: New option --debug-allow-pin-logging.
* scd/scdaemon.c (oDebugAllowPINLogging): New. (opts): Add option. (main): Set option. * scd/scdaemon.h (opt): Add debug_allow_pin_logging. * scd/apdu.c (pcsc_send_apdu): Do not hide the PIN dat in the debug output if the option is set. (send_apdu_ccid): Ditto. -- This option is only required during development.
Diffstat (limited to 'scd/scdaemon.c')
-rw-r--r--scd/scdaemon.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/scd/scdaemon.c b/scd/scdaemon.c
index e43769f85..ed7fdc03a 100644
--- a/scd/scdaemon.c
+++ b/scd/scdaemon.c
@@ -79,6 +79,7 @@ enum cmd_and_opt_values
oDebugAllowCoreDump,
oDebugCCIDDriver,
oDebugLogTid,
+ oDebugAllowPINLogging,
oDebugAssuanLogCats,
oNoGreeting,
oNoOptions,
@@ -138,6 +139,7 @@ static gpgrt_opt_t opts[] = {
ARGPARSE_s_n (oDebugAllowCoreDump, "debug-allow-core-dump", "@"),
ARGPARSE_s_n (oDebugCCIDDriver, "debug-ccid-driver", "@"),
ARGPARSE_s_n (oDebugLogTid, "debug-log-tid", "@"),
+ ARGPARSE_s_n (oDebugAllowPINLogging, "debug-allow-pin-logging", "@"),
ARGPARSE_p_u (oDebugAssuanLogCats, "debug-assuan-log-cats", "@"),
ARGPARSE_s_s (oLogFile, "log-file", N_("|FILE|write a log to FILE")),
@@ -587,6 +589,9 @@ main (int argc, char **argv )
case oDebugLogTid:
log_set_pid_suffix_cb (tid_log_callback);
break;
+ case oDebugAllowPINLogging:
+ opt.debug_allow_pin_logging = 1;
+ break;
case oDebugAssuanLogCats:
set_libassuan_log_cats (pargs.r.ret_ulong);
break;