Repository navigation
Conversation
should_send_ServerData() retrieved the ticket from handshake_messages_parsed after flush_records(). A TLS 1.3 NewSessionTicket is a post-handshake message, so it is appended to post_handshake_messages instead, and save_ticket() was never called: the session_ticket_file stayed empty and a PSK resumption had nothing to offer (secdev#4682). Collect the TLS13NewSessionTicket messages of buffer_out before flush_records() builds them, and save those references afterwards. AI-Assisted: yes (DeepSeek V4.1 Flash) Fixes secdev#4682
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #5308 +/- ##
==========================================
+ Coverage 80.61% 80.64% +0.02%
==========================================
Files 375 375
Lines 98849 98844 -5
==========================================
+ Hits 79688 79708 +20
+ Misses 19161 19136 -25
🚀 New features to boost your workflow:
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
TLSServerAutomatonnever writes the session tickets it sends whensession_ticket_fileis set, so a later PSK resumption has no ticket to offer.TLS 1.3
NewSessionTicketis a post-handshake message: withpost_handshakeset,_TLSHandshake.tls_session_updateappends it topost_handshake_messagesand not tohandshake_messages_parsed.should_send_ServerDatalooks the message up inhandshake_messages_parsedafterflush_records(), sosave_ticket()is never reached and the file stays empty.Reproducer:
/tmp/ticketsdoes not exist afterwards.Suggestion: collect the
TLS13NewSessionTicketmessages ofbuffer_outbeforeflush_records()builds them, and callsave_ticket()on those references afterwards.Fixes #4682.
This message was written with the help of AI (DeepSeek V4.1 Flash).