Skip to content

Implementation Status

Pummelchen edited this page Sep 12, 2026 · 152 revisions

Implementation Status

The active Swift implementation targets IETF draft-ietf-webtrans-http3-16, published on 6 July 2026. Every item in the repository's draft-16 compliance matrix currently passes, backed by protocol, runtime, process, and interoperability tests.

This status is an implementation claim, not a general certification. The project remains macOS-specific and under active development; see Known Limitations.

Public API

Surface Responsibility
WebTransportClientConfiguration Authority, path, origin, subprotocols, trust, settings profile, optimistic capsules, and timeout.
WebTransportServerConfiguration Listener admission policy, supported subprotocols, settings profile, timeout, local-only binding, TLS identity, connection admission limits, and QUIC transport limits.
WebTransportClient Establish outbound WebTransport sessions.
WebTransportServer Create configured listeners.
WebTransportListeningServer Report the bound endpoint and certificate fingerprint/expiry, accept sessions, and shut down immediately or gracefully with GOAWAY and drain.
WebTransportSession Streams, datagrams, drain, close, endpoints, selected protocol, and TLS exporter material.
WebTransportBidirectionalStream Send and receive application data over a QUIC stream.
WebTransportLogger and WebTransportErrorSurface Opt-in sanitized events and redacted public error text.

The high-level package intentionally exposes a smaller surface than the protocol-core modules. Unidirectional stream handling exists in the core but is not currently part of the application-facing WebTransportSession API.

The lower-level libraries are published products too, and 1.3.6 adds one entry point to them: QUICTransportParameters.validated() enforces the RFC 9000 section 18.2 value rules that decode deliberately leaves alone, because decode is also the TLS-extension parser and must keep accepting parameters this build does not model. The UDP helper's receive path also gained truncation reporting: an oversized datagram is refused rather than silently shortened.

Protocol coverage

Area Implemented behavior
Session establishment HTTP/3 extended CONNECT, authority/path/origin policy, subprotocol negotiation, acceptance, and rejection.
Draft-16 behavior Optimistic capsules, directional flow control, strictly increasing limits, close-message validation, excessive-session rejection, and session-bound TLS exporter context.
Streams and datagrams Bidirectional and core unidirectional streams, QUIC DATAGRAM signaling, buffering, backpressure, reset, stop-sending, close, and drain.
HTTP/3 and QPACK SETTINGS, control/request streams, frames, GOAWAY, static and dynamic QPACK behavior, Huffman coding, Base, and post-Base references.
QUIC Variable-length integers, packets, frames, stream identifiers, transport parameters, flow/congestion state, loss and ACK helpers, and packet protection.
TLS 1.3 Handshake messages, transcript and key schedule, certificate trust and CertificateVerify gating, Finished, ALPN h3, QUIC parameters, and exporter material.
Runtime Network.framework QUIC client/server sessions, packet transport, trust policies, endpoints, timeouts, and connection lifecycle.

Validation evidence

  • 294 Swift tests cover the public API, runtime, protocol layers, crypto, UDP, process behavior, stress, malformed input, resource limits, server identity, admission policy, graceful shutdown, peer-input fuzzing, and PKCS#12 identity import of bundles Security.framework cannot build an identity from.
  • Client and server command-line conformance suites each contain 40 positive and negative scenarios.
  • CI enforces the Swift 6.3.3 toolchain baseline, strict memory and concurrency diagnostics, manifest agreement between the two package manifests, builds the package and DocC, compiles a standalone API consumer, verifies reproducible release artifacts, runs the test suite, and runs both conformance suites. Two further jobs run the peer-input fuzz corpus under AddressSanitizer and the in-process suite under ThreadSanitizer.
  • The remote interop matrix passed 7/7 proofs across 5 independent implementations on 16 August 2026, with platform system trust over a routable path.
  • Release 1.3.6 was published from commit 1643ed4 on 12 September 2026 with CI green across all three jobs, 294 package tests, both 40-scenario conformance suites, and reproducible artifacts verified against their published checksums. It is a defect-fix release; its evidence is unit, conformance, sanitizer and reproducibility coverage rather than a new interoperability run, so the 1.3.5 remote matrix (7/7 across five implementations) remains the standing interop claim for the protocol behaviour, which 1.3.6 does not change.
  • Release 1.3.5 was published from commit b1c5625 on 16 August 2026 with CI green across all three jobs, 273 package tests, both 40-scenario conformance suites, remote interop 7/7 and containerized interop 5/5.
  • Release 1.3.4 was published from commit a777b26 on 16 August 2026 with CI green across all three jobs, 273 package tests, both 40-scenario conformance suites, and containerized interop passing 5/5.
  • Release 1.3.3 was published from commit 56a521e on 16 August 2026 with CI green across all three jobs, 263 package tests and both 40-scenario conformance suites.
  • Release 1.3.1 was published from commit ac1c71c on 15 August 2026 with CI green across all three jobs, 260 package tests, both 40-scenario conformance suites, and Docker interop passing 5/5.
  • Release 1.3.0 was published from commit 3060a6e on 15 August 2026 with CI green across all three jobs, 256 package tests, both 40-scenario conformance suites, and Docker interop passing 5/5 across pywebtransport/aioquic, Quinn and Quiche. Its code audit was performed by Claude Opus 5.
  • Release 1.2.0 passed four required stream/datagram proofs across pywebtransport/aioquic, Quinn, and Quiche implementations.
  • A containerized matrix reproduces five of those proofs on any machine with Docker, and Chrome 148 has been verified end to end against the listener.
  • Peer-facing parsers are fuzzed under AddressSanitizer; the runtime is checked under Thread Sanitizer and a connection-churn soak.

