summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Faurot <eric@cvs.openbsd.org>2014-03-14 11:14:12 +0000
committerEric Faurot <eric@cvs.openbsd.org>2014-03-14 11:14:12 +0000
commit163cf8c181fc75f3313f69a4bf17cc6343051682 (patch)
tree366cd8ed8937cab3fa54a132d8e25a430570a5d5
parent590c834da399f0dd22f21801e3dc2edf172425c6 (diff)
more informative log message on unknown SNI.
looks better to tedu@, ok gilles@
-rw-r--r--usr.sbin/smtpd/smtp_session.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/smtp_session.c b/usr.sbin/smtpd/smtp_session.c
index c47f7d3c692..39a7b501f46 100644
--- a/usr.sbin/smtpd/smtp_session.c
+++ b/usr.sbin/smtpd/smtp_session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: smtp_session.c,v 1.196 2014/02/17 11:06:54 eric Exp $ */
+/* $OpenBSD: smtp_session.c,v 1.197 2014/03/14 11:14:11 eric Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
@@ -1917,7 +1917,8 @@ smtp_sni_callback(SSL *ssl, int *ad, void *arg)
}
ssl_ctx = dict_get(env->sc_ssl_dict, sn);
if (ssl_ctx == NULL) {
- log_warnx("warn: SNI name not found in PKI");
+ log_info("smtp-in: No PKI entry for requested SNI \"%s\""
+ "on session %016"PRIx64, sn, s->id);
return SSL_TLSEXT_ERR_NOACK;
}
SSL_set_SSL_CTX(ssl, ssl_ctx);