summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2010-07-12 14:05:17 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2010-07-12 14:05:17 +0000
commitdfe0bc43c4153086ea5a02ebb06a41f35d284822 (patch)
treeb26e2c9c087fb72e590b935cd16edde2bbb46445 /dev-python/pyopenssl/files
parentRestored ~ppc64 for newer versions as we have ppc64 binaries for latest ghc. (diff)
downloadhistorical-dfe0bc43c4153086ea5a02ebb06a41f35d284822.tar.gz
historical-dfe0bc43c4153086ea5a02ebb06a41f35d284822.tar.bz2
historical-dfe0bc43c4153086ea5a02ebb06a41f35d284822.zip
Fix "assignment discards qualifiers from pointer target type" warning caused by missing const in usage of SSL_METHOD with OpenSSL >= 1.0.0 wrt #326637.
Package-Manager: portage-2.2_rc67/cvs/Linux x86_64
Diffstat (limited to 'dev-python/pyopenssl/files')
-rw-r--r--dev-python/pyopenssl/files/pyopenssl-0.10-openssl-1.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/dev-python/pyopenssl/files/pyopenssl-0.10-openssl-1.patch b/dev-python/pyopenssl/files/pyopenssl-0.10-openssl-1.patch
new file mode 100644
index 000000000000..c813034837d3
--- /dev/null
+++ b/dev-python/pyopenssl/files/pyopenssl-0.10-openssl-1.patch
@@ -0,0 +1,14 @@
+--- src/ssl/context.c
++++ src/ssl/context.c
+@@ -1095,7 +1095,11 @@
+ */
+ static ssl_ContextObj*
+ ssl_Context_init(ssl_ContextObj *self, int i_method) {
++ #if OPENSSL_VERSION_NUMBER >= 0x10000000L
++ const SSL_METHOD *method;
++ #else
+ SSL_METHOD *method;
++ #endif
+
+ switch (i_method) {
+ case ssl_SSLv2_METHOD: