summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/ioev.c
diff options
context:
space:
mode:
authorStuart Henderson <sthen@cvs.openbsd.org>2015-10-16 21:13:34 +0000
committerStuart Henderson <sthen@cvs.openbsd.org>2015-10-16 21:13:34 +0000
commit4128723924ce30c973a45ba8976cb48fea7ecd89 (patch)
treefee8879bdfc63de34df214f488d51f3b2c56329d /usr.sbin/smtpd/ioev.c
parentae458bd954df62dcc36f42bc8a6399681e6fc7f8 (diff)
Use SSL_get_version() not SSL_get_cipher_version(); the former gives the TLS
version used for the connection, the latter gives "the SSL/TLS protocol version that first defined the cipher". Fixes "TLS version=TLSv1/SSLv3" in received/log lines. ok millert@ "I was going to commit this today, so yes definitely" ok gilles@
Diffstat (limited to 'usr.sbin/smtpd/ioev.c')
-rw-r--r--usr.sbin/smtpd/ioev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/ioev.c b/usr.sbin/smtpd/ioev.c
index 2a5b3ce565d..1a51009325e 100644
--- a/usr.sbin/smtpd/ioev.c
+++ b/usr.sbin/smtpd/ioev.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ioev.c,v 1.21 2015/10/14 22:01:43 gilles Exp $ */
+/* $OpenBSD: ioev.c,v 1.22 2015/10/16 21:13:33 sthen Exp $ */
/*
* Copyright (c) 2012 Eric Faurot <eric@openbsd.org>
*
@@ -89,7 +89,7 @@ io_strio(struct io *io)
#ifdef IO_SSL
if (io->ssl) {
(void)snprintf(ssl, sizeof ssl, " ssl=%s:%s:%d",
- SSL_get_cipher_version(io->ssl),
+ SSL_get_version(io->ssl),
SSL_get_cipher_name(io->ssl),
SSL_get_cipher_bits(io->ssl, NULL));
}