From 07f051566725e7e1406fccc1c28d2877fcc13738 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Tue, 27 Jan 2015 11:10:18 -0500 Subject: [PATCH] disable ALPN on LibreSSL, which has a large version number, but not ALPN support (closes #23329) --- Modules/_ssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.50.1