diff options
author | Werner Koch <[email protected]> | 2002-07-02 17:40:26 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2002-07-02 17:40:26 +0000 |
commit | 6041ae63f3e21d692f5530408288a6008bfd78fc (patch) | |
tree | caacf77896fa5438270d8dfa69bbff847d465a9f /sm/certpath.c | |
parent | * keydb.c (keydb_store_cert): Add optional ar EXISTED and changed (diff) | |
download | gnupg-6041ae63f3e21d692f5530408288a6008bfd78fc.tar.gz gnupg-6041ae63f3e21d692f5530408288a6008bfd78fc.zip |
* certpath.c (check_cert_policy): Don't use log_error to print a
warning.
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; |