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: Server name getter for client hello #4396

Merged
merged 18 commits into from
Feb 16, 2024
Merged

feat: Server name getter for client hello #4396

merged 18 commits into from
Feb 16, 2024

Conversation

maddeleine
Copy link
Contributor

@maddeleine maddeleine commented Jan 31, 2024

Resolved issues:

Resolves #4308

Description of changes:

Adds some new APIs to get the server name off of a parsed client hello. Note that we already have a get_server_name function, but it requires access to a connection struct. Therefore, if we want the server name to be available for someone solely using s2n-tls as a "client hello parsing library", we need this client hello getter.

Call-outs:

Testing:

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

@maddeleine maddeleine requested review from goatgoose, jmayclin and camshaft and removed request for lrstewart, camshaft and jmayclin February 1, 2024 20:22
bindings/rust/s2n-tls/src/client_hello.rs Show resolved Hide resolved
tls/s2n_client_hello.c Outdated Show resolved Hide resolved
api/s2n.h Show resolved Hide resolved
tests/unit/s2n_client_hello_test.c Show resolved Hide resolved
api/s2n.h Show resolved Hide resolved
tls/extensions/s2n_client_server_name.h Outdated Show resolved Hide resolved
tls/extensions/s2n_client_server_name.c Outdated Show resolved Hide resolved
tests/unit/s2n_client_hello_test.c Outdated Show resolved Hide resolved
@maddeleine maddeleine merged commit e16e151 into main Feb 16, 2024
34 checks passed
@maddeleine maddeleine deleted the server_name branch February 16, 2024 00:45
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.

Add a server name function on client_hello
4 participants