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

refactor: Consolidate record wiping #4412

Merged
merged 2 commits into from
Feb 12, 2024
Merged

refactor: Consolidate record wiping #4412

merged 2 commits into from
Feb 12, 2024

Conversation

lrstewart
Copy link
Contributor

Description of changes:

We repeat the same three lines in many places. s2n_handshake_io.c had factored it out into a static method, but I've now finished that refactor by moving it to a non-static method so that s2n_recv.c and s2n_shutdown.c can also use the same method.

I've ensured I found all the instances by searching for "conn->in_status = ENCRYPTED".

Testing:

Just moving code around. No behavior change.

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 Feb 11, 2024
@lrstewart lrstewart marked this pull request as ready for review February 12, 2024 17:35
@lrstewart lrstewart enabled auto-merge (squash) February 12, 2024 19:44
@lrstewart lrstewart merged commit ae78fe9 into aws:main Feb 12, 2024
31 checks passed
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.

3 participants