[Python-checkins] cpython: 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:35 CET 2015


https://hg.python.org/cpython/rev/53e94a687570
changeset:   94336:53e94a687570
parent:      94334:5ed1db00dc59
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
@@ -110,7 +110,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