svn commit: r339246 - head/contrib/dma
John Baldwin
jhb at FreeBSD.org
Mon Oct 8 23:23:10 UTC 2018
Author: jhb
Date: Mon Oct 8 23:23:09 2018
New Revision: 339246
URL: https://svnweb.freebsd.org/changeset/base/339246
Log:
crypto: Don't limit to TLSv1 only
Approved by: re (rgrimes, gjb)
Obtained from: upstream commit e94f50bbbe7318eec5b6b165ff73d94bbc9d20b0
Modified:
head/contrib/dma/crypto.c
Modified: head/contrib/dma/crypto.c
==============================================================================
--- head/contrib/dma/crypto.c Mon Oct 8 22:38:28 2018 (r339245)
+++ head/contrib/dma/crypto.c Mon Oct 8 23:23:09 2018 (r339246)
@@ -93,7 +93,12 @@ smtp_init_crypto(int fd, int feature)
SSL_library_init();
SSL_load_error_strings();
- meth = TLSv1_client_method();
+ // Allow any possible version
+#if (OPENSSL_VERSION_NUMBER >= 0x10100000L)
+ meth = TLS_client_method();
+#else
+ meth = SSLv23_client_method();
+#endif
ctx = SSL_CTX_new(meth);
if (ctx == NULL) {
More information about the svn-src-all
mailing list