Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rust binding for s2n_set_config_send_buffer_size #3582

Merged
merged 2 commits into from
Nov 2, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions bindings/rust/s2n-tls/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,11 @@ impl Builder {
Ok(self)
}

pub fn set_send_buffer_size(&mut self, size: u32) -> Result<&mut Self, Error> {
unsafe { s2n_config_set_send_buffer_size(self.as_mut_ptr(), size).into_result() }?;
Ok(self)
}

/// Set a custom callback function which is run after parsing the client hello.
pub fn set_client_hello_callback<T: 'static + ClientHelloCallback>(
&mut self,
Expand Down