From 6041ae63f3e21d692f5530408288a6008bfd78fc Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 2 Jul 2002 17:40:26 +0000 Subject: * certpath.c (check_cert_policy): Don't use log_error to print a warning. --- sm/certpath.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'sm/certpath.c') diff --git a/sm/certpath.c b/sm/certpath.c index 719f97b61..39fd0adfd 100644 --- a/sm/certpath.c +++ b/sm/certpath.c @@ -145,9 +145,14 @@ check_cert_policy (KsbaCert cert) if (feof (fp)) { fclose (fp); - log_error (_("certificate policy not allowed\n")); /* with no critical policies this is only a warning */ - return any_critical? GNUPG_No_Policy_Match : 0; + if (!any_critical) + { + log_info (_("note: certificate policy not allowed\n")); + return 0; + } + log_error (_("certificate policy not allowed\n")); + return GNUPG_No_Policy_Match; } fclose (fp); return GNUPG_Read_Error; -- cgit v1.2.3