fix: initial config should not influence sslv2 #4987
+55
−27
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolved issues:
#4585
Description of changes:
This PR separate out parsing and processing for sslv2 formatted client hellos. Previously both items were handled by
s2n_sslv2_client_hello_recv
. Splitting these out into two functions allows us toCall-outs:
This code is basically
stolenrespectfully appropriated from an earlier draft of #4676 , so thanks @maddeleine!Testing:
I added a unit test that confirms the config isn't de-referenced in the parsing of the SSLV2 client hello.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.