summaryrefslogtreecommitdiff
path: root/radsecproxy.c
diff options
context:
space:
mode:
authorvenaas <venaas>2008-04-30 11:05:40 +0000
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2008-04-30 11:05:40 +0000
commit1b7b85df6f5350b605fccdb541de0d4de5e34b04 (patch)
treeaba330fb684680320542d42828f58bd3060ebf30 /radsecproxy.c
parent04512e4102e5708d07f1eea71b098c87177f4cdb (diff)
adjusted some loglevels
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@248 e88ac4ed-0b26-0410-9574-a7f39faa03bf
Diffstat (limited to 'radsecproxy.c')
-rw-r--r--radsecproxy.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/radsecproxy.c b/radsecproxy.c
index 66590ad..0fb13f4 100644
--- a/radsecproxy.c
+++ b/radsecproxy.c
@@ -775,13 +775,13 @@ int verifyconfcert(X509 *cert, struct clsrvconf *conf) {
r = type ? subjectaltnameaddr(cert, type, &addr) : subjectaltnameregexp(cert, GEN_DNS, conf->host, NULL);
if (r) {
if (r < 0) {
- debug(DBG_DBG, "verifyconfcert: No subjectaltname matching %s %s", type ? "address" : "host", conf->host);
+ debug(DBG_WARN, "verifyconfcert: No subjectaltname matching %s %s", type ? "address" : "host", conf->host);
return 0;
}
debug(DBG_DBG, "verifyconfcert: Found subjectaltname matching %s %s", type ? "address" : "host", conf->host);
} else {
if (!cnregexp(cert, conf->host, NULL)) {
- debug(DBG_ERR, "verifyconfcert: cn not matching host %s", conf->host);
+ debug(DBG_WARN, "verifyconfcert: cn not matching host %s", conf->host);
return 0;
}
debug(DBG_DBG, "verifyconfcert: Found cn matching host %s", conf->host);
@@ -789,14 +789,14 @@ int verifyconfcert(X509 *cert, struct clsrvconf *conf) {
}
if (conf->certcnregex) {
if (cnregexp(cert, NULL, conf->certcnregex) < 1) {
- debug(DBG_DBG, "verifyconfcert: CN not matching regex");
+ debug(DBG_WARN, "verifyconfcert: CN not matching regex");
return 0;
}
debug(DBG_DBG, "verifyconfcert: CN matching regex");
}
if (conf->certuriregex) {
if (subjectaltnameregexp(cert, GEN_URI, NULL, conf->certuriregex) < 1) {
- debug(DBG_DBG, "verifyconfcert: subjectaltname URI not matching regex");
+ debug(DBG_WARN, "verifyconfcert: subjectaltname URI not matching regex");
return 0;
}
debug(DBG_DBG, "verifyconfcert: subjectaltname URI matching regex");
@@ -2046,7 +2046,7 @@ int replyh(struct server *server, unsigned char *buf) {
/* once we set received = 1, rq may be reused */
rq->received = 1;
- debug(DBG_DBG, "replyh: passing reply to client %s", from->conf->name);
+ debug(DBG_INFO, "replyh: passing reply to client %s", from->conf->name);
sendreply(from, buf, from->conf->type == 'U' ? &fromsa : NULL);
pthread_mutex_unlock(&server->newrq_mutex);
return 1;