summaryrefslogtreecommitdiff
path: root/lang/python/python-cryptography/patches
diff options
context:
space:
mode:
Diffstat (limited to 'lang/python/python-cryptography/patches')
-rw-r--r--lang/python/python-cryptography/patches/002-remove-undefined-dtls-methods.patch34
1 files changed, 22 insertions, 12 deletions
diff --git a/lang/python/python-cryptography/patches/002-remove-undefined-dtls-methods.patch b/lang/python/python-cryptography/patches/002-remove-undefined-dtls-methods.patch
index ef58ed5f8..c203146cc 100644
--- a/lang/python/python-cryptography/patches/002-remove-undefined-dtls-methods.patch
+++ b/lang/python/python-cryptography/patches/002-remove-undefined-dtls-methods.patch
@@ -1,16 +1,26 @@
+From e7a6229b332969d621aaf25f3fc5cdd99e3c9072 Mon Sep 17 00:00:00 2001
+From: Rosen Penev <rosenp@gmail.com>
+Date: Sun, 18 Nov 2018 18:04:01 -0800
+Subject: [PATCH] Adjust DTLS check (#4593)
+
+OpenSSL defines these even with OPENSSL_NO_DTLS.
+---
+ src/_cffi_src/openssl/ssl.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/_cffi_src/openssl/ssl.py b/src/_cffi_src/openssl/ssl.py
+index c921dbee..f0b8939c 100644
--- a/src/_cffi_src/openssl/ssl.py
+++ b/src/_cffi_src/openssl/ssl.py
-@@ -646,13 +646,6 @@ static const long TLS_ST_OK = 0;
+@@ -714,7 +714,7 @@ static const long TLS_ST_BEFORE = 0;
+ static const long TLS_ST_OK = 0;
+ #endif
- #if defined(OPENSSL_NO_DTLS) || CRYPTOGRAPHY_OPENSSL_LESS_THAN_102
+-#if defined(OPENSSL_NO_DTLS) || CRYPTOGRAPHY_OPENSSL_LESS_THAN_102
++#if CRYPTOGRAPHY_OPENSSL_LESS_THAN_102
static const long Cryptography_HAS_GENERIC_DTLS_METHOD = 0;
--const SSL_METHOD *(*DTLS_method)(void) = NULL;
--const SSL_METHOD *(*DTLS_server_method)(void) = NULL;
--const SSL_METHOD *(*DTLS_client_method)(void) = NULL;
--static const long SSL_OP_NO_DTLSv1 = NULL;
--static const long SSL_OP_NO_DTLSv1_2 = NULL;
--long *(*DTLS_set_link_mtu)(SSL *, long) = NULL;
--long *(*DTLS_get_link_min_mtu)(SSL *) = NULL;
- #else
- static const long Cryptography_HAS_GENERIC_DTLS_METHOD = 1;
- #endif
+ const SSL_METHOD *(*DTLS_method)(void) = NULL;
+ const SSL_METHOD *(*DTLS_server_method)(void) = NULL;
+--
+2.19.1
+