Skip to content

Commit

Permalink
TODO: stubs
Browse files Browse the repository at this point in the history
note to self: need to implement ex_data functions
  • Loading branch information
ctz committed Apr 5, 2024
1 parent ce784de commit af9e6ba
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rustls-libssl/MATRIX.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` | | | |
Expand Down Expand Up @@ -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` | | | |
Expand Down
2 changes: 2 additions & 0 deletions rustls-libssl/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
8 changes: 8 additions & 0 deletions rustls-libssl/src/entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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! {
Expand Down

0 comments on commit af9e6ba

Please sign in to comment.