remove a handful of log_warn that we should handle at a different place to
authorgilles <gilles@openbsd.org>
Wed, 14 Oct 2015 21:05:31 +0000 (21:05 +0000)
committergilles <gilles@openbsd.org>
Wed, 14 Oct 2015 21:05:31 +0000 (21:05 +0000)
make them really useful

usr.sbin/smtpd/ca.c

index 0332fc2..707087e 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: ca.c,v 1.15 2015/10/13 08:07:35 gilles Exp $  */
+/*     $OpenBSD: ca.c,v 1.16 2015/10/14 21:05:31 gilles Exp $  */
 
 /*
  * Copyright (c) 2014 Reyk Floeter <reyk@openbsd.org>
@@ -186,18 +186,14 @@ ca_verify_cb(int ok, X509_STORE_CTX *ctx)
        case X509_V_OK:
                break;
         case X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT:
-               log_warnx("warn: unable to get issuer cert");
                break;
         case X509_V_ERR_CERT_NOT_YET_VALID:
         case X509_V_ERR_ERROR_IN_CERT_NOT_BEFORE_FIELD:
-               log_warnx("warn: certificate not yet valid");
                break;
         case X509_V_ERR_CERT_HAS_EXPIRED:
         case X509_V_ERR_ERROR_IN_CERT_NOT_AFTER_FIELD:
-               log_warnx("warn: certificate has expired");
                break;
         case X509_V_ERR_NO_EXPLICIT_POLICY:
-               log_warnx("warn: no explicit policy");
                break;
        }
        return ok;