diff options
author | Gilles Chehade <gilles@cvs.openbsd.org> | 2008-11-13 23:24:20 +0000 |
---|---|---|
committer | Gilles Chehade <gilles@cvs.openbsd.org> | 2008-11-13 23:24:20 +0000 |
commit | f4b3f944ee59f38d458c3e02da1cb27dbbc32416 (patch) | |
tree | dae4e72333a71710ca17b42bb3d5f269d0635a8c /usr.sbin | |
parent | 18853f0161ede0f827c86fb21bd8423ca0887aa9 (diff) |
- rephrase the "cannot load cert" warning that is output at startup when a
listen directive has no matching certificate. it sounds like a
critical failure when it just means "no tls support".
- minor log_debug() addition in smtp.c
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/smtpd/parse.y | 5 | ||||
-rw-r--r-- | usr.sbin/smtpd/smtp.c | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/usr.sbin/smtpd/parse.y b/usr.sbin/smtpd/parse.y index ab0deccb8c9..38f220a2b0e 100644 --- a/usr.sbin/smtpd/parse.y +++ b/usr.sbin/smtpd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.8 2008/11/10 22:35:23 gilles Exp $ */ +/* $OpenBSD: parse.y,v 1.9 2008/11/13 23:24:19 gilles Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org> @@ -238,7 +238,8 @@ main : QUEUE INTERVAL interval { flags = 0; if (ssl_load_certfile(conf, cert) < 0) { - log_warnx("could not load cert: %s", cert); + log_warnx("warning: could not load cert: %s," + "no SSL/TLS support", cert); if ($1 || $6 != NULL) { yyerror("cannot load certificate: %s", cert); diff --git a/usr.sbin/smtpd/smtp.c b/usr.sbin/smtpd/smtp.c index b49284439db..268494f17ff 100644 --- a/usr.sbin/smtpd/smtp.c +++ b/usr.sbin/smtpd/smtp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: smtp.c,v 1.4 2008/11/11 02:14:58 tedu Exp $ */ +/* $OpenBSD: smtp.c,v 1.5 2008/11/13 23:24:19 gilles Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org> @@ -552,6 +552,7 @@ smtp_accept(int fd, short event, void *p) return; } + log_debug("smtp_accept: accepted client on listener: %p", l); if ((s = calloc(1, sizeof(*s))) == NULL) fatal(NULL); len = sizeof(s->s_ss); |