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 compliance comments for secure renegotiation initial handshakes #3485

Merged
merged 3 commits into from
Sep 14, 2022

Conversation

lrstewart
Copy link
Contributor

@lrstewart lrstewart commented Sep 10, 2022

Description of changes:

I didn't make any functional changes. I just added compliance comments for sections 3.4 and 3.6 of the secure renegotiation RFC, which describe how a TLS implementation should handle non-renegotiation handshakes. Since we don't support actually doing renegotiation, we only deal with non-renegotiation handshakes.

The duvet github action we borrow from s2n-quic isn't working (it assumes PRs are from branches, not from forks), so I manually uploaded the report:

Callouts

All the "compliance/specs/tools.ietf.org/rfc/*" files are automatically generated by running duvet extract. If they're too distracting, I can move them to a separate PR. "compliance/specs/exceptions/rfc5746/4.6.toml" wasn't generated though, and is instead our project's first duvet exceptions.

Testing:

New tests for requirements not previously explicitly covered.

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 Sep 10, 2022
@lrstewart lrstewart marked this pull request as ready for review September 10, 2022 07:51
@lrstewart lrstewart requested a review from a team as a code owner September 10, 2022 07:51
tls/s2n_client_hello.c Outdated Show resolved Hide resolved
size_t client_hello_size = server_conn->client_hello.raw_message.size;
size_t old_extensions_size = server_conn->client_hello.extensions.raw.size;
size_t new_extensions_size = old_extensions_size + sizeof(extension);
EXPECT_SUCCESS(s2n_stuffer_rewrite(&client_conn->handshake.io));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like we need a test function that can write custom extensions for us. Not really sure how that would work, but this is something that would be really useful.

@lrstewart lrstewart enabled auto-merge (squash) September 14, 2022 08:13
@lrstewart lrstewart merged commit cb5712c into aws:main Sep 14, 2022
@lrstewart lrstewart deleted the reneg branch September 14, 2022 18:41
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.

None yet

3 participants