quic: expose handshake confirmation state - #2664
Open
dillona wants to merge 1 commit into
Open
Conversation
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.
Summary
Expose QUIC handshake confirmation through the public Rust and C APIs.
This adds:
Connection::is_handshake_confirmed()to the Rust API;quiche_conn_is_handshake_confirmed()to the C API; andFor servers, the handshake is confirmed immediately after it completes. For clients, it is confirmed after receiving
HANDSHAKE_DONE.Motivation
Connection::is_established()reports that the TLS handshake is complete, but applications may need to know when the QUIC handshake is confirmed. In particular, clients may need to wait for confirmation before performing operations such as connection migration.The confirmation state already exists internally, but callers currently cannot inspect it. This addresses the API request in #1489 and supports use cases related to the migration requirements discussed in #2631.
This PR only exposes the existing state; it does not change migration enforcement or handshake behavior.
Testing