1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

* 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.
This commit is contained in:
Werner Koch 2002-06-24 14:34:52 +00:00
parent 42cf865350
commit 640688c4e2
5 changed files with 18 additions and 5 deletions

View file

@ -127,7 +127,7 @@ check_cert_policy (KsbaCert cert)
log_error ("failed to open `%s': %s\n",
opt.policy_file, strerror (errno));
xfree (policies);
return GNUPG_Configuration_Error;
return GNUPG_No_Policy_Match;
}
for (;;)
@ -326,7 +326,7 @@ gpgsm_validate_path (CTRL ctrl, KsbaCert cert, time_t *r_exptime)
if (r_exptime)
*r_exptime = 0;
if ((opt.debug & 4096))
if (opt.no_path_validation)
{
log_info ("WARNING: bypassing path validation\n");
return 0;