diff --git a/rustls-libssl/MATRIX.md b/rustls-libssl/MATRIX.md index d55ad48..57db89c 100644 --- a/rustls-libssl/MATRIX.md +++ b/rustls-libssl/MATRIX.md @@ -179,7 +179,7 @@ | `SSL_CTX_set_recv_max_early_data` | | | | | `SSL_CTX_set_security_callback` | | | | | `SSL_CTX_set_security_level` | | | | -| `SSL_CTX_set_session_id_context` | | :white_check_mark: | :exclamation: [^stub] | +| `SSL_CTX_set_session_id_context` | | :white_check_mark: | :white_check_mark: | | `SSL_CTX_set_session_ticket_cb` | | | | | `SSL_CTX_set_srp_cb_arg` [^deprecatedin_3_0] [^srp] | | | | | `SSL_CTX_set_srp_client_pwd_callback` [^deprecatedin_3_0] [^srp] | | | | @@ -461,7 +461,7 @@ | `SSL_set_security_callback` | | | | | `SSL_set_security_level` | | | | | `SSL_set_session` | :white_check_mark: | :white_check_mark: | :exclamation: [^stub] | -| `SSL_set_session_id_context` | | | :exclamation: [^stub] | +| `SSL_set_session_id_context` | | | :white_check_mark: | | `SSL_set_session_secret_cb` | | | | | `SSL_set_session_ticket_ext` | | | | | `SSL_set_session_ticket_ext_cb` | | | | diff --git a/rustls-libssl/src/entry.rs b/rustls-libssl/src/entry.rs index 5c8084d..399af3e 100644 --- a/rustls-libssl/src/entry.rs +++ b/rustls-libssl/src/entry.rs @@ -750,6 +750,18 @@ entry! { } } +entry! { + pub fn _SSL_CTX_set_session_id_context( + _ctx: *mut SSL_CTX, + _sid_ctx: *const c_uchar, + _sid_ctx_len: c_uint, + ) -> c_int { + // TODO: we should implement this in rustls + log::warn!("SSL_CTX_set_session_id_context returning success, but NYI"); + C_INT_SUCCESS + } +} + impl Castable for SSL_CTX { type Ownership = OwnershipArc; type RustType = Mutex; @@ -1527,6 +1539,18 @@ entry! { } } +entry! { + pub fn _SSL_set_session_id_context( + _ssl: *mut SSL, + _sid_ctx: *const c_uchar, + _sid_ctx_len: c_uint, + ) -> c_int { + // TODO: we should implement this in rustls + log::warn!("SSL_set_session_id_context returning success, but NYI"); + C_INT_SUCCESS + } +} + impl Castable for SSL { type Ownership = OwnershipArc; type RustType = Mutex; @@ -1816,23 +1840,6 @@ entry_stub! { pub type SSL_CTX_sess_remove_cb = Option; -entry_stub! { - pub fn _SSL_CTX_set_session_id_context( - _ctx: *mut SSL_CTX, - _sid_ctx: *const c_uchar, - _sid_ctx_len: c_uint, - ) -> c_int; -} - -entry_stub! { - - pub fn _SSL_set_session_id_context( - _ssl: *mut SSL, - _sid_ctx: *const c_uchar, - _sid_ctx_len: c_uint, - ) -> c_int; -} - entry_stub! { pub fn _SSL_CTX_set_keylog_callback(_ctx: *mut SSL_CTX, _cb: SSL_CTX_keylog_cb_func); }