aboutsummaryrefslogtreecommitdiff
path: root/openssl-sys/src
diff options
context:
space:
mode:
authorAlex Crichton <[email protected]>2016-07-27 14:18:02 -0700
committerAlex Crichton <[email protected]>2016-07-31 16:01:06 -0700
commit3539be33660dc136e0b585400f70447e31ccb62a (patch)
tree020de98557d936d6ab06c58291eb270c55e5c578 /openssl-sys/src
parentMerge remote-tracking branch 'origin/master' into breaks (diff)
downloadrust-openssl-3539be33660dc136e0b585400f70447e31ccb62a.tar.xz
rust-openssl-3539be33660dc136e0b585400f70447e31ccb62a.zip
Add MidHandshakeSslStream
Allows recognizing when a stream is still in handshake mode and can gracefully transition when ready. The blocking usage of the API should still be the same, just helps nonblocking implementations!
Diffstat (limited to 'openssl-sys/src')
-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 1a15fecb..3c31f671 100644
--- a/openssl-sys/src/lib.rs
+++ b/openssl-sys/src/lib.rs
@@ -741,6 +741,7 @@ extern "C" {
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_do_handshake(ssl: *mut SSL) -> c_int;
pub fn SSL_ctrl(ssl: *mut SSL, cmd: c_int, larg: c_long,
parg: *mut c_void) -> c_long;
pub fn SSL_get_error(ssl: *mut SSL, ret: c_int) -> c_int;