aboutsummaryrefslogtreecommitdiff
path: root/openssl-sys/src
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2017-01-04 21:07:51 -0800
committerSteven Fackler <[email protected]>2017-01-04 21:11:06 -0800
commit5d53405597f2e8dc3a6543e8c4a56705b0ecd47a (patch)
treee3e45f483948432b9c69b969de037d69f673688a /openssl-sys/src
parentTypes and accessor for SslSession (diff)
downloadrust-openssl-5d53405597f2e8dc3a6543e8c4a56705b0ecd47a.tar.xz
rust-openssl-5d53405597f2e8dc3a6543e8c4a56705b0ecd47a.zip
Provide access to the session ID
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 a8ac9ba1..0ea0e5d8 100644
--- a/openssl-sys/src/lib.rs
+++ b/openssl-sys/src/lib.rs
@@ -1751,6 +1751,7 @@ extern {
pub fn SSL_get_session(s: *const SSL) -> *mut SSL_SESSION;
pub fn SSL_SESSION_free(s: *mut SSL_SESSION);
+ pub fn SSL_SESSION_get_id(s: *const SSL_SESSION, len: *mut c_uint) -> *const c_uchar;
#[cfg(not(ossl101))]
pub fn SSL_CTX_set_alpn_protos(s: *mut SSL_CTX, data: *const c_uchar, len: c_uint) -> c_int;