diff options
| author | Steven Fackler <[email protected]> | 2017-01-05 12:56:14 -0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-01-05 12:56:14 -0800 |
| commit | 58c468803160f6f0d78c80c846dbf4622bb43df9 (patch) | |
| tree | 20205314f7c3ce878a76b41e794e818caaa5e5c2 /openssl-sys/src/lib.rs | |
| parent | Release v0.9.5 (diff) | |
| parent | Fix time type (diff) | |
| download | rust-openssl-58c468803160f6f0d78c80c846dbf4622bb43df9.tar.xz rust-openssl-58c468803160f6f0d78c80c846dbf4622bb43df9.zip | |
Merge pull request #549 from sfackler/ssl-session
Ssl session
Diffstat (limited to 'openssl-sys/src/lib.rs')
| -rw-r--r-- | openssl-sys/src/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs index 22af7c96..0ea0e5d8 100644 --- a/openssl-sys/src/lib.rs +++ b/openssl-sys/src/lib.rs @@ -1748,6 +1748,10 @@ 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); + 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; |