aboutsummaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python-cryptography/0001-move-BIO_new_mem_buf-to-macros-to-handle-1.0.2g-sign.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-python/recipes-devtools/python/python-cryptography/0001-move-BIO_new_mem_buf-to-macros-to-handle-1.0.2g-sign.patch')
-rw-r--r--meta-python/recipes-devtools/python/python-cryptography/0001-move-BIO_new_mem_buf-to-macros-to-handle-1.0.2g-sign.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python-cryptography/0001-move-BIO_new_mem_buf-to-macros-to-handle-1.0.2g-sign.patch b/meta-python/recipes-devtools/python/python-cryptography/0001-move-BIO_new_mem_buf-to-macros-to-handle-1.0.2g-sign.patch
new file mode 100644
index 0000000000..4e54058ce2
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python-cryptography/0001-move-BIO_new_mem_buf-to-macros-to-handle-1.0.2g-sign.patch
@@ -0,0 +1,36 @@
+Upstream-Status: backport
+
+From 1778d82eee43cf99e5a0fd50ec9c5ba0b0baf97a Mon Sep 17 00:00:00 2001
+From: Paul Kehrer <paul.l.kehrer@gmail.com>
+Date: Tue, 1 Mar 2016 14:22:32 -0600
+Subject: [PATCH] move BIO_new_mem_buf to macros to handle 1.0.2g signature
+ change
+
+---
+ src/_cffi_src/openssl/bio.py | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/src/_cffi_src/openssl/bio.py b/src/_cffi_src/openssl/bio.py
+index ac86683..6439e63 100644
+--- a/src/_cffi_src/openssl/bio.py
++++ b/src/_cffi_src/openssl/bio.py
+@@ -99,7 +99,6 @@ BIO *BIO_pop(BIO *);
+ BIO *BIO_next(BIO *);
+ BIO *BIO_find_type(BIO *, int);
+ BIO_METHOD *BIO_s_mem(void);
+-BIO *BIO_new_mem_buf(void *, int);
+ BIO_METHOD *BIO_s_file(void);
+ BIO *BIO_new_file(const char *, const char *);
+ BIO *BIO_new_fp(FILE *, int);
+@@ -127,6 +126,8 @@ BIO_METHOD *BIO_f_buffer(void);
+ """
+
+ MACROS = """
++/* BIO_new_mem_buf became const void * in 1.0.2g */
++BIO *BIO_new_mem_buf(void *, int);
+ long BIO_set_fd(BIO *, long, int);
+ long BIO_get_fd(BIO *, char *);
+ long BIO_set_mem_eof_return(BIO *, int);
+--
+2.8.0.rc0
+