summaryrefslogtreecommitdiff
path: root/Modules/_ssl.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2015-09-27 00:09:02 -0700
committerBenjamin Peterson <benjamin@python.org>2015-09-27 00:09:02 -0700
commita552075d4c0dbc14d9d6fd4949be96cebc2db145 (patch)
tree7cdb5e32ab22b2e26504398d162f7bf2bd3e1d59 /Modules/_ssl.c
parenta317f8aaa08a7ad08758ba05164577627b4a31fb (diff)
downloadcpython-a552075d4c0dbc14d9d6fd4949be96cebc2db145.tar.gz
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 ca3549c657..e43c5026b7 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