diff options
| author | Steven Fackler <[email protected]> | 2015-06-27 21:40:00 -0700 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2015-06-27 21:40:00 -0700 |
| commit | 0cff370f1d4e46145bc9047508a7e63402b10adc (patch) | |
| tree | 8ca8d9df3fd17b8cccca132cc3fc772fe91da2d2 /openssl-sys/src/lib.rs | |
| parent | Initialize stream buffer (diff) | |
| download | rust-openssl-0cff370f1d4e46145bc9047508a7e63402b10adc.tar.xz rust-openssl-0cff370f1d4e46145bc9047508a7e63402b10adc.zip | |
Reduce SslStream constructor duplication
Diffstat (limited to 'openssl-sys/src/lib.rs')
| -rw-r--r-- | openssl-sys/src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs index 5204c3bf..b347b949 100644 --- a/openssl-sys/src/lib.rs +++ b/openssl-sys/src/lib.rs @@ -271,6 +271,7 @@ extern "C" { pub fn BIO_ctrl(b: *mut BIO, cmd: c_int, larg: c_long, parg: *mut c_void) -> c_long; pub fn BIO_free_all(b: *mut BIO); pub fn BIO_new(type_: *const BIO_METHOD) -> *mut BIO; + 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; pub fn BIO_s_mem() -> *const BIO_METHOD; |