Repository navigation
Conversation
A DTLS 1.3 PSK handshake has no peer certificate and looks like a resumption, as with TLS 1.3, but only TLS1_3_VERSION was checked. Assisted-by: Claude Opus 5.5 Signed-off-by: James M Snell <jasnell@gmail.com>
Add minVersion and maxVersion. DTLS 1.2 stays the default. DTLSv1_listen() cannot negotiate DTLS 1.3, so when it is enabled the server validates addresses with a pending handshake per peer and only announces the session once the cookie verifies. Add session.onsessionticket, since DTLS 1.3 tickets arrive after the handshake. Assisted-by: Claude Opus 5.5 Signed-off-by: James M Snell <jasnell@gmail.com>
TLS_ names in `ciphers` configure the DTLS 1.3 suites, as in node:tls. Assisted-by: Claude Opus 5.5 Signed-off-by: James M Snell <jasnell@gmail.com>
A server holding a certificate commits to a SHA-384 suite in its HelloRetryRequest, which a client's SHA-256 PSK cannot be used with. Assisted-by: Claude Opus 5.5 Signed-off-by: James M Snell <jasnell@gmail.com>
Assisted-by: Claude Opus 5.5 Signed-off-by: James M Snell <jasnell@gmail.com>
Pin both versions explicitly in every test that completes a handshake, so coverage does not depend on the default. Assisted-by: Claude Opus 5.5 Signed-off-by: James M Snell <jasnell@gmail.com>
Assisted-by: Claude Opus 5.5 Signed-off-by: James M Snell <jasnell@gmail.com>
Under DTLS 1.3 the server's psk callback runs for the first ClientHello, before a session exists. An exception it threw was dropped; it now reaches endpoint.onerror, which is documented. Assisted-by: Claude Opus 5.5 Signed-off-by: James M Snell <jasnell@gmail.com>
Collaborator
|
Review requested:
|
Codecov Reportβ
All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #67837 +/- ##
==========================================
+ Coverage 90.51% 90.54% +0.03%
==========================================
Files 805 805
Lines 285878 285796 -82
Branches 55200 55147 -53
==========================================
+ Hits 258756 258772 +16
+ Misses 17214 17151 -63
+ Partials 9908 9873 -35
π New features to boost your workflow:
|
Assisted-by: Claude Opus 5.5
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
anonrig
approved these changes
Nov 29, 2026
Collaborator
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.
Update dtls to support version 1.3