Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
105d50f
test: fix dtls default CA test identity check
jasnell Aug 23, 2026
50224f9
dtls: drain the OpenSSL error queue
jasnell Aug 23, 2026
d8b8bc6
dtls: preserve record boundaries on the outbound BIO
jasnell Aug 23, 2026
f646fa0
dtls: drop empty datagrams before the accept path
jasnell Aug 23, 2026
b5ee912
dtls: preserve datagram boundaries on the inbound BIO
jasnell Aug 23, 2026
5d9df89
dtls: add session.authorized and session.authorizationError
jasnell Aug 23, 2026
f3793b2
dtls: correct the requestCert/rejectUnauthorized matrix
jasnell Aug 23, 2026
5496688
dtls: only extract key material when something is listening
jasnell Aug 23, 2026
aff1d43
dtls: screen datagrams before allocating a handshake for them
jasnell Aug 23, 2026
2812203
dtls: bound the server session table
jasnell Aug 23, 2026
d929e11
dtls: size the outbound datagram buffers to the datagram
jasnell Aug 23, 2026
f4e5dce
dtls: validate the exportKeyingMaterial length
jasnell Aug 23, 2026
e9fd57e
src: pair SocketAddress::Hash with a matching equality
jasnell Aug 23, 2026
dcbe022
dtls: derive the cookie from a canonical peer address
jasnell Aug 23, 2026
97ca8f0
dtls: stop retaining server sessions, and scope them to the server
jasnell Aug 23, 2026
2b1e18e
dtls: validate ALPN protocol lists
jasnell Aug 23, 2026
534eddb
dtls: fail the handshake when no ALPN protocol is shared
jasnell Aug 23, 2026
a7a5773
dtls: report why send() could not send
jasnell Aug 23, 2026
d0d26d3
dtls: settle session.opened when the session is torn down
jasnell Aug 23, 2026
4c75751
dtls: bind the local socket in the peer's address family
jasnell Aug 23, 2026
80cf854
dtls: do not resend a datagram that was already sent
jasnell Aug 23, 2026
5a00c67
dtls: describe the OpenSSL options accurately
jasnell Aug 23, 2026
289497a
dtls: only copy incoming data when something is listening
jasnell Aug 23, 2026
7defdd8
dtls: check the BIO allocation in GetPeerCertificate
jasnell Aug 23, 2026
0e53740
doc: record two deliberate dtls limits
jasnell Aug 23, 2026
d414112
doc: describe the dtls cookie design and the internal-only members
jasnell Aug 23, 2026
e34be7b
dtls: stop aborting on failed value creation in the accessors
jasnell Aug 23, 2026
d639d96
dtls: stop aborting on failed value creation in the callback paths
jasnell Aug 23, 2026
823348a
dtls: drop truncated datagrams instead of ignoring the recv flags
jasnell Aug 23, 2026
5a0bd1d
dtls: report why loading a certificate or key failed
jasnell Aug 23, 2026
a8c605e
dtls: support a passphrase for encrypted private keys
jasnell Aug 23, 2026
8969d91
dtls: add session.peerX509Certificate
jasnell Aug 23, 2026
a34e4b5
dtls: add createSecureContext and the secureContext option
jasnell Aug 23, 2026
d9a9418
dtls: add server-side SNI
jasnell Aug 23, 2026
9b904cc
dtls: add session resumption
jasnell Aug 23, 2026
d2f7fbb
dtls: add pre-shared key support
jasnell Aug 23, 2026
e0744d2
dtls: add handshake timeout
jasnell Aug 23, 2026
c7373af
dtls: emit new sessions before driving the handshake
jasnell Aug 23, 2026
6ebe77d
dtls: accept a callback for SNI
jasnell Aug 23, 2026
8d8c111
doc: lift the DTLS topic sections to their own level
jasnell Aug 23, 2026
6c9859b
dtls: stop exposing session and endpoint state
jasnell Aug 23, 2026
371dea1
dtls: do not report verification results before the handshake
jasnell Aug 23, 2026
99f089e
dtls: validate the options that reach a CHECK in the binding
jasnell Aug 23, 2026
d067a5a
dtls: require servername to be a string
jasnell Aug 23, 2026
599fc63
dtls: report exceptions thrown by the keylog callback
jasnell Aug 23, 2026
f4994e8
dtls: report exceptions thrown while reading a callback's result
jasnell Aug 23, 2026
a8aaabf
dtls: register the two missing external references
jasnell Aug 23, 2026
6afd93e
dtls: keep pre-shared keys working on a server that serves SNI
jasnell Aug 23, 2026
b2c593e
dtls: hold SNI contexts weakly
jasnell Aug 23, 2026
3fd276c
dtls: clear a callback when one is not supplied
jasnell Aug 23, 2026
66b48d1
dtls: check that a value is a context before unwrapping it
jasnell Aug 23, 2026
01db3d1
dtls: make sni a property of the secure context
jasnell Aug 23, 2026
e536287
dtls: settle a session's promises when its endpoint is destroyed
jasnell Aug 23, 2026
f7673c3
src: do not change the address map QUIC uses
jasnell Aug 23, 2026
71db4b0
dtls: remove a callback that cannot be invoked
jasnell Aug 23, 2026
0e82d6b
dtls: state the session constructor's endpoint invariant once
jasnell Aug 23, 2026
1a5dcb0
dtls: report a record that could not be sent
jasnell Aug 23, 2026
8fd9655
dtls: read the error this operation queued, not the oldest one present
jasnell Aug 23, 2026
095c68b
dtls: make ownsEndpoint internal
jasnell Aug 23, 2026
e05adfa
doc: fix dtls examples that throw, and a garbled option entry
jasnell Aug 23, 2026
da905f8
dtls: validate isServer and rejectUnauthorized as booleans
jasnell Aug 23, 2026
31c09ce
dtls: mark stats stale when their source goes away
jasnell Aug 23, 2026
f10a4c2
dtls: report bind and listen failures with the operating system's code
jasnell Aug 23, 2026
6ffb32d
doc: correct three dtls claims and file two sections under the right …
jasnell Aug 23, 2026
efd0835
doc: document the dtls members that were public but unlisted
jasnell Aug 23, 2026
51fb6ba
dtls: check the return values that were being discarded
jasnell Aug 23, 2026
242c733
dtls: say why a psk callback's result was unusable
jasnell Aug 23, 2026
c88fe8a
dtls: accept any view over bytes in send()
jasnell Aug 23, 2026
6856f77
dtls: refuse server-only options on a client context
jasnell Aug 23, 2026
745091d
dtls: use a type error for a session that is not a Buffer
jasnell Aug 23, 2026
51bc580
dtls: explain why the binding's closed-session guard stays
jasnell Aug 23, 2026
b1aeae4
dtls: bind dual stack by default, and make ipv6Only an option
jasnell Aug 23, 2026
d6a0028
dtls: add reusePort and the UDP buffer and TTL options
jasnell Aug 23, 2026
8173c2a
dtls: list the new socket options in the listen() and connect() jsdoc
jasnell Aug 23, 2026
feca357
doc: remove mention of C++ internals from dtls.md
jasnell Aug 23, 2026
3d1f7ee
test: fix the dtls permission test for the symbol-keyed bind()
jasnell Aug 23, 2026
3e1be83
doc: restore a dropped word in the endpoint.stats description
jasnell Aug 23, 2026
27fa418
src: replace NewFromUtf8 with ToV8Value
jasnell Aug 23, 2026
f611fe2
src: fixup c++ linting after multiple commits
jasnell Aug 23, 2026
44ee31f
dtls: take the psk error message as a string_view
jasnell Aug 23, 2026
18d7fe0
test: clean up some dtls tests
jasnell Aug 25, 2026
70d0802
src: fixup dtls alpn error
jasnell Sep 5, 2026
5b23ac1
doc: mark dtls 1.1 Active Development
jasnell Sep 5, 2026
4c278d3
lib: shorten extraneous comments in dtls.js
jasnell Sep 5, 2026
36be49d
src: fixup dtls resumption and first-flight error
jasnell Sep 15, 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
822 changes: 755 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