diff options
| author | Cody P Schafer <[email protected]> | 2014-09-23 16:11:34 -0400 |
|---|---|---|
| committer | Cody P Schafer <[email protected]> | 2014-11-19 15:23:31 -0500 |
| commit | b9e3ed50ad22e72e67c61f69bd3805b43e519122 (patch) | |
| tree | d25f74dbfc2db59c73baa343f12319b951537344 /openssl-sys/src/lib.rs | |
| parent | Remove Zero and One impls (diff) | |
| download | rust-openssl-b9e3ed50ad22e72e67c61f69bd3805b43e519122.tar.xz rust-openssl-b9e3ed50ad22e72e67c61f69bd3805b43e519122.zip | |
Baseline server support
Allows calling SSL_accept() instead of SSL_connect() when creating an
SslStream.
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 377ae8e5..b4f90fe7 100644 --- a/openssl-sys/src/lib.rs +++ b/openssl-sys/src/lib.rs @@ -403,6 +403,7 @@ extern "C" { pub fn SSL_set_bio(ssl: *mut SSL, rbio: *mut BIO, wbio: *mut BIO); pub fn SSL_get_rbio(ssl: *mut SSL) -> *mut BIO; pub fn SSL_get_wbio(ssl: *mut SSL) -> *mut BIO; + pub fn SSL_accept(ssl: *mut SSL) -> c_int; pub fn SSL_connect(ssl: *mut SSL) -> c_int; pub fn SSL_ctrl(ssl: *mut SSL, cmd: c_int, larg: c_long, parg: *mut c_void) -> c_long; |