Skip to content

Bump up resumption ticket version number (Scoped PR) #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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sm-msft
Copy link
Contributor

@sm-msft sm-msft commented May 29, 2025

Addresses the issue #5115

Description

Update the version on resumption tickets and added room to include additional data for Careful Resume in the future.

  • Uplevel server can accept v1 tickets but always issue v2 tickets
  • V2 resumption ticket has a 64-byte buffer for usage in the near future
  • Updated ticket tests

Testing

Updated/added unit tests

Documentation

N/A

…default

- Uplevel server can accept v1 tickets but always issue v2 tickets
- V2 resumption ticket has a 64-byte buffer for usage in the near future
- Updated ticket tests
Copy link

codecov bot commented May 29, 2025

Codecov Report

Attention: Patch coverage is 76.92308% with 3 lines in your changes missing coverage. Please review.

Project coverage is 86.79%. Comparing base (cfc5b5e) to head (0cdf220).

Files with missing lines Patch % Lines
src/core/crypto.c 76.92% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5131      +/-   ##
==========================================
+ Coverage   86.05%   86.79%   +0.73%     
==========================================
  Files          59       59              
  Lines       18048    18059      +11     
==========================================
+ Hits        15532    15674     +142     
+ Misses       2516     2385     -131     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@@ -2392,6 +2419,25 @@ QuicCryptoDecodeServerTicket(
}
Offset += (uint16_t)TPLength;

if (TicketVersion == CXPLAT_TLS_RESUMPTION_TICKET_VERSION_V2) {
//
// V2 resumption ticket has a fixed length extension.
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the Careful Resume standard close enough to finalization that you know you won't need more space? Or is this a placeholder for future parsing logic?

Copy link
Member

Choose a reason for hiding this comment

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

I don't think we should take this change until we actually know what should go into the next version of the ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants