disable ALPN on LibreSSL, which has a large version number, but not ALPN support (closes #23329)

This commit is contained in:
Benjamin Peterson 2015-01-27 11:10:18 -05:00
parent f8d1a31e70
commit 07f0515667

View file

@ -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