aboutsummaryrefslogtreecommitdiffstats
path: root/sm/gpgsm.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2002-06-24 14:34:52 +0000
committerWerner Koch <[email protected]>2002-06-24 14:34:52 +0000
commit640688c4e290ec6fc2424759bf59e0a598ad7e01 (patch)
treeced7bbc0b9bbf34884f3b7da32b53b6e4d5c9c7e /sm/gpgsm.c
parent* certlist.c (gpgsm_add_to_certlist): Fixed locating of a (diff)
downloadgnupg-640688c4e290ec6fc2424759bf59e0a598ad7e01.tar.gz
gnupg-640688c4e290ec6fc2424759bf59e0a598ad7e01.zip
* gpgsm.c, gpgsm.h: New option --debug-no-path-validation.
* certpath.c (gpgsm_validate_path): Use it here instead of the debug flag hack. * certpath.c (check_cert_policy): Return No_Policy_Match if the policy file could not be opened.
Diffstat (limited to 'sm/gpgsm.c')
-rw-r--r--sm/gpgsm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sm/gpgsm.c b/sm/gpgsm.c
index 385648cb4..9fe3205cb 100644
--- a/sm/gpgsm.c
+++ b/sm/gpgsm.c
@@ -82,6 +82,7 @@ enum cmd_and_opt_values {
oDebug,
oDebugAll,
oDebugWait,
+ oDebugNoPathValidation,
oLogFile,
oEnableSpecialFilenames,
@@ -302,6 +303,7 @@ static ARGPARSE_OPTS opts[] = {
{ oDebug, "debug" ,4|16, "@"},
{ oDebugAll, "debug-all" ,0, "@"},
{ oDebugWait, "debug-wait" ,1, "@"},
+ { oDebugNoPathValidation, "debug-no-path-validation" ,1, "@"},
{ oStatusFD, "status-fd" ,1, N_("|FD|write status info to this FD") },
{ aDummy, "no-comment", 0, "@"},
{ aDummy, "completes-needed", 1, "@"},
@@ -844,6 +846,8 @@ 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 oDebugNoPathValidation: opt.no_path_validation = 1; break;
+
case oStatusFD: ctrl.status_fd = pargs.r.ret_int; break;
case oLoggerFD: log_set_fd (pargs.r.ret_int ); break;