diff options
| author | Steven Fackler <[email protected]> | 2017-01-04 20:57:50 -0800 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2017-01-04 20:57:50 -0800 |
| commit | 1ffe57429885f935c10301e7838fa9871c35c95b (patch) | |
| tree | c216bd69c5c3d366ffc5638a617b42fc7f284146 /openssl-sys/src | |
| parent | Add SSL_SESSION (diff) | |
| download | rust-openssl-1ffe57429885f935c10301e7838fa9871c35c95b.tar.xz rust-openssl-1ffe57429885f935c10301e7838fa9871c35c95b.zip | |
Add SSL_SESSION functions
Diffstat (limited to 'openssl-sys/src')
| -rw-r--r-- | openssl-sys/src/lib.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs index 22af7c96..a8ac9ba1 100644 --- a/openssl-sys/src/lib.rs +++ b/openssl-sys/src/lib.rs @@ -1748,6 +1748,9 @@ extern { inbuf: *const c_uchar, inlen: c_uint, client: *const c_uchar, client_len: c_uint) -> c_int; pub fn SSL_get0_next_proto_negotiated(s: *const SSL, data: *mut *const c_uchar, len: *mut c_uint); + pub fn SSL_get_session(s: *const SSL) -> *mut SSL_SESSION; + + pub fn SSL_SESSION_free(s: *mut SSL_SESSION); #[cfg(not(ossl101))] pub fn SSL_CTX_set_alpn_protos(s: *mut SSL_CTX, data: *const c_uchar, len: c_uint) -> c_int; |