diff --git a/rustls-libssl/MATRIX.md b/rustls-libssl/MATRIX.md index 5be67a8..771240e 100644 --- a/rustls-libssl/MATRIX.md +++ b/rustls-libssl/MATRIX.md @@ -104,7 +104,7 @@ | `SSL_CTX_get_security_callback` | | | | | `SSL_CTX_get_security_level` | | | | | `SSL_CTX_get_ssl_method` | | | | -| `SSL_CTX_get_timeout` | | :white_check_mark: | | +| `SSL_CTX_get_timeout` | | :white_check_mark: | :exclamation: [^stub] | | `SSL_CTX_get_verify_callback` | | :white_check_mark: | :white_check_mark: | | `SSL_CTX_get_verify_depth` | | :white_check_mark: | :white_check_mark: | | `SSL_CTX_get_verify_mode` | | :white_check_mark: | :white_check_mark: | @@ -191,7 +191,7 @@ | `SSL_CTX_set_ssl_version` [^deprecatedin_3_0] | | | | | `SSL_CTX_set_stateless_cookie_generate_cb` | | | | | `SSL_CTX_set_stateless_cookie_verify_cb` | | | | -| `SSL_CTX_set_timeout` | | :white_check_mark: | | +| `SSL_CTX_set_timeout` | | :white_check_mark: | :exclamation: [^stub] | | `SSL_CTX_set_tlsext_max_fragment_length` | | | | | `SSL_CTX_set_tlsext_ticket_key_evp_cb` | | | | | `SSL_CTX_set_tlsext_use_srtp` [^srtp] | | | | diff --git a/rustls-libssl/build.rs b/rustls-libssl/build.rs index f88b376..4843380 100644 --- a/rustls-libssl/build.rs +++ b/rustls-libssl/build.rs @@ -72,6 +72,7 @@ const ENTRYPOINTS: &[&str] = &[ "SSL_CTX_get_ex_data", "SSL_CTX_get_max_early_data", "SSL_CTX_get_options", + "SSL_CTX_get_timeout", "SSL_CTX_get_verify_callback", "SSL_CTX_get_verify_depth", "SSL_CTX_get_verify_mode", @@ -100,6 +101,7 @@ const ENTRYPOINTS: &[&str] = &[ "SSL_CTX_set_session_id_context", "SSL_CTX_set_srp_password", "SSL_CTX_set_srp_username", + "SSL_CTX_set_timeout", "SSL_CTX_set_verify", "SSL_CTX_set_verify_depth", "SSL_CTX_up_ref", diff --git a/rustls-libssl/src/entry.rs b/rustls-libssl/src/entry.rs index d289e6d..f4fedad 100644 --- a/rustls-libssl/src/entry.rs +++ b/rustls-libssl/src/entry.rs @@ -1724,6 +1724,14 @@ entry_stub! { ) -> c_int; } +entry_stub! { + pub fn _SSL_CTX_get_timeout(_ctx: *const SSL_CTX) -> c_long; +} + +entry_stub! { + pub fn _SSL_CTX_set_timeout(_ctx: *mut SSL_CTX, _t: c_long) -> c_long; +} + // no individual message logging entry_stub! {