diff options
| author | Steven Fackler <[email protected]> | 2018-02-16 21:26:23 -0800 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2018-02-16 21:31:09 -0800 |
| commit | 4dffa0c33fc1cc938bbf4fd3b654f7e6f3ce789a (patch) | |
| tree | 127d24fce62f506a47789fe0d0fad4e6722025f2 /openssl-sys/src/ossl110.rs | |
| parent | Merge pull request #842 from nyradr/Documentation_fix_openssl_symm (diff) | |
| download | rust-openssl-4dffa0c33fc1cc938bbf4fd3b654f7e6f3ce789a.tar.xz rust-openssl-4dffa0c33fc1cc938bbf4fd3b654f7e6f3ce789a.zip | |
SSL session callbacks have always been around
Diffstat (limited to 'openssl-sys/src/ossl110.rs')
| -rw-r--r-- | openssl-sys/src/ossl110.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/openssl-sys/src/ossl110.rs b/openssl-sys/src/ossl110.rs index 86f9223f..29462f30 100644 --- a/openssl-sys/src/ossl110.rs +++ b/openssl-sys/src/ossl110.rs @@ -206,9 +206,11 @@ extern "C" { pub fn SSL_CTX_get_options(ctx: *const ::SSL_CTX) -> c_ulong; pub fn SSL_CTX_set_options(ctx: *mut ::SSL_CTX, op: c_ulong) -> c_ulong; pub fn SSL_CTX_clear_options(ctx: *mut ::SSL_CTX, op: c_ulong) -> c_ulong; - pub fn SSL_CTX_sess_set_new_cb( + pub fn SSL_CTX_sess_set_get_cb( ctx: *mut ::SSL_CTX, - new_session_cb: Option<unsafe extern "C" fn(*mut ::SSL, *mut ::SSL_SESSION) -> c_int>, + get_session_cb: Option< + unsafe extern "C" fn(*mut ::SSL, *const c_uchar, c_int, *mut c_int) -> *mut SSL_SESSION, + >, ); pub fn X509_getm_notAfter(x: *const ::X509) -> *mut ::ASN1_TIME; pub fn X509_getm_notBefore(x: *const ::X509) -> *mut ::ASN1_TIME; |