-
Notifications
You must be signed in to change notification settings - Fork 712
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fix a bug in tls1.3 code path (#4513)
* fix a bug in tls1.3 code path with unit test to verify the change * modify comment on if block * fix formatting to clang-format compatible * reformat if() block to avoid unnecessarry computation * free memory used for test * add a check if tls1.3 is supported before running the test * change s2n_config_is_encrypt_decrypt_key_available() return type to S2N_RESULT * add null checks and reformat if() block for readability * better comments and variable naming * style fixes and add tls 1.3 verification * use shorter function name * modify test to fail on HS type assersion instead of during the HS * use shorter variable name Co-authored-by: Lindsay Stewart <slindsay@amazon.com> * address readability * use shorter variable names * address PR comment * Update tests/unit/s2n_session_ticket_test.c Co-authored-by: Lindsay Stewart <slindsay@amazon.com> * bail with proper error code * fix err code --------- Co-authored-by: Lindsay Stewart <slindsay@amazon.com>
- Loading branch information
Showing
5 changed files
with
86 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters