Use SSL_get_version() not SSL_get_cipher_version(); the former gives the TLS
authorsthen <sthen@openbsd.org>
Fri, 16 Oct 2015 21:13:33 +0000 (21:13 +0000)
committersthen <sthen@openbsd.org>
Fri, 16 Oct 2015 21:13:33 +0000 (21:13 +0000)
commit860088dff0462cc6b28c44f48274187a5ae03e90
treea60b3c6365accdfbb0ceee90cb383513a2b004bb
parent386a73ae06f996ff5427dd8921793a70cacc1240
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@
usr.sbin/smtpd/ioev.c
usr.sbin/smtpd/smtp_session.c
usr.sbin/smtpd/ssl.c