changeset: 98296:38a5b0f6531b branch: 3.5 parent: 98291:fd9009f313b9 user: Benjamin Peterson date: Sun Sep 27 00:09:02 2015 -0700 files: Misc/NEWS Modules/_ssl.c description: detect alpn by feature flag not openssl version (closes #23329) diff -r fd9009f313b9 -r 38a5b0f6531b Misc/NEWS --- a/Misc/NEWS Sat Sep 26 20:04:09 2015 -0400 +++ b/Misc/NEWS Sun Sep 27 00:09:02 2015 -0700 @@ -21,6 +21,9 @@ Library ------- +- Issue #23329: Allow the ssl module to be built with older versions of + LibreSSL. + - Prevent overflow in _Unpickler_Read. - Issue #25047: The XML encoding declaration written by Element Tree now diff -r fd9009f313b9 -r 38a5b0f6531b Modules/_ssl.c --- a/Modules/_ssl.c Sat Sep 26 20:04:09 2015 -0400 +++ b/Modules/_ssl.c Sun Sep 27 00:09:02 2015 -0700 @@ -109,8 +109,7 @@ # define HAVE_SNI 0 #endif -/* ALPN added in OpenSSL 1.0.2 */ -#if !defined(LIBRESSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x1000200fL && !defined(OPENSSL_NO_TLSEXT) +#ifdef TLSEXT_TYPE_application_layer_protocol_negotiation # define HAVE_ALPN #endif