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-31 07:08:26 -0700
committerMartin Jansa <Martin.Jansa@gmail.com>2016-05-31 19:01:26 +0200
commit8ab04afbffb4bc5184cfe0655049de6f44269990 (patch)
treed8a8b0b3bdb0f4f09549440be0bcb0fb73237eda /meta-python/recipes-devtools/python/python-cryptography/Comment_lingering_SSLv2_symbol.patch
parentfb574eead5eb9b7a37bbf41bc2d27010bb83b76f (diff)
downloadmeta-openembedded-8ab04afbffb4bc5184cfe0655049de6f44269990.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> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.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.patch25
1 files changed, 25 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 000000000..c8dbee27d
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python-cryptography/Comment_lingering_SSLv2_symbol.patch
@@ -0,0 +1,25 @@
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-0.8.1/src/cryptography/hazmat/bindings/openssl/ssl.py
11===================================================================
12--- cryptography-0.8.1.orig/src/cryptography/hazmat/bindings/openssl/ssl.py
13+++ cryptography-0.8.1/src/cryptography/hazmat/bindings/openssl/ssl.py
14@@ -372,6 +372,11 @@ const long SSL_OP_LEGACY_SERVER_CONNECT
15 #else
16 static const long Cryptography_HAS_SECURE_RENEGOTIATION = 1;
17 #endif
18+
19+/* Cryptography now compiles out all SSLv2 bindings. This exists to allow
20+ * clients that use it to check for SSLv2 support to keep functioning as
21+ * expected.
22+ */
23 static const long Cryptography_HAS_SSL2 = 0;
24
25 #ifdef OPENSSL_NO_SSL3_METHOD