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

feat: Adds ConnectionInitializer to Rust bindings #4250

Merged
merged 7 commits into from
Nov 20, 2023
Merged

Conversation

maddeleine
Copy link
Contributor

Resolved issues:

N/A

Description of changes:

Adds an async callback that gets triggered before s2n_poll_negotiate in order to dynamically configure the s2n connection. Users should create this callback when the config is built, and it will trigger each time a new connection is negotiated.

This is relevant to session resumption as the user can configure a callback to dynamically give session tickets to the s2n connection.

Call-outs:

N/A

Testing:

Includes modifications to the rust bindings resumption test to use this callback.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@github-actions github-actions bot added the s2n-core team label Oct 17, 2023
@maddeleine maddeleine requested a review from camshaft October 17, 2023 18:26
@maddeleine
Copy link
Contributor Author

Going to close this PR for now. Decided to attempt an Async version of the connection::Builder instead.

@maddeleine maddeleine closed this Oct 28, 2023
@maddeleine maddeleine deleted the client_resumption branch October 28, 2023 00:20
@maddeleine maddeleine restored the client_resumption branch November 17, 2023 19:50
@maddeleine maddeleine reopened this Nov 17, 2023
@maddeleine maddeleine merged commit a9ce5e4 into main Nov 20, 2023
29 checks passed
@maddeleine maddeleine deleted the client_resumption branch November 20, 2023 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants