From: Benjamin Peterson Date: Tue, 27 Jan 2015 16:10:18 +0000 (-0500) Subject: disable ALPN on LibreSSL, which has a large version number, but not ALPN support... X-Git-Tag: v3.5.0a1~86 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=07f051566725e7e1406fccc1c28d2877fcc13738;p=python disable ALPN on LibreSSL, which has a large version number, but not ALPN support (closes #23329) --- diff --git a/Modules/_ssl.c b/Modules/_ssl.c index f0f362c117..3faca0a2cc 100644 --- a/Modules/_ssl.c +++ b/Modules/_ssl.c @@ -110,7 +110,7 @@ struct py_ssl_library_code { #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