summaryrefslogtreecommitdiffstats
path: root/Modules/_ssl.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2015-09-27 07:09:02 (GMT)
committerBenjamin Peterson <benjamin@python.org>2015-09-27 07:09:02 (GMT)
commitd330822c12c279b2a89af00bf899a64559eeadb3 (patch)
tree52829cf885fa1ceb07f674f803ff2855783e5751 /Modules/_ssl.c
parent34a804767225ef5c40d58ebfc34daa37afb7fa92 (diff)
downloadcpython-d330822c12c279b2a89af00bf899a64559eeadb3.zip
cpython-d330822c12c279b2a89af00bf899a64559eeadb3.tar.gz
cpython-d330822c12c279b2a89af00bf899a64559eeadb3.tar.bz2
detect alpn by feature flag not openssl version (closes #23329)
Diffstat (limited to 'Modules/_ssl.c')
-rw-r--r--Modules/_ssl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
index ca3549c..e43c502 100644
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -109,8 +109,7 @@ struct py_ssl_library_code {
# 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