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/lib.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/lib.rs')
| -rw-r--r-- | openssl-sys/src/lib.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs index f9cfd0d4..bfd7d0d7 100644 --- a/openssl-sys/src/lib.rs +++ b/openssl-sys/src/lib.rs @@ -2466,6 +2466,14 @@ extern "C" { ctx: *mut SSL_CTX, dh: unsafe extern "C" fn(ssl: *mut SSL, is_export: c_int, keylength: c_int) -> *mut DH, ); + pub fn SSL_CTX_sess_set_new_cb( + ctx: *mut SSL_CTX, + new_session_cb: Option<unsafe extern "C" fn(*mut SSL, *mut SSL_SESSION) -> c_int>, + ); + pub fn SSL_CTX_sess_set_remove_cb( + ctx: *mut SSL_CTX, + remove_session_cb: Option<unsafe extern "C" fn(*mut SSL_CTX, *mut SSL_SESSION)>, + ); #[cfg(not(any(ossl101, libressl)))] pub fn SSL_CTX_get0_certificate(ctx: *const SSL_CTX) -> *mut X509; |