See Development and Testing for commands and Release and Interoperability for proof boundaries.

Package layers

The repository-root package exports the high-level WebTransport product, six lower-level libraries, and the WebTransportClient and WebTransportServer executables. The nested Swift/Package.swift additionally provides smoke-test executables and shared test support.

WebTransportNetworkRuntime also depends on WebTransportSecurityShim, an internal C/Objective-C target that is not exported as a product. It exists because SecPKCS12Import raises an Objective-C exception for an identity it cannot construct, and Swift cannot catch one; the shim provides the Objective-C frame where that exception becomes a status code. It is the only non-Swift source in the repository.

Planned ports

C99/ now contains a working, tested implementation of the QUIC wire core and of QUIC's cryptographic packet protection, on top of a build system and a conformance suite of its own; "planned" no longer describes it, and the detail is in The portable C99 implementation in this repository below. What it still has no code for is TLS, the QUIC connection runtime, HTTP/3, QPACK and the WebTransport session, so no WebTransport session can be established yet.

The two trees are independent ports, not layers of one another: they share no files, and each has its own application names (wt-client-c99 versus wt-client). Work on one does not depend on the other.

C99 target

The C99 port targets XAIOS, which has no C++ support and never will. The repository has been inspected directly, and the constraint is satisfied at the source level: XAIOS contains 596 C files, 239 headers and 58 assembly files, and zero C++, .cc, .cxx or .hpp files. A pure C99 port introduces no C++ and needs no C++ runtime.

Three earlier assumptions are now settled:

  • libc. XAIOS provides picolibc, built freestanding into a sysroot by scripts/build-libc.sh and layered with userspace/libc/. The plan's configurable allocator stands as written.
  • Network stack. XAIOS has a full kernel stack — IPv4, IPv6, ARP, NDP, routing, socket_buffer, and e1000e/virtio_net/vmxnet3 drivers — exposed to userspace through a capability-checked syscall API (XAIOS_SYSCALL_NET_SEND, _NET_RECV, _NET_LISTEN, _NET_RESOLVE), not raw POSIX sockets. xaios_net_sendto and xaios_net_recvfrom carry real datagrams, including ARP resolution with a bounded retry on first contact.
  • Crypto. OpenSSL cannot be used — XAIOS has none. It vendors BearSSL instead, and scripts/build-bearssl.sh compiles every src/**/*.c of it with -std=c99 -ffreestanding -fno-builtin -Os -Wall -Wextra -Werror, so the whole library is available rather than only the objects xapt links.

BearSSL supplies the primitives a TLS 1.3 implementation needs: AES-GCM, ChaCha20-Poly1305, HKDF, SHA-256/384/512, X25519, ECDSA verify on P-256/384/521, and RSA-PSS verify.

It does not supply TLS 1.3, and QUIC requires TLS 1.3. The vendored copy is documented as being "for the xapt TLS 1.2 client"; bearssl_ssl.h defines BR_TLS10/11/12 with no BR_TLS13, and there is no TLS 1.3 source in the tree. RFC 9001 makes TLS 1.3 mandatory for QUIC, so the handshake cannot be delegated. Writing that state machine in C99 on top of BearSSL's primitives is the largest single workstream in the port — the crypto is solved, and the handshake is new code with no counterpart in either repository.

That work is done, on the XAIOS side and on main as of 787622c, short of three things named below. userspace/wt/ carries the key schedule, QUIC packet protection, TLS handshake framing and the transcript, a ClientHello builder, ServerHello, EncryptedExtensions, CertificateRequest, Certificate and CertificateVerify parsers, x25519, the Finished MAC, the CertificateVerify signature check, the pinned-key policy, and the client handshake state machine that sequences them. 1214 host checks against RFC 8446, 8448, 9001, 7301 and 7748 run in XAIOS CI and under AddressSanitizer and UndefinedBehaviorSanitizer; the RFC vectors are extracted from the RFC text rather than transcribed and two Python oracles recompute them; and the handshake completes end to end against a server flight built by an independent Python implementation, which is what makes the client's own Finished a check rather than a tautology. What is not written is 0-RTT and the session tickets it needs, so there is no early-data encryption level at all; HelloRetryRequest, which is refused by name rather than mishandled; and client authentication beyond the empty Certificate a client with no certificate sends.

