diff options
author | Bernard Spil <Sp1l@users.noreply.github.com> | 2015-04-15 11:09:32 +0200 |
---|---|---|
committer | Bernard Spil <Sp1l@users.noreply.github.com> | 2015-04-15 11:09:32 +0200 |
commit | 622409947f6e64fcabbf2b4da2ed086abc06ed85 (patch) | |
tree | f0099c76365a62a887b6fdfe6c41a102983346e5 | |
parent | 27c750de99df6818b5bc0414dd7995fb514f5c28 (diff) | |
download | cryptography-622409947f6e64fcabbf2b4da2ed086abc06ed85.tar.gz cryptography-622409947f6e64fcabbf2b4da2ed086abc06ed85.tar.bz2 cryptography-622409947f6e64fcabbf2b4da2ed086abc06ed85.zip |
LibreSSL added ALPN support in 2.1.3
This fixes build issues on FreeBSD
-rw-r--r-- | src/cryptography/hazmat/bindings/openssl/ssl.py | 2 |
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; |