Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
cc97425
test: fix dtls default CA test identity check
jasnell Aug 23, 2026
57e0f80
dtls: drain the OpenSSL error queue
jasnell Aug 23, 2026
21836c0
dtls: preserve record boundaries on the outbound BIO
jasnell Aug 23, 2026
82c18b0
dtls: drop empty datagrams before the accept path
jasnell Aug 23, 2026
1f5f0ae
dtls: preserve datagram boundaries on the inbound BIO
jasnell Aug 23, 2026
bfa94e3
dtls: add session.authorized and session.authorizationError
jasnell Aug 23, 2026
8dc0445
dtls: correct the requestCert/rejectUnauthorized matrix
jasnell Aug 23, 2026
8ef12e5
dtls: only extract key material when something is listening
jasnell Aug 23, 2026
1e44ba3
dtls: screen datagrams before allocating a handshake for them
jasnell Aug 23, 2026
a4bd742
dtls: bound the server session table
jasnell Aug 23, 2026
0d0092a
dtls: size the outbound datagram buffers to the datagram
jasnell Aug 23, 2026
fb714f0
dtls: validate the exportKeyingMaterial length
jasnell Aug 23, 2026
910a8cf
src: pair SocketAddress::Hash with a matching equality
jasnell Aug 23, 2026
a055d55
dtls: derive the cookie from a canonical peer address
jasnell Aug 23, 2026
d773d1e
dtls: stop retaining server sessions, and scope them to the server
jasnell Aug 23, 2026
3d38755
dtls: validate ALPN protocol lists
jasnell Aug 23, 2026
f4883ee
dtls: fail the handshake when no ALPN protocol is shared
jasnell Aug 23, 2026
2eae15f
dtls: report why send() could not send
jasnell Aug 23, 2026
8308eb1
dtls: settle session.opened when the session is torn down
jasnell Aug 23, 2026
09026d2
dtls: bind the local socket in the peer's address family
jasnell Aug 23, 2026
b482852
dtls: do not resend a datagram that was already sent
jasnell Aug 23, 2026
6275168
dtls: describe the OpenSSL options accurately
jasnell Aug 23, 2026
f1a67ba
dtls: only copy incoming data when something is listening
jasnell Aug 23, 2026
8473c64
dtls: check the BIO allocation in GetPeerCertificate
jasnell Aug 23, 2026
536ec08
doc: record two deliberate dtls limits
jasnell Aug 23, 2026
86f306f
doc: describe the dtls cookie design and the internal-only members
jasnell Aug 23, 2026
d8fbfee
dtls: stop aborting on failed value creation in the accessors
jasnell Aug 23, 2026
8e2d2fb
dtls: stop aborting on failed value creation in the callback paths
jasnell Aug 23, 2026
e95699e
dtls: drop truncated datagrams instead of ignoring the recv flags
jasnell Aug 23, 2026
b607875
dtls: report why loading a certificate or key failed
jasnell Aug 23, 2026
97ae777
dtls: support a passphrase for encrypted private keys
jasnell Aug 23, 2026
f171f95
dtls: add session.peerX509Certificate
jasnell Aug 23, 2026
1eb3262
dtls: add createSecureContext and the secureContext option
jasnell Aug 23, 2026
e251427
dtls: add server-side SNI
jasnell Aug 23, 2026
9d68f7a
dtls: add session resumption
jasnell Aug 23, 2026
6afaf7d
dtls: add pre-shared key support
jasnell Aug 23, 2026
1a15956
dtls: add handshake timeout
jasnell Aug 23, 2026
c004a47
dtls: emit new sessions before driving the handshake
jasnell Aug 23, 2026
e0437bd
dtls: accept a callback for SNI
jasnell Aug 23, 2026
7988ed8
doc: lift the DTLS topic sections to their own level
jasnell Aug 23, 2026
0783412
dtls: stop exposing session and endpoint state
jasnell Aug 23, 2026
948ab90
dtls: do not report verification results before the handshake
jasnell Aug 23, 2026
68c5fc6
dtls: validate the options that reach a CHECK in the binding
jasnell Aug 23, 2026
2132fb9
dtls: require servername to be a string
jasnell Aug 23, 2026
355ea7a
dtls: report exceptions thrown by the keylog callback
jasnell Aug 23, 2026
f48cc0b
dtls: report exceptions thrown while reading a callback's result
jasnell Aug 23, 2026
f742faf
dtls: register the two missing external references
jasnell Aug 23, 2026
0c0dbd4
dtls: keep pre-shared keys working on a server that serves SNI
jasnell Aug 23, 2026
062e0d8
dtls: hold SNI contexts weakly
jasnell Aug 23, 2026
7b642ef
dtls: clear a callback when one is not supplied
jasnell Aug 23, 2026
e01868d
dtls: check that a value is a context before unwrapping it
jasnell Aug 23, 2026
9f41eaf
dtls: make sni a property of the secure context
jasnell Aug 23, 2026
f9a0ea4
dtls: settle a session's promises when its endpoint is destroyed
jasnell Aug 23, 2026
6f27438
src: do not change the address map QUIC uses
jasnell Aug 23, 2026
853c48a
dtls: remove a callback that cannot be invoked
jasnell Aug 23, 2026
e26f7a8
dtls: state the session constructor's endpoint invariant once
jasnell Aug 23, 2026
483c4e8
dtls: report a record that could not be sent
jasnell Aug 23, 2026
ce44c13
dtls: read the error this operation queued, not the oldest one present
jasnell Aug 23, 2026
bba2a1c
dtls: make ownsEndpoint internal
jasnell Aug 23, 2026
d2f0057
doc: fix dtls examples that throw, and a garbled option entry
jasnell Aug 23, 2026
7947d87
dtls: validate isServer and rejectUnauthorized as booleans
jasnell Aug 23, 2026
1614657
dtls: mark stats stale when their source goes away
jasnell Aug 23, 2026
5531b96
dtls: report bind and listen failures with the operating system's code
jasnell Aug 23, 2026
54b9687
doc: correct three dtls claims and file two sections under the right …
jasnell Aug 23, 2026
088bf9f
doc: document the dtls members that were public but unlisted
jasnell Aug 23, 2026
af3892b
dtls: check the return values that were being discarded
jasnell Aug 23, 2026
c35fbec
dtls: say why a psk callback's result was unusable
jasnell Aug 23, 2026
100663a
dtls: accept any view over bytes in send()
jasnell Aug 23, 2026
866c999
dtls: refuse server-only options on a client context
jasnell Aug 23, 2026
3d18e9a
dtls: use a type error for a session that is not a Buffer
jasnell Aug 23, 2026
7119273
dtls: explain why the binding's closed-session guard stays
jasnell Aug 23, 2026
6c9b4e4
dtls: bind dual stack by default, and make ipv6Only an option
jasnell Aug 23, 2026
8674e40
dtls: add reusePort and the UDP buffer and TTL options
jasnell Aug 23, 2026
a7d66f1
dtls: list the new socket options in the listen() and connect() jsdoc
jasnell Aug 23, 2026
3e303b4
doc: remove mention of C++ internals from dtls.md
jasnell Aug 23, 2026
06ba1a6
test: fix the dtls permission test for the symbol-keyed bind()
jasnell Aug 23, 2026
f442a29
doc: restore a dropped word in the endpoint.stats description
jasnell Aug 23, 2026
d9c4d87
src: replace NewFromUtf8 with ToV8Value
jasnell Aug 23, 2026
c3c5fef
src: fixup c++ linting after multiple commits
jasnell Aug 23, 2026
3da1292
dtls: take the psk error message as a string_view
jasnell Aug 23, 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
789 changes: 723 additions & 66 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