diff options
| author | Alex Crichton <[email protected]> | 2016-07-27 14:18:02 -0700 |
|---|---|---|
| committer | Alex Crichton <[email protected]> | 2016-07-31 16:01:06 -0700 |
| commit | 3539be33660dc136e0b585400f70447e31ccb62a (patch) | |
| tree | 020de98557d936d6ab06c58291eb270c55e5c578 /openssl-sys/src | |
| parent | Merge remote-tracking branch 'origin/master' into breaks (diff) | |
| download | rust-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.rs | 1 |
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; |