summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2015-09-27 07:09:09 (GMT)
committerBenjamin Peterson <benjamin@python.org>2015-09-27 07:09:09 (GMT)
commitc78f27d239d6f82b3dbf6393638dad5d6efcae35 (patch)
tree02e3fcf08f9115708f1ac50d08965b20359d0c28 /Modules
parent8299e9b59ecea5cd7236949bf17392e2fd56aec8 (diff)
parentd330822c12c279b2a89af00bf899a64559eeadb3 (diff)
downloadcpython-c78f27d239d6f82b3dbf6393638dad5d6efcae35.zip
cpython-c78f27d239d6f82b3dbf6393638dad5d6efcae35.tar.gz
cpython-c78f27d239d6f82b3dbf6393638dad5d6efcae35.tar.bz2
merge 3.5 (#23329)
Diffstat (limited to 'Modules')
-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