summaryrefslogtreecommitdiffstats
path: root/Modules/_ssl.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2015-01-27 16:10:18 (GMT)
committerBenjamin Peterson <benjamin@python.org>2015-01-27 16:10:18 (GMT)
commit07f051566725e7e1406fccc1c28d2877fcc13738 (patch)
tree6dd0747e6b6b81a99f5d2e3e8d8609fe8bb2fe3a /Modules/_ssl.c
parentf8d1a31e70601f73a89b9f5aa9a8604df64743ac (diff)
downloadcpython-07f051566725e7e1406fccc1c28d2877fcc13738.zip
cpython-07f051566725e7e1406fccc1c28d2877fcc13738.tar.gz
cpython-07f051566725e7e1406fccc1c28d2877fcc13738.tar.bz2
disable ALPN on LibreSSL, which has a large version number, but not ALPN support (closes #23329)
Diffstat (limited to 'Modules/_ssl.c')
-rw-r--r--Modules/_ssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
index f0f362c..3faca0a 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