ADR-0090 records the maintainer's selection of msquic 2.6.2 with OpenSSL 3.5.9 LTS built from pinned, checksum-verified sources on Windows and Linux (plus the xdp-for-windows headers msquic needs on Windows), the trust, threading and channel model, and the known gap that OpenSSL's verifier also trusts its default paths. Adds the opt-in quic preset, explicit preparation, and a loopback smoke test (datagram, stream, untrusted CA and wrong name refused) passing on MSVC and GCC. windows-check picks up newly installed Perl/NASM and pins cl. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
6.4 KiB
ADR-0090: M10 transport — QUIC with msquic and OpenSSL
Status
Accepted for M10.2 (2026-10-03). The selection, pins and build integration (10.2a) are decided here; bounded channels with the impairment relay (10.2b) and loss/head-of-line measurements (10.2c) implement and test it and may amend the channel parameters. Resolves the transport half of ADR-0017; its no-custom-cryptography rule stands.
Context
ADR-0089 fixes the budgets the transport must meet: 1,200-byte realtime payloads, superseding state separate from reliable actions, 1 s heartbeat, 5 s liveness and handshake, bounded queues. The M9 dev session is TLS 1.3 over TCP (ADR-0082), where one lost segment delays everything behind it.
Candidates surveyed 2026-10-03 (GitHub releases and licences):
| Candidate | Latest release | Licence | Fit |
|---|---|---|---|
| msquic (Microsoft) | v2.6.2, 2026-09-30 (v2.6.1 2026-08-28) | MIT | Complete QUIC: TLS 1.3, streams, RFC 9221 DATAGRAM, congestion control, PMTUD, own threads; C API; Windows and Linux |
| ngtcp2 | v1.25.0, 2026-07-26 | MIT | Protocol library; we own UDP I/O, timers, loop and a crypto backend |
| picoquic | date-tagged builds (2026-10-01) | MIT | Research-oriented, picotls |
| lsquic | v4.10.0, 2026-09-20 | MIT | Requires BoringSSL |
| quiche | 0.30.0, 2026-09-17 | BSD-2-Clause | Rust toolchain dependency |
| GameNetworkingSockets | v1.6.1, 2026-10-03 | BSD-3-Clause | Game messages and fragmentation; its own non-TLS encryption and certificates |
| Mbed TLS DTLS + owned reliability | 4.2.0 / 4.1.1 | Apache-2.0 option | DTLS 1.2 only here; we would own reliability, fragmentation and congestion |
| wolfSSL | v5.9.4 | GPL-3.0 | Excluded by licence |
Decision (maintainer, 2026-10-03)
- msquic 2.6.2 (commit 819ab74f, MIT) with its OpenSSL TLS provider on Windows
and Linux, OpenSSL 3.5.9 LTS (Apache-2.0), both from pinned, checksum-verified
release archives (
tools/msquic-pin.cmake,tools/prepare-msquic.cmake). msquic's OpenSSL submodule points at an untagged openssl-3.5 commit (453eaaa9, 2026-07-29); the official 3.5.9 release on the same branch replaces it for provenance and later fixes, and the smoke test proves the combination. - msquic builds OpenSSL statically into its shared library with TLS 1.3 only and legacy
protocols/algorithms disabled (
no-tls1_2,no-dtls,no-legacy,no-deprecatedand others in msquic's submodule build). Logging, tests, tools and perf are off; the library ismsquic.dll/libmsquic.so. Windows builds need Strawberry Perl and NASM (installed with winget on the development host, 2026-10-03;tools/windows-check.ps1reads them from the registry PATH and pinsCC/CXXtoclbecause Strawberry also puts MinGW compilers on PATH) plusnmake. - msquic always compiles its Windows XDP datapath (optional at run time), which needs the
headers of its
xdp-for-windowssubmodule: pinned at msquic's commit d372b525 (MIT), archive SHA-256 9a52e1b5..., only those headers are used. - Upstream builds itself with warnings as errors and MSVC
/analyze; MSVC 19.44 reports C28020 in unmodifiedcrypto_tls.c. As for Mbed TLS,cmake/Quic.cmakeappends/WX-(-Wno-errorelsewhere) to msquic's ownwarningsinterface; owned code keeps warnings as errors. Windows consumers also linkntdllfor msquic.h's inline address helpers. - Trust: servers present a certificate chain from environment provisioning (dev: the
ADR-0083 dev CA). Clients load the environment CA with
CaCertificateFileand use OpenSSL's verifier on every platform (USE_TLS_BUILTIN_CERTIFICATE_VALIDATION; msquic forces it on Linux, and on Windows its default platform verifier ignores the CA file), verify the server name, and never setNO_CERTIFICATE_VALIDATION. ALPNevo-m10. Known gap: OpenSSL's built-in verification also loads its default verify paths (OPENSSLDIR,SSL_CERT_FILE,SSL_CERT_DIR), so trust is the pinned CA plus those locations, not the pinned CA alone. 10.2b closes this with exact pinning: the adapter requests the peer chain (INDICATE_CERTIFICATE_RECEIVED/deferred validation) and accepts only a chain to the configured CA with the expected name, checked in owned code. Grants and session admission stay application-level (ADR-0083/10.3). - Threading: msquic calls back on its own worker threads. The transport adapter only copies bounded data into bounded queues owned by the region host's thread; callbacks never touch simulation or presentation state and never block.
- Channels (implemented in 10.2b): realtime intentions and superseding snapshots on QUIC DATAGRAM frames (unreliable, congestion-controlled, payload <= 1,200 bytes, newest-wins, never retransmitted by us); reliable actions and outcomes on bidirectional streams with bounded send/receive windows; liveness from QUIC keep-alive (1 s) and idle timeout (5 s); handshake idle timeout 5 s; congestion control msquic's default (CUBIC) unless 10.2c measurements justify BBR.
- M9 path: the TLS-over-TCP dev session remains the dev/engineering fallback; M10 features build on QUIC only.
- Impairment tests: an owned, seeded user-space UDP relay (loss, reorder, duplication, delay, jitter, MTU), no root; packet-level TCP comparison is not run.
Evidence (10.2a, 2026-10-03)
evo-quic-smoke-tests (label quic, preset quic): loopback handshake with the dev CA,
one DATAGRAM and one stream message with FIN delivered, an untrusted CA refused (TLS
alert 51) and a wrong server name refused (alert 42), on Windows MSVC 19.44 and Linux
GCC 14; clang-tidy clean; repeated runs stable. Linux standalone build 280 s; full
results in engineering/VALIDATION.md.
Alternatives considered
See the table. ngtcp2 needs more owned networking code; GameNetworkingSockets uses non-TLS cryptography; DTLS plus owned reliability carries the retransmission and congestion risk ADR-0017 warns about; Schannel would split TLS stacks by platform and exclude older Windows; prebuilt msquic binaries are not built from reviewed sources.
Consequences
Two TLS stacks exist while the M9 fallback remains (Mbed TLS in the session library,
OpenSSL inside msquic). Clean builds take about 5 minutes longer on Linux (OpenSSL).
When the client adopts QUIC, the Windows package (ADR-0086) adds msquic.dll to its
allowlist and the msquic (MIT) and OpenSSL (Apache-2.0) notices. OpenSSL and msquic
security releases update the pin, checksums and this ADR. UDP-blocked networks are
served only by the dev fallback for now.