Added
Link Here
|
1 |
--- src/_cffi_src/openssl/ssl.py.orig 2019-02-27 23:27:53 UTC |
2 |
+++ src/_cffi_src/openssl/ssl.py |
3 |
@@ -719,17 +719,20 @@ static const long TLS_ST_BEFORE = 0; |
4 |
static const long TLS_ST_OK = 0; |
5 |
#endif |
6 |
|
7 |
-#if CRYPTOGRAPHY_OPENSSL_LESS_THAN_102 |
8 |
+/* LibreSSL 2.9.1 added only the DTLS_*_method functions */ |
9 |
+#if CRYPTOGRAPHY_OPENSSL_LESS_THAN_102 && !CRYPTOGRAPHY_LIBRESSL_291_OR_GREATER |
10 |
static const long Cryptography_HAS_GENERIC_DTLS_METHOD = 0; |
11 |
const SSL_METHOD *(*DTLS_method)(void) = NULL; |
12 |
const SSL_METHOD *(*DTLS_server_method)(void) = NULL; |
13 |
const SSL_METHOD *(*DTLS_client_method)(void) = NULL; |
14 |
+#else |
15 |
+static const long Cryptography_HAS_GENERIC_DTLS_METHOD = 1; |
16 |
+#endif |
17 |
+#if CRYPTOGRAPHY_OPENSSL_LESS_THAN_102 |
18 |
static const long SSL_OP_NO_DTLSv1 = 0; |
19 |
static const long SSL_OP_NO_DTLSv1_2 = 0; |
20 |
long (*DTLS_set_link_mtu)(SSL *, long) = NULL; |
21 |
long (*DTLS_get_link_min_mtu)(SSL *) = NULL; |
22 |
-#else |
23 |
-static const long Cryptography_HAS_GENERIC_DTLS_METHOD = 1; |
24 |
#endif |
25 |
|
26 |
static const long Cryptography_HAS_DTLS = 1; |