View | Details | Raw Unified | Return to bug 197049 | Differences between
and this patch

Collapse All | Expand All

(-)security/py-cryptography/files/patch-src_cryptography_hazmat_bindings_openssl_ssl.py (+9 lines)
Lines 28-30 Link Here
28
 #ifdef SSL_OP_NO_COMPRESSION
28
 #ifdef SSL_OP_NO_COMPRESSION
29
 static const long Cryptography_HAS_OP_NO_COMPRESSION = 1;
29
 static const long Cryptography_HAS_OP_NO_COMPRESSION = 1;
30
 #else
30
 #else
31
@@ -524,7 +530,7 @@ static const long Cryptography_HAS_NEXTP
32
 #endif
33
 
34
 /* ALPN was added in OpenSSL 1.0.2. */
35
-#if OPENSSL_VERSION_NUMBER < 0x10002001L
36
+#if OPENSSL_VERSION_NUMBER < 0x10002001L && !defined(LIBRESSL_VERSION_NUMBER)
37
 int (*SSL_CTX_set_alpn_protos)(SSL_CTX *,
38
                                const unsigned char *,
39
                                unsigned) = NULL;

Return to bug 197049