summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python-cryptography/Comment_lingering_SSLv2_symbol.patch
diff options
context:
space:
mode:
authorArmin Kuster <akuster@mvista.com>2016-05-15 13:36:15 -0700
committerArmin Kuster <akuster@mvista.com>2016-05-15 13:36:15 -0700
commitff38c70e939c8e6953b7553a546623eda08e2bb1 (patch)
treec976c0efd7438c535dd3850cd2a6d94187702266 /meta-python/recipes-devtools/python/python-cryptography/Comment_lingering_SSLv2_symbol.patch
parent107e624a8d9a37fcc370f0a13af0d7abf39d7141 (diff)
downloadmeta-openembedded-ff38c70e939c8e6953b7553a546623eda08e2bb1.tar.gz
python-cryptography: fix compile issue with openssl 1.0.2h
this fixes: error: 'SSLv2_method' redeclared as different kind of symbol | SSL_METHOD* (*SSLv2_method)(void) = NULL; Signed-off-by: Armin Kuster <akuster@mvista.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python-cryptography/Comment_lingering_SSLv2_symbol.patch')
-rw-r--r--meta-python/recipes-devtools/python/python-cryptography/Comment_lingering_SSLv2_symbol.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python-cryptography/Comment_lingering_SSLv2_symbol.patch b/meta-python/recipes-devtools/python/python-cryptography/Comment_lingering_SSLv2_symbol.patch
new file mode 100644
index 0000000000..b28e7efff1
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python-cryptography/Comment_lingering_SSLv2_symbol.patch
@@ -0,0 +1,24 @@
1From f326e4a97cce6b9479560ce0c65ad18d54393f96 Mon Sep 17 00:00:00 2001
2From: Cory Benfield <lukasaoz@gmail.com>
3Date: Mon, 14 Dec 2015 15:37:46 +0000
4Subject: [PATCH] Comment lingering SSLv2 symbol.
5
6---
7 src/_cffi_src/openssl/ssl.py | 4 ++++
8 1 file changed, 4 insertions(+)
9
10Index: cryptography-1.1/src/_cffi_src/openssl/ssl.py
11===================================================================
12--- cryptography-1.1.orig/src/_cffi_src/openssl/ssl.py
13+++ cryptography-1.1/src/_cffi_src/openssl/ssl.py
14@@ -421,6 +421,10 @@ const long SSL_OP_LEGACY_SERVER_CONNECT
15 static const long Cryptography_HAS_SECURE_RENEGOTIATION = 1;
16 #endif
17
18+/* Cryptography now compiles out all SSLv2 bindings. This exists to allow
19+ * clients that use it to check for SSLv2 support to keep functioning as
20+ * expected.
21+ */
22 static const long Cryptography_HAS_SSL2 = 0;
23
24 #ifdef OPENSSL_NO_SSL3_METHOD