-
Notifications
You must be signed in to change notification settings - Fork 582
Careful resume structs + encode/decode code #5131
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
0cdf220
- Min and max resumption ticket versions are hardcoded to 1 and 2 by …
sm-msft f6b7c59
Merge branch 'main' into sm/ticket_versioning_2
sm-msft 26e628f
- Careful Resume struct declared
sm-msft f79f513
Address cross-platform compile issues
sm-msft 43bddd8
- Address build breaks
sm-msft f26f983
- Update build sidecar
sm-msft 5c85c2d
Use debug assert for near const size check.
sm-msft 658c83f
- Address build warnings including those in tls_XYZ.c.
sm-msft 6a2e5b1
- Address build failure
sm-msft 2070c71
Merge branch 'main' into sm/ticket_versioning_2
sm-msft 5e89397
Test code updated to use library functions.
sm-msft 7d8aaf9
Addressed comments around unsupported address family
sm-msft 638dfe0
- Suppress incorrect compiler warning 5287 causing quictls build fail…
sm-msft 3a61ab3
Remove unused variable
sm-msft ebf11c0
- Check memory bounds before decoding address from CR blob
sm-msft 077fa36
Add comments to QuicCryptoDecodeCRState
sm-msft 5f07ac3
Merge branch 'main' into sm/ticket_versioning_2
sm-msft 204e35b
Merge with change from PR 5179 and revert changes to tls_openssl.c
sm-msft 4794ab3
Address review comments
sm-msft File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -444,11 +444,27 @@ CXPLAT_STATIC_ASSERT( | |
// | ||
#define QUIC_DEFAULT_SERVER_RESUMPTION_LEVEL QUIC_SERVER_NO_RESUME | ||
|
||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: Extra empty line |
||
// | ||
// Version of the wire-format for resumption tickets. | ||
// This needs to be incremented for each change in order or count of fields. | ||
// Valid Resumption Ticket Versions - these must be contiguous | ||
// | ||
#define CXPLAT_TLS_RESUMPTION_TICKET_VERSION_V1 1 | ||
#define CXPLAT_TLS_RESUMPTION_TICKET_VERSION_V2 2 | ||
|
||
// | ||
// Length in bytes of V2 extension to the resumption ticket | ||
// | ||
#define RESUMPTION_TICKET_V2_EXTENSION_LENGTH 64 | ||
|
||
// | ||
// Min version of the wire-format for resumption tickets. | ||
// | ||
#define CXPLAT_TLS_RESUMPTION_TICKET_VERSION CXPLAT_TLS_RESUMPTION_TICKET_VERSION_V1 | ||
|
||
// | ||
// Max version of the wire-format for resumption tickets. | ||
// | ||
#define CXPLAT_TLS_RESUMPTION_TICKET_VERSION 1 | ||
#define CXPLAT_TLS_RESUMPTION_TICKET_MAX_VERSION CXPLAT_TLS_RESUMPTION_TICKET_VERSION_V2 | ||
|
||
// | ||
// Version of the blob for client resumption tickets. | ||
|
This file contains hidden or 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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.