Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
45f05bc
test: fix dtls default CA test identity check
jasnell Aug 23, 2026
d164763
dtls: drain the OpenSSL error queue
jasnell Aug 23, 2026
89f5c5a
dtls: preserve record boundaries on the outbound BIO
jasnell Aug 23, 2026
2da38b2
dtls: drop empty datagrams before the accept path
jasnell Aug 23, 2026
665e577
dtls: preserve datagram boundaries on the inbound BIO
jasnell Aug 23, 2026
e6eff15
dtls: add session.authorized and session.authorizationError
jasnell Aug 23, 2026
fafd1db
dtls: correct the requestCert/rejectUnauthorized matrix
jasnell Aug 23, 2026
8ee05e9
dtls: only extract key material when something is listening
jasnell Aug 23, 2026
86cca85
dtls: screen datagrams before allocating a handshake for them
jasnell Aug 23, 2026
69def2d
dtls: bound the server session table
jasnell Aug 23, 2026
aa33e17
dtls: size the outbound datagram buffers to the datagram
jasnell Aug 23, 2026
4cb6efd
dtls: validate the exportKeyingMaterial length
jasnell Aug 23, 2026
baf64e2
src: pair SocketAddress::Hash with a matching equality
jasnell Aug 23, 2026
aaaf59f
dtls: derive the cookie from a canonical peer address
jasnell Aug 23, 2026
8053291
dtls: stop retaining server sessions, and scope them to the server
jasnell Aug 23, 2026
bb06502
dtls: validate ALPN protocol lists
jasnell Aug 23, 2026
3170538
dtls: fail the handshake when no ALPN protocol is shared
jasnell Aug 23, 2026
e1ea6ef
dtls: report why send() could not send
jasnell Aug 23, 2026
e8e1a4b
dtls: settle session.opened when the session is torn down
jasnell Aug 23, 2026
7f2bf46
dtls: bind the local socket in the peer's address family
jasnell Aug 23, 2026
2afdfcb
dtls: do not resend a datagram that was already sent
jasnell Aug 23, 2026
6f33788
dtls: describe the OpenSSL options accurately
jasnell Aug 23, 2026
97aac07
dtls: only copy incoming data when something is listening
jasnell Aug 23, 2026
c08efc8
dtls: check the BIO allocation in GetPeerCertificate
jasnell Aug 23, 2026
824f284
doc: record two deliberate dtls limits
jasnell Aug 23, 2026
2ee6b24
doc: describe the dtls cookie design and the internal-only members
jasnell Aug 23, 2026
2a61292
dtls: stop aborting on failed value creation in the accessors
jasnell Aug 23, 2026
35b62e9
dtls: stop aborting on failed value creation in the callback paths
jasnell Aug 23, 2026
0ccfa1b
dtls: drop truncated datagrams instead of ignoring the recv flags
jasnell Aug 23, 2026
29728c2
dtls: report why loading a certificate or key failed
jasnell Aug 23, 2026
8c25366
dtls: support a passphrase for encrypted private keys
jasnell Aug 23, 2026
f4ca6e4
dtls: add session.peerX509Certificate
jasnell Aug 23, 2026
7f45695
dtls: add createSecureContext and the secureContext option
jasnell Aug 23, 2026
9f5529d
dtls: add server-side SNI
jasnell Aug 23, 2026
aec29b3
dtls: add session resumption
jasnell Aug 23, 2026
a537086
dtls: add pre-shared key support
jasnell Aug 23, 2026
401a093
dtls: add handshake timeout
jasnell Aug 23, 2026
5fc689e
dtls: emit new sessions before driving the handshake
jasnell Aug 23, 2026
e9663da
dtls: accept a callback for SNI
jasnell Aug 23, 2026
a61b844
doc: lift the DTLS topic sections to their own level
jasnell Aug 23, 2026
f06231a
dtls: stop exposing session and endpoint state
jasnell Aug 23, 2026
127c5ab
dtls: do not report verification results before the handshake
jasnell Aug 23, 2026
afd4baf
dtls: validate the options that reach a CHECK in the binding
jasnell Aug 23, 2026
abc89c5
dtls: require servername to be a string
jasnell Aug 23, 2026
1dc0b98
dtls: report exceptions thrown by the keylog callback
jasnell Aug 23, 2026
be53243
dtls: report exceptions thrown while reading a callback's result
jasnell Aug 23, 2026
ce2c47d
dtls: register the two missing external references
jasnell Aug 23, 2026
a2c502b
dtls: keep pre-shared keys working on a server that serves SNI
jasnell Aug 23, 2026
07658f6
dtls: hold SNI contexts weakly
jasnell Aug 23, 2026
705ce5a
dtls: clear a callback when one is not supplied
jasnell Aug 23, 2026
c66e636
dtls: check that a value is a context before unwrapping it
jasnell Aug 23, 2026
82adf3d
dtls: make sni a property of the secure context
jasnell Aug 23, 2026
7e906a4
dtls: settle a session's promises when its endpoint is destroyed
jasnell Aug 23, 2026
365e78b
src: do not change the address map QUIC uses
jasnell Aug 23, 2026
24f730d
dtls: remove a callback that cannot be invoked
jasnell Aug 23, 2026
d3e38ed
dtls: state the session constructor's endpoint invariant once
jasnell Aug 23, 2026
5793467
dtls: report a record that could not be sent
jasnell Aug 23, 2026
f84dd70
dtls: read the error this operation queued, not the oldest one present
jasnell Aug 23, 2026
f05769c
dtls: make ownsEndpoint internal
jasnell Aug 23, 2026
78e25a3
doc: fix dtls examples that throw, and a garbled option entry
jasnell Aug 23, 2026
5df0bb4
dtls: validate isServer and rejectUnauthorized as booleans
jasnell Aug 23, 2026
8ad768f
dtls: mark stats stale when their source goes away
jasnell Aug 23, 2026
be40cb5
dtls: report bind and listen failures with the operating system's code
jasnell Aug 23, 2026
713ffc4
doc: correct three dtls claims and file two sections under the right …
jasnell Aug 23, 2026
ae05cd2
doc: document the dtls members that were public but unlisted
jasnell Aug 23, 2026
b8be0c7
dtls: check the return values that were being discarded
jasnell Aug 23, 2026
2c3eff2
dtls: say why a psk callback's result was unusable
jasnell Aug 23, 2026
a5c8a42
dtls: accept any view over bytes in send()
jasnell Aug 23, 2026
6a72c86
dtls: refuse server-only options on a client context
jasnell Aug 23, 2026
c86b321
dtls: use a type error for a session that is not a Buffer
jasnell Aug 23, 2026
96ec16e
dtls: explain why the binding's closed-session guard stays
jasnell Aug 23, 2026
3b023e7
dtls: bind dual stack by default, and make ipv6Only an option
jasnell Aug 23, 2026
64d03f2
dtls: add reusePort and the UDP buffer and TTL options
jasnell Aug 23, 2026
174337b
dtls: list the new socket options in the listen() and connect() jsdoc
jasnell Aug 23, 2026
3b78793
doc: remove mention of C++ internals from dtls.md
jasnell Aug 23, 2026
dcc5be7
test: fix the dtls permission test for the symbol-keyed bind()
jasnell Aug 23, 2026
d5b483d
doc: restore a dropped word in the endpoint.stats description
jasnell Aug 23, 2026
1fb5bd5
src: replace NewFromUtf8 with ToV8Value
jasnell Aug 23, 2026
2f34b63
src: fixup c++ linting after multiple commits
jasnell Aug 23, 2026
0e3586e
dtls: take the psk error message as a string_view
jasnell Aug 23, 2026
f37fd60
test: clean up some dtls tests
jasnell Aug 25, 2026
584f021
src: fixup dtls alpn error
jasnell Sep 5, 2026
0a12c91
doc: mark dtls 1.1 Active Development
jasnell Sep 5, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
791 changes: 724 additions & 67 deletions doc/api/dtls.md

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions lib/dtls.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,18 @@ emitExperimentalWarning('dtls');

const {
connect,
createSecureContext,
listen,
DTLSEndpoint,
DTLSSecureContext,
DTLSSession,
} = require('internal/dtls/dtls');

module.exports = {
connect,
createSecureContext,
listen,
DTLSEndpoint,
DTLSSecureContext,
DTLSSession,
};
Loading
Loading