Skip to content

Commit

Permalink
Stub out SSL_sendfile
Browse files Browse the repository at this point in the history
  • Loading branch information
cpu committed May 2, 2024
1 parent 292d190 commit 1e4bb03
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion rustls-libssl/MATRIX.md
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@
| `SSL_rstate_string` | | | |
| `SSL_rstate_string_long` | | | |
| `SSL_select_next_proto` | | :white_check_mark: | :white_check_mark: |
| `SSL_sendfile` | | | |
| `SSL_sendfile` | | | :exclamation: [^stub] |
| `SSL_session_reused` | | :white_check_mark: | :white_check_mark: |
| `SSL_set0_CA_list` | | | |
| `SSL_set0_rbio` | | | :white_check_mark: |
Expand Down
1 change: 1 addition & 0 deletions rustls-libssl/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ const ENTRYPOINTS: &[&str] = &[
"SSL_read",
"SSL_read_early_data",
"SSL_select_next_proto",
"SSL_sendfile",
"SSL_SESSION_free",
"SSL_SESSION_get_id",
"SSL_SESSION_get_time",
Expand Down
12 changes: 12 additions & 0 deletions rustls-libssl/src/entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1968,6 +1968,18 @@ entry_stub! {

pub struct SSL_CONF_CTX;

// No kTLS/sendfile support

entry_stub! {
pub fn _SSL_sendfile(
_ssl: *mut SSL,
_fd: c_int,
_offset: c_long,
_size: usize,
_flags: c_int,
) -> c_long;
}

// ---------------------

#[cfg(test)]
Expand Down

0 comments on commit 1e4bb03

Please sign in to comment.