[Python-checkins] cpython (2.7): disable ALPN on LibreSSL, which has a large version number, but not ALPN

benjamin.peterson python-checkins at python.org
Tue Jan 27 17:10:34 CET 2015


https://hg.python.org/cpython/rev/f7fd2776e80d
changeset:   94337:f7fd2776e80d
branch:      2.7
parent:      94335:fe12c34c39eb
user:        Benjamin Peterson <benjamin at python.org>
date:        Tue Jan 27 11:10:18 2015 -0500
summary:
  disable ALPN on LibreSSL, which has a large version number, but not ALPN support (closes #23329)

files:
  Modules/_ssl.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Modules/_ssl.c b/Modules/_ssl.c
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -106,7 +106,7 @@
 #endif
 
 /* ALPN added in OpenSSL 1.0.2 */
-#if OPENSSL_VERSION_NUMBER >= 0x1000200fL && !defined(OPENSSL_NO_TLSEXT)
+#if !defined(LIBRESSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x1000200fL && !defined(OPENSSL_NO_TLSEXT)
 # define HAVE_ALPN
 #endif
 

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list