diff options
Diffstat (limited to '')
-rw-r--r-- | sm/certpath.c | 9 |
1 files changed, 7 insertions, 2 deletions
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; |