aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBernard Spil <Sp1l@users.noreply.github.com>2015-04-15 11:09:32 +0200
committerBernard Spil <Sp1l@users.noreply.github.com>2015-04-15 11:09:32 +0200
commit622409947f6e64fcabbf2b4da2ed086abc06ed85 (patch)
treef0099c76365a62a887b6fdfe6c41a102983346e5 /src
parent27c750de99df6818b5bc0414dd7995fb514f5c28 (diff)
downloadcryptography-622409947f6e64fcabbf2b4da2ed086abc06ed85.tar.gz
cryptography-622409947f6e64fcabbf2b4da2ed086abc06ed85.tar.bz2
cryptography-622409947f6e64fcabbf2b4da2ed086abc06ed85.zip
LibreSSL added ALPN support in 2.1.3
This fixes build issues on FreeBSD
Diffstat (limited to 'src')
-rw-r--r--src/cryptography/hazmat/bindings/openssl/ssl.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptography/hazmat/bindings/openssl/ssl.py b/src/cryptography/hazmat/bindings/openssl/ssl.py
index d680c3a5..6161a9d1 100644
--- a/src/cryptography/hazmat/bindings/openssl/ssl.py
+++ b/src/cryptography/hazmat/bindings/openssl/ssl.py
@@ -526,7 +526,7 @@ static const long Cryptography_HAS_NEXTPROTONEG = 1;
#endif
/* ALPN was added in OpenSSL 1.0.2. */
-#if OPENSSL_VERSION_NUMBER < 0x10002001L
+#if OPENSSL_VERSION_NUMBER < 0x10002001L && !defined(LIBRESSL_VERSION_NUMBER)
int (*SSL_CTX_set_alpn_protos)(SSL_CTX *,
const unsigned char *,
unsigned) = NULL;