Lines 1-31
Link Here
|
1 |
From 64c9d893c3748e962d01a935625c58610826f23c Mon Sep 17 00:00:00 2001 |
|
|
2 |
From: Paul Kehrer <paul.l.kehrer@gmail.com> |
3 |
Date: Tue, 1 Mar 2016 14:22:32 -0600 |
4 |
Subject: [PATCH] move BIO_new_mem_buf to macros to handle 1.0.2g signature |
5 |
change |
6 |
|
7 |
--- |
8 |
src/_cffi_src/openssl/bio.py | 3 ++- |
9 |
1 file changed, 2 insertions(+), 1 deletion(-) |
10 |
|
11 |
diff --git a/src/_cffi_src/openssl/bio.py b/src/_cffi_src/openssl/bio.py |
12 |
index ac86683..6439e63 100644 |
13 |
--- src/_cffi_src/openssl/bio.py |
14 |
+++ src/_cffi_src/openssl/bio.py |
15 |
@@ -99,7 +99,6 @@ |
16 |
BIO *BIO_next(BIO *); |
17 |
BIO *BIO_find_type(BIO *, int); |
18 |
BIO_METHOD *BIO_s_mem(void); |
19 |
-BIO *BIO_new_mem_buf(void *, int); |
20 |
BIO_METHOD *BIO_s_file(void); |
21 |
BIO *BIO_new_file(const char *, const char *); |
22 |
BIO *BIO_new_fp(FILE *, int); |
23 |
@@ -127,6 +126,8 @@ |
24 |
""" |
25 |
|
26 |
MACROS = """ |
27 |
+/* BIO_new_mem_buf became const void * in 1.0.2g */ |
28 |
+BIO *BIO_new_mem_buf(void *, int); |
29 |
long BIO_set_fd(BIO *, long, int); |
30 |
long BIO_get_fd(BIO *, char *); |
31 |
long BIO_set_mem_eof_return(BIO *, int); |