The trust model is decided, and it is the one xapt already uses: one pinned operator key. xapt verifies identity against an operator-set RSA public key rather than building a general path, and WebTransport adopts the same model, which removes general X.509 path building, a trust store, a clock and a revocation story from scope. It is implemented on the XAIOS side in userspace/wt/src/wt_tls_pin.c: an unset pin refuses everything rather than accepting anything, and a certificate has to pass two independent checks -- it must carry the pinned key, and its signature over the transcript must verify under that key. Neither alone is sufficient: a pin by itself accepts a certificate anyone could copy, and a signature check by itself accepts any self-signed key an attacker generated.

What a pin does not do is authenticate a name. It answers "is this the machine this image was built to talk to", not "is this the host that DNS named", and every deployment that pins gives up being redirected. That is the trade rather than an oversight, and Security and Trust states it for the Swift side too.

The size remains roughly 15,000 to 25,000 lines of C99. The Swift side is measured at 17,126 lines across 49 files; the QUIC runtime and the TLS 1.3 handshake have no Swift counterpart to size against, so the range still carries real uncertainty.

The portable C99 implementation in this repository

The C99/ directory is a second, portable implementation, built from the Swift library rather than from the XAIOS work, against C99/IMPLEMENTATION_PLAN.md's fourteen phases. Phases 0 to 2 are complete and Phase 3 is under way on main, the latest at fafe88e. Phase 0 is the CMake project -- a static and a shared library, the three CLI tools, ten core modules (checked arithmetic, byte cursor, two-pass writer, bounded buffer, allocator interface, status model, logging surface, monotonic clock, endian helpers, version), an install tree with a find_package consumer test, and a C99 CI workflow on macOS and Debian. Phase 1 is the QUIC wire core: varints, packet numbers, every RFC 9000 frame plus the RFC 9221 DATAGRAM pair, long/short/Retry packet headers, transport parameters and connection ID retirement, with RFC 9000's published varint and packet number examples and RFC 9001 appendix A.2's client Initial as vectors. Phase 2 is the crypto provider and packet protection: SHA-256, HMAC, HKDF, AES-128-GCM and ChaCha20-Poly1305, the AES block and ChaCha20 keystream header protection is built from, then the Initial secret and packet keys, the traffic-secret and key-update derivations, the packet nonce, header protection and the payload seal and open. Its vectors are all of RFC 9001 appendix A -- the Initial keys, both Initial packets and the ChaCha20-Poly1305 short header packet, with their samples, masks, packet numbers and nonce -- re-derived from the RFC text by the extractor before they are written, and checked in CI by C99/scripts/check-vectors.sh. 23 test files and 73,601 checks pass under CTest and under AddressSanitizer and UndefinedBehaviorSanitizer. Phase 3's first part is the TLS 1.3 key schedule and handshake transcript (RFC 8446 section 7.1): the two extract chains, both directions' traffic secrets, the record keys, the Finished keys and verify data, and a running transcript that absorbs whole handshake messages into a SHA-256 and reads the hash at each derivation without consuming it. Its vectors are RFC 8448 section 3's trace, whose transcript hashes are checked against the handshake messages extracted beside them. Phase 3's second part is the handshake message and extension codecs: the four-byte framing, the extension list and the typed extensions, and the ClientHello and ServerHello parsed into views, re-encoded byte for byte and built from parameters, with RFC 8448's own ClientHello as the round-trip vector. Phase 3's third part is the X25519 key agreement, checked against RFC 7748's vectors and against RFC 8448's own shared secret, which is what ties the key agreement to the key schedule. Phase 3's fourth part is the certificate messages: Certificate, CertificateVerify and Finished as framing, with nothing validated at that layer, which is what lets them be pinned to RFC 8448's own bytes. The rest of Phase 3 -- certificate validation through OpenSSL, the CertificateVerify signature check, the trust policy and the two state machines -- is next. Four defects were found while building Phase 2, all of them in code that had never been executed until its first test called it; they are recorded in WT-55.

No TLS, HTTP/3 or WebTransport code exists yet, so the draft-16 score stays 0%. Phases 3 to 14 are WT-56 to WT-67 on the Project Tracker, each with what it would take to close it

Open items are tracked as WT-3 to WT-67 on the Project Tracker, which is the only task list for this repository. WT-35 through WT-53 were added by the XAIOS-side C99 work, each naming the XAIOS tracker entry it corresponds to, and WT-54 through WT-67 by the portable C99 implementation in C99/.

Clone this wiki locally