Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Oct 2018 23:23:09 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r339246 - head/contrib/dma
Message-ID:  <201810082323.w98NN9xL050334@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201810082323.w98NN9xL050334>