From 4dffa0c33fc1cc938bbf4fd3b654f7e6f3ce789a Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Fri, 16 Feb 2018 21:26:23 -0800 Subject: SSL session callbacks have always been around --- openssl-sys/src/lib.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'openssl-sys/src/lib.rs') 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 c_int>, + ); + pub fn SSL_CTX_sess_set_remove_cb( + ctx: *mut SSL_CTX, + remove_session_cb: Option, + ); #[cfg(not(any(ossl101, libressl)))] pub fn SSL_CTX_get0_certificate(ctx: *const SSL_CTX) -> *mut X509; -- cgit v1.2.3