diff options
| author | Steven Fackler <[email protected]> | 2016-10-15 13:39:47 -0700 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2016-10-15 13:39:47 -0700 |
| commit | 228b8fbc5b5567f19b66754f589d47851817c411 (patch) | |
| tree | 483cb4c310c6db8b176a70bb88bb205afabdd19d /openssl-sys/src | |
| parent | Merge pull request #474 from sfackler/digest (diff) | |
| download | rust-openssl-228b8fbc5b5567f19b66754f589d47851817c411.tar.xz rust-openssl-228b8fbc5b5567f19b66754f589d47851817c411.zip | |
Correctly bind BIO_new_mem_buf
Diffstat (limited to 'openssl-sys/src')
| -rw-r--r-- | openssl-sys/src/lib.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs index 6fe44750..67b93f25 100644 --- a/openssl-sys/src/lib.rs +++ b/openssl-sys/src/lib.rs @@ -344,6 +344,9 @@ extern { pub fn BIO_new_socket(sock: c_int, close_flag: c_int) -> *mut BIO; pub fn BIO_read(b: *mut BIO, buf: *mut c_void, len: c_int) -> c_int; pub fn BIO_write(b: *mut BIO, buf: *const c_void, len: c_int) -> c_int; + #[cfg(ossl101)] + pub fn BIO_new_mem_buf(buf: *mut c_void, len: c_int) -> *mut BIO; + #[cfg(not(ossl101))] pub fn BIO_new_mem_buf(buf: *const c_void, len: c_int) -> *mut BIO; pub fn BIO_set_flags(b: *mut BIO, flags: c_int); pub fn BIO_clear_flags(b: *mut BIO, flags: c_int); |