Skip to content

Commit

Permalink
move BIO_new_mem_buf to macros to handle 1.0.2g signature change
Browse files Browse the repository at this point in the history
  • Loading branch information
reaperhulk committed Mar 1, 2016
1 parent be6a25c commit df779df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/_cffi_src/openssl/bio.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@
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);
Expand Down Expand Up @@ -127,6 +126,8 @@
"""

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);
Expand Down

0 comments on commit df779df

Please sign in to comment.