From af9e6baa2962f28a194ed2e36d81ae5985409327 Mon Sep 17 00:00:00 2001 From: Joseph Birr-Pixton Date: Fri, 5 Apr 2024 15:54:28 +0100 Subject: [PATCH] TODO: stubs note to self: need to implement ex_data functions --- rustls-libssl/MATRIX.md | 4 ++-- rustls-libssl/build.rs | 2 ++ rustls-libssl/src/entry.rs | 8 ++++++++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/rustls-libssl/MATRIX.md b/rustls-libssl/MATRIX.md index 8db82d4..b4fb3df 100644 --- a/rustls-libssl/MATRIX.md +++ b/rustls-libssl/MATRIX.md @@ -337,7 +337,7 @@ | `SSL_get_early_data_status` | | | | | `SSL_get_error` | :white_check_mark: | :white_check_mark: | :white_check_mark: | | `SSL_get_ex_data` | :white_check_mark: | :white_check_mark: | :exclamation: [^stub] | -| `SSL_get_ex_data_X509_STORE_CTX_idx` | | :white_check_mark: | | +| `SSL_get_ex_data_X509_STORE_CTX_idx` | | :white_check_mark: | :exclamation: [^stub] | | `SSL_get_fd` | | | | | `SSL_get_finished` | | | | | `SSL_get_info_callback` | | | | @@ -452,7 +452,7 @@ | `SSL_set_psk_server_callback` [^psk] | | | | | `SSL_set_psk_use_session_callback` | | | | | `SSL_set_purpose` | | | | -| `SSL_set_quiet_shutdown` | | :white_check_mark: | | +| `SSL_set_quiet_shutdown` | | :white_check_mark: | :exclamation: [^stub] | | `SSL_set_read_ahead` | | | | | `SSL_set_record_padding_callback` | | | | | `SSL_set_record_padding_callback_arg` | | | | diff --git a/rustls-libssl/build.rs b/rustls-libssl/build.rs index 7023065..f0e5549 100644 --- a/rustls-libssl/build.rs +++ b/rustls-libssl/build.rs @@ -130,6 +130,7 @@ const ENTRYPOINTS: &[&str] = &[ "SSL_get_current_cipher", "SSL_get_error", "SSL_get_ex_data", + "SSL_get_ex_data_X509_STORE_CTX_idx", "SSL_get_options", "SSL_get_peer_cert_chain", "SSL_get_privatekey", @@ -169,6 +170,7 @@ const ENTRYPOINTS: &[&str] = &[ "SSL_set_fd", "SSL_set_options", "SSL_set_post_handshake_auth", + "SSL_set_quiet_shutdown", "SSL_set_session", "SSL_set_session_id_context", "SSL_set_shutdown", diff --git a/rustls-libssl/src/entry.rs b/rustls-libssl/src/entry.rs index d882770..28b9469 100644 --- a/rustls-libssl/src/entry.rs +++ b/rustls-libssl/src/entry.rs @@ -1649,6 +1649,10 @@ entry_stub! { pub fn _SSL_get_ex_data(_ssl: *const SSL, _idx: c_int) -> *mut c_void; } +entry_stub! { + pub fn _SSL_get_ex_data_X509_STORE_CTX_idx() -> c_int; +} + entry_stub! { pub fn _SSL_set_session(_ssl: *mut SSL, _session: *mut SSL_SESSION) -> c_int; } @@ -1812,6 +1816,10 @@ entry_stub! { pub fn _SSL_load_client_CA_file(_file: *const c_char) -> *mut stack_st_X509_NAME; } +entry_stub! { + pub fn _SSL_set_quiet_shutdown(_ssl: *mut SSL, _mode: c_int); +} + // no individual message logging entry_stub! {