aboutsummaryrefslogtreecommitdiff
path: root/openssl-sys/src/lib.rs
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2015-06-27 21:40:00 -0700
committerSteven Fackler <[email protected]>2015-06-27 21:40:00 -0700
commit0cff370f1d4e46145bc9047508a7e63402b10adc (patch)
tree8ca8d9df3fd17b8cccca132cc3fc772fe91da2d2 /openssl-sys/src/lib.rs
parentInitialize stream buffer (diff)
downloadrust-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.rs1
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;