summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorHakan Olsson <ho@cvs.openbsd.org>2002-12-03 16:08:14 +0000
committerHakan Olsson <ho@cvs.openbsd.org>2002-12-03 16:08:14 +0000
commit598a4961c173bfaa5d2bc93dca7c38c7cbdb54c7 (patch)
tree9a201d70fc9eb6931d1c5f5e64e2b5f0a60b01a4 /sbin
parent9cfa5a947ffa05d6a93437ddc4903fcb3ee684c1 (diff)
LOG_DBG for missing ca/, certs/, crls/ dirs, not
log_error(). Suggested by markus@.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/isakmpd/x509.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/sbin/isakmpd/x509.c b/sbin/isakmpd/x509.c
index 3214d5c23a4..71905230155 100644
--- a/sbin/isakmpd/x509.c
+++ b/sbin/isakmpd/x509.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: x509.c,v 1.77 2002/09/11 09:50:44 ho Exp $ */
+/* $OpenBSD: x509.c,v 1.78 2002/12/03 16:08:13 ho Exp $ */
/* $EOM: x509.c,v 1.54 2001/01/16 18:42:16 ho Exp $ */
/*
@@ -42,6 +42,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <dirent.h>
+#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
@@ -679,7 +680,8 @@ x509_read_from_dir (X509_STORE *ctx, char *name, int hash)
dir = opendir (name);
if (!dir)
{
- log_error ("x509_read_from_dir: opendir (\"%s\") failed", name);
+ LOG_DBG ((LOG_CRYPTO, 10, "x509_read_from_dir: opendir (\"%s\") failed:"
+ "%s", name, strerror (errno)));
return 0;
}
@@ -783,10 +785,11 @@ x509_read_crls_from_dir (X509_STORE *ctx, char *name)
LOG_DBG ((LOG_CRYPTO, 40, "x509_read_crls_from_dir: reading CRLs from %s",
name));
- dir = opendir(name);
+ dir = opendir (name);
if (!dir)
{
- log_error ("x509_read_crls_from_dir: opendir (\"%s\") failed", name);
+ LOG_DBG ((LOG_CRYPTO, 10, "x509_read_crls_from_dir: opendir (\"%s\") "
+ "failed: %s", name, strerror (errno)));
return 0;
}