From 7db161552c9b8c34f48c37b71867c8343c95adbd Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 12 Apr 2002 18:55:05 +0000 Subject: * scdaemon.c: New option --debug-sc N. * card.c (card_open): set it here. * card-p15.c (p15_prepare_key): Factored out common code from ... (p15_sign, p15_decipher): here and made the decryption work the regular way. --- scd/scdaemon.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scd/scdaemon.c') diff --git a/scd/scdaemon.c b/scd/scdaemon.c index 92bccec9e..a6f18cc36 100644 --- a/scd/scdaemon.c +++ b/scd/scdaemon.c @@ -60,6 +60,7 @@ enum cmd_and_opt_values oDebug, oDebugAll, oDebugWait, + oDebugSC, oNoGreeting, oNoOptions, oHomedir, @@ -86,6 +87,7 @@ static ARGPARSE_OPTS opts[] = { { oDebug, "debug" ,4|16, N_("set debugging flags")}, { oDebugAll, "debug-all" ,0, N_("enable full debugging")}, { oDebugWait,"debug-wait",1, "@"}, + { oDebugSC, "debug-sc", 1, N_("N|set OpenSC debug level to N")}, { oNoDetach, "no-detach" ,0, N_("do not detach from the console")}, { oLogFile, "log-file" ,2, N_("use a log file for the server")}, @@ -344,6 +346,7 @@ main (int argc, char **argv ) case oDebug: opt.debug |= pargs.r.ret_ulong; break; case oDebugAll: opt.debug = ~0; break; case oDebugWait: debug_wait = pargs.r.ret_int; break; + case oDebugSC: opt.debug_sc = pargs.r.ret_int; break; case oOptions: /* config files may not be nested (silently ignore them) */ -- cgit v1.2.3