diff options
author | tobhe <tobhe@cvs.openbsd.org> | 2020-06-25 19:14:27 +0000 |
---|---|---|
committer | tobhe <tobhe@cvs.openbsd.org> | 2020-06-25 19:14:27 +0000 |
commit | 1c977b025a39dfd2fbf1dd67876fa238eb9b146b (patch) | |
tree | a8e9466364ba5b97a13af411d5103cb73bc255a8 | |
parent | 7c3c5e792ebbf6ffed17eb4a5f712bf5b164ccbe (diff) |
Silence ca_validate_pubkey() error message for cert type
IKEV2_CERT_X509_CERT.
-rw-r--r-- | sbin/iked/ca.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sbin/iked/ca.c b/sbin/iked/ca.c index 5034bb9d473..a5bd545926c 100644 --- a/sbin/iked/ca.c +++ b/sbin/iked/ca.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ca.c,v 1.62 2020/06/17 19:41:04 tobhe Exp $ */ +/* $OpenBSD: ca.c,v 1.63 2020/06/25 19:14:26 tobhe Exp $ */ /* * Copyright (c) 2010-2013 Reyk Floeter <reyk@openbsd.org> @@ -27,6 +27,7 @@ #include <dirent.h> #include <string.h> #include <signal.h> +#include <syslog.h> #include <errno.h> #include <err.h> #include <pwd.h> @@ -1379,7 +1380,9 @@ ca_validate_pubkey(struct iked *env, struct iked_static_id *id, } if ((fp = fopen(file, "r")) == NULL) { - log_info("%s: could not open public key %s", __func__, file); + /* Log to debug when called from ca_validate_cert */ + logit(len == 0 ? LOG_DEBUG : LOG_INFO, + "%s: could not open public key %s", __func__, file); goto done; } localkey = PEM_read_PUBKEY(fp, NULL, NULL, NULL); |