Record C99 Phase 3's first part, and the derivation with no consumer
The TLS 1.3 key schedule and handshake transcript are in: RFC 8446 section 7.1's two
chains, the four traffic key sets, the Finished keys and verify data, and a running
transcript that reads its hash at each derivation without consuming it. The vectors
are RFC 8448 section 3's trace, re-derived before they are written and checked
against the handshake messages the trace prints, so the transcript is pinned to the
document as well as the schedule. The phase table says the phase is partly done and
names what remains.
WT-71 is added for the one thing the schedule derives that nothing uses: the
resumption master secret. Session tickets, PSKs and 0-RTT are not implemented, and
nothing in draft-16 requires them, so this is scope rather than a defect -- but the
derivation is tested and unconsumed, and the tracker should say so rather than leave
it to be discovered.
Also worth carrying: two of the extractor's three mistakes were the same shape as the
defects this project keeps finding, a value that could not express a distinction. A
value's hex straddles a page break, so "read until a blank line" stopped in the
middle of it; and a step kind the parser did not recognise let the step above it
swallow its values, which is how the server's abbreviated "res master" step read a
ticket nonce as its transcript hash. Both are now stated in the extractor where the
next person will read them.
86720e3
Record C99 Phase 2, and the four defects in code nothing had run
The crypto provider and QUIC packet protection are complete: SHA-256, HMAC, HKDF,
AES-128-GCM and ChaCha20-Poly1305, then the Initial secret, the traffic-secret and
key-update derivations, the nonce, header protection and the payload seal and open.
The vectors are all of RFC 9001 appendix A, re-derived by the extractor before they
are written, and `C99/scripts/check-vectors.sh` now re-extracts them in CI so a
hand-edited vector fails there rather than quietly changing what a test proves.
The phase table says so, and WT-55 moves to Resolved.
What is worth carrying forward is that all four defects were in code that had never
been executed until this phase's tests called it, and that three of them were
contracts rather than arithmetic. `wt_aead_open` asked OpenSSL for a computed tag,
which its provider GCM cannot produce in decrypt mode -- so the contract became an
authenticated open that clears the plaintext, which is also the shape that cannot
be misused. HKDF-Expand passed its mode to EVP_KDF as a four-byte string, which that
parameter rejects, so every derivation in the library returned WT_ERR_UNSUPPORTED;
it is the RFC 5869 HMAC chain now. A SHA-256 context with no initialised marker
dereferenced the caller's array. And the installed package did not declare its
OpenSSL dependency, which no build inside the tree could have noticed.
Three rows are added rather than closed: the BearSSL/OpenSSL backend split the two
C99 bodies of work now meet at (WT-68), the key update lifecycle that Phase 2 named
and deliberately left to the runtime (WT-69), and the Retry integrity tag, which is
the one part of RFC 9001 section 5 neither phase covers (WT-70).
bacc3c0
Record C99 Phase 1, and the three defects of one shape it found
The QUIC wire core is complete: varints, packet numbers, frames, packet headers,
transport parameters and connection ID retirement, with RFC vectors and a
deterministic malformed-input corpus. The tracker's phase table says so, and
WT-54 moves to Resolved.
What is worth carrying forward is the shape of three of the four defects. A range
walk reset its own count instead of accumulating it; a parameter lookup answered
with a pointer, so 'present with an empty value' and 'absent' were the same
answer; and a long header's reported size excluded the packet number it named.
Each is a value that could not express a distinction the protocol draws, and each
was found by a test that asked about the distinction rather than about the
arithmetic. The fourth -- a frame value type that was not fully initialised --
only failed at -O2, which is the argument for running all three build
configurations rather than Debug alone.
b582e42
Record C99 Phase 0, and what each remaining phase owes
The C99 directory was described on four wiki pages as a plan and a skeleton. It is
now a build, a tested core, an installable package and a CI job, and the pages say
so -- with the draft-16 score left at 0%, because there is still no protocol code
and the score is about the protocol.
The tracker gains a phase table: all fourteen phases of IMPLEMENTATION_PLAN.md,
each with its status and a new reference, WT-54 to WT-67. Phase 0 is complete and
names the commit; Phase 9 and 10 are partly done and say which part; Phase 12 and
13 say what is on CI and what waits for the protocol. That is the honest reading
of 'complete' for a phase whose completion criteria include things that only make
sense once there is protocol code to test.
62dba35
The check count is 1214, not 1208
Four checks were added after that number was written -- the ALPN wire-format
regression test, which is what pins the defect the independent fixture found, and
the two that drive a level outside the enum. The number on these pages is
supposed to be the number the suites report.
11faf53
Write down the port's ten remaining tasks, and pause there
The handshake is done, merged and green in XAIOS CI. What is left of the port is
ten tasks, recorded here as WT-44 to WT-53, each naming the XAIOS tracker entry
that holds its detail and the exit criterion that would close it, in the order
they unblock each other.
Two of them are why this is a pause rather than a finish. Nothing on the target
drives the handshake from a socket yet, and there is no QUIC connection runtime
under it: the TLS module is handed messages that have already been reassembled
and in order, and nothing reassembles them. A handshake that works against a
fixture is not a connection, and saying so here is cheaper than implying
otherwise.
The other eight are the transport parameters still carried as opaque bytes, the
three protocol features not implemented (0-RTT and its session tickets, a
HelloRetryRequest, client certificates), and three pieces of evidence the work
does not have: no P-384 or P-521 certificate through the verifier, no RISC-V
build of the module, and two views that outlive their buffers by documented
contract rather than by construction.
a73b7f4
Follow the XAIOS tracker's renumbering, and record that the port is on main
The port's XAIOS tracker rows were renumbered from B-61..B-70 to B-74..B-83,
because main had already taken B-61..B-73 for the RISC-V and CI work. The four
rows here that cite them now cite B-79, B-81, B-82 and B-83, and the rows no
longer say the work is unmerged: it is on XAIOS main as of 787622c.
The Implementation Status page says the same, and gains the two facts that make
the handshake checkable rather than merely present: the host suites now run in
CI, and the client completes a handshake against a server flight built by an
independent implementation.
7042a39
Record the completed TLS 1.3 client handshake and what the audits found
WT-6 is answered: the client handshake is implemented in C99 on the XAIOS side
and completes against an independently generated QUIC server flight. The row now
says what is not implemented -- 0-RTT, session tickets, HelloRetryRequest and
client certificates -- rather than leaving that to the XAIOS tracker.
Four rows are added. WT-40 and WT-41 are the two memory-safety defects the work
found: a CertificateVerify digest buffer sized for SHA-256 while offering
SHA-512, and a public key that pointed into a dead decoder frame. WT-42 is the
ALPN extension read in a format RFC 7301 does not define, which would have
refused every conformant server's answer and which survived four audits because
nothing in either repository carried ALPN until an independent implementation
was made to disagree. WT-43 is that the host suites, over a thousand checks, were
run by no CI job at all.
The Implementation Status page is updated with the same three things: the trust
model is decided and implemented rather than proposed, the handshake is written
rather than outstanding, and the open-item range it names is corrected.
acd6502
Record the XAIOS-side TLS 1.3 progress, and what is still missing
WT-6 is the P0 blocker for this port, so it should say what exists rather than
only that BearSSL has no TLS 1.3. The key schedule, QUIC traffic keys, Initial
secrets, Retry integrity tag and packet protection are implemented and checked
against RFC 8448 and RFC 9001 -- 329 host checks, with the vectors extracted
from the RFC text and two independent Python oracles recomputing them. Two
adversarial audits of that half found a remote stack overflow, a resumption
secret derived from the wrong transcript, an encoder using the wrong packet
number range and a decrypt path that failed on every packet; all four are fixed
and the fixes are pinned by tests.
What is not implemented is the handshake: no ClientHello, ServerHello,
extensions, Certificate, CertificateVerify or Finished. That is B-66 on the
XAIOS side, gated by B-67 -- nothing on XAIOS can yet decide whether to trust a
server certificate, which is a policy decision rather than missing code.
84e3fc3
Record the XAIOS-side answer to WT-35 and WT-36, and the limit it found
WT-35 is implemented, tested and pushed on XAIOS's `webtransport` branch
(4ddd7d8, 56ed3fd), awaiting audit and merge to main. The row said the kernel
already handled datagram sends from a socket that has never received and that
this was "a small userspace/syscall addition"; the first half was right and the
second was not quite. Three defects were found by building the gate rather than
by reading the code, and they are named in the outcome because each one is the
kind that reads as correct:
- the chosen port travelled back through a field of the request structure, so
the caller read zero for exactly the case the call exists for;
- `kernel_socket_alloc` does not check for a port already held, so two
ephemeral opens could be handed one port and the reply lookup -- which
stops at the first match -- would leave the second unreachable and silent;
- the ephemeral counter wrapped at the top of `uint16_t` rather than of the
range, so one draw in 16384 handed out port 0 and reported "no port".
WT-36 is answered, and the answer is narrower than the row assumed. An
oversized datagram is dropped whole at the frame against the same bound the
read is clamped to, so a caller sizing its buffer at SOCKET_BUFFER_SIZE cannot
be truncated and needs no flag; the row's "maximum-datagram-size policy" is
already the behaviour. Truncation is still silent for a caller that asks for
less, and saying so needs a syscall change rather than a stack one, so the row
stays P2 with that stated rather than closed.
WT-39 is new: NETWORK_MAX_LISTENERS is 16 and serves TCP and UDP together, and
every datagram socket now registers a row, so a ceiling that previously took
sixteen deliberate binds is now on a path that does not ask for it. Nothing
here reaches it; it is recorded because WT-35 changed who is exposed to it.
1456a3f
Drop C++ from the wiki and resolve the two-tree item
The C++ port is gone from the repository, so the wiki no longer describes it.
Home, Implementation Status, Known Limitations and the Repository Guide now speak of a
single port target rather than two. The Repository Guide's generated-output rule no
longer names `CPP/out/`.
WT-11 is resolved rather than deleted. It recorded that the C99 and C++ trees were
independent, which was correct and is why removing the C++ tree left `C99/` intact —
worth keeping as the answer to a question someone will ask again.
The remaining mentions of C++ are the ones that matter: Implementation Status says
XAIOS has no C++ support and never will, and that its source contains zero C++
files. That is the constraint that drove the decision, not a description of a port.
ed0cd7b
Record the XAIOS inspection and the real blocker: no TLS 1.3
XAIOS was read directly rather than reasoned about. The C++ question is closed: 596 C
files, 239 headers, 58 assembly files, and zero C++ of any extension. A pure C99 port
needs no C++ toolchain and emits no C++ calls.
Three assumptions are now settled:
- libc is picolibc, built freestanding into a sysroot, so the configurable allocator
stands.
- The network stack is real and in-kernel (IPv4, IPv6, ARP, NDP, routing, three NIC
drivers), reached through a capability-checked syscall API rather than POSIX sockets.
xaios_net_sendto/recvfrom carry genuine datagrams with ARP resolution and a bounded
first-contact retry.
- OpenSSL is absent, so the plan's crypto dependency is wrong. XAIOS vendors BearSSL,
and its build script compiles every source with -std=c99 -ffreestanding -Werror, so
the whole library is available, not just the objects xapt reaches.
The decisive finding is WT-6, raised to P0: BearSSL has no TLS 1.3. The vendored copy is
explicitly for a TLS 1.2 client, bearssl_ssl.h defines BR_TLS10/11/12 with no BR_TLS13,
and there is no TLS 1.3 source anywhere in the tree. QUIC requires TLS 1.3, so the
handshake cannot be delegated. BearSSL does supply every primitive needed to write it —
AES-GCM, ChaCha20-Poly1305, HKDF, SHA-2, X25519, ECDSA and RSA-PSS verification — so the
crypto is solved and the handshake is the work.
Added WT-35 to WT-38 for what the inspection turned up: no userspace ephemeral UDP
socket creation, datagram truncation reporting unspecified, freestanding build
constraints, and the real network-stack layout. WT-12 narrowed to "pin or trust set",
since XAIOS already pins an operator-set RSA key for xapt.
Implementation Status now describes XAIOS from its source instead of describing a
hypothetical freestanding target.
645d376
Note the lower-level additions in 1.3.6 and correct the note's wording
The public API table describes the high-level product, so 1.3.6's additions to the
published lower-level libraries are now recorded explicitly:
QUICTransportParameters.validated(), and truncation reporting on the UDP receive
path. Both matter to an embedder reading the surface list rather than the changelog.
6fe3d9e
Publish 1.3.6 across the wiki
[WebTransport Swift 1.3.6](https://github.com/Pummelchen/WebTransport/releases/tag/1.3.6) was
published from commit 1643ed4 on 12 September 2026 with CI green on all three jobs and
artifacts verified by downloading them and checking their published sums.
Updated:
- Home and the sidebar point at the new release; Getting Started pins `exact: "1.3.6"`.
- Release and Interoperability makes 1.3.6 current with its artifact sums, moves 1.3.5
into Previous releases, and adds a "What 1.3.6 changed" section.
- Implementation Status gains the 1.3.6 evidence line. It says plainly that 1.3.6 is a
defect-fix release whose evidence is unit, conformance, sanitizer and reproducibility
coverage rather than a new interoperability run, so the 1.3.5 remote matrix remains the
standing interop claim for behaviour 1.3.6 does not change.
- Known Limitations updates the release list and notes the same.
- The project tracker states the current release at the top.
The wiki Changelog needed repair rather than just an addition. It carried two
`**Unreleased**` blocks, from the same mistake that produced two `[1.3.5]` headings in
the repository changelog: the PKCS#12 identity work had been filed under a release that
predated it. Both blocks are now one 1.3.6 entry, 1.3.5 keeps its own "verification
only" text, and no Unreleased block remains.
393fc47
Retract the OpenSSL C++ claim and reframe what actually blocks Phase 2
An earlier version of WT-3 stated that OpenSSL cannot be used on a target with no C++
support, and treated that as the plan's blocking assumption. That was wrong. OpenSSL is
a C library, and its own INSTALL.md lists the build requirements as make, Perl 5 with
core modules, Text::Template and "an ANSI C compiler". C++ appears only for the optional
`enable-buildtest-c++` check that the public headers are usable from C++.
The row is retracted and rewritten as what it actually is: an availability and
maintenance question rather than a language blocker. Either OpenSSL or another C-only
X.509 provider is available (or cross-compiled and vendored), in which case Phase 3
integrates it, or the crypto stack must be written in C99, in which case X.509 path
validation is the dominant risk. The build host needs Perl and make; the target needs
only the compiled library.
WT-6 and WT-12 are reworded to match, and Implementation Status no longer asserts a
blocker that does not exist. WT-12 now names the trust model explicitly, including the
option of pinning or an explicit trust set, with the caveat that this is only acceptable
if the deployment genuinely has no need for public CA chains.
Recording this as a correction rather than a silent edit: the tracker is only worth
having if a wrong entry is visibly retracted.
0707627
Close the numbering gaps and flatten the open-work table
The three open-work subsections each sorted independently, so the global order read
WT-12 before WT-4, which is misleading. They are now one table in numeric order, with
the areas distinguishing Swift from the C99 port.
WT-7 and WT-8 were answered and had been deleted, leaving gaps. An answered question
is information worth keeping, so both are now Resolved rows carrying the answers, and
the numbering runs 1..34 with no holes.
a97c85b
Record the C99 target answers and the OpenSSL blocker
The operator confirmed two things that shrink the C99 port materially:
- The target has a full C99 libc, so allocations and the plan's configurable-allocator
design stand as written. WT-7 is answered.
- The target has a full, tested, Unix-compatible network stack, so the UDP runtime
can use a POSIX socket backend rather than a bespoke NIC API. WT-8 is answered.
Both are recorded, and the resolved block was renumbered so no reference collides.
New findings from probing the boundary:
- WT-13: the real dependency surface is ISO C99 **plus POSIX.1-2008**, not ISO C99
alone. Sockets, poll, clock_gettime and close are POSIX; only the C library core is
C99. Verified by compiling a probe that binds a UDP socket, creates an IPv6 socket
and reads CLOCK_MONOTONIC under `-std=c99 -pedantic -Werror`.
- WT-14: feature-test-macro discipline is a genuine hazard. Defining
`_POSIX_C_SOURCE=200809L` on this host *removed* `INADDR_LOOPBACK`, so identical
source compiles bare and fails with the macro set. The port needs one documented
policy fixed up front.
- WT-15: the datagram receive surface must be specified rather than assumed. It needs
truncation reporting, which on this host only `recvmsg` provides — `recvfrom`
silently truncates. That is already the behaviour the Swift fix relies on.
Raised WT-3 to P1 and rewrote it: the plan's OpenSSL 3.x dependency cannot be used on
a target with no C++ support, and it is the single blocking assumption in the plan.
WT-6 grew to match, since the primitives OpenSSL was going to supply now have to be
written in C99, and added WT-12 as the decision that follows from it: how X.509 chain
validation is provided.
Implementation Status no longer describes the target as freestanding; it records the
confirmed libc and network stack, the corrected dependency surface, and the OpenSSL
problem.
6b689d5
Give every tracker item a stable number and log the C99 port analysis
The tracker used an em dash for every item that had no GitHub issue, so nothing
without an issue could be referred to from a commit or a review. Every row now has
a reference that never changes: `#N` where a GitHub issue exists, `WT-N` otherwise.
The numbering scheme is documented in the page's own "How to use this page" section,
together with the rule that unknown problems get a row and a number too — a
suspicion recorded is cheap, and a suspicion forgotten is re-discovered later at
full cost.
This page is restated as the single project tracker for the repository.
Adds the C99 port analysis as WT-3 to WT-11. The operator has said the target is an
assembly-only OS with no C++ support of any kind, which is a stronger constraint
than the repository assumed, so the findings are recorded with their evidence:
- WT-3: the plan specifies OpenSSL 3.x and four desktop platforms, none of which can
exist on that target. The plan needs amending before Phase 0.
- WT-4: the QUIC transport is Network.framework, roughly 3,340 lines across two
files. It is new code from the RFCs, not a port.
- WT-5: nine source files depend on Security.framework or CryptoKit.
- WT-6 (P0): TLS 1.3 with real X.509 validation is the largest security risk. The
Swift equivalent delegates the trust decision to Apple, and `TLSQUICConnectionState`
does not authenticate the handshake by its own documentation, so there is no vetted
reference to copy.
- WT-7 and WT-8 are open questions for the operator: whether any libc exists, and
what the OS's datagram and entropy interfaces are.
- WT-9: the test suite that provides the correctness evidence cannot run on a
freestanding target, so the stack needs a host-side reference build.
- WT-10: size estimate, marked as partly inferred rather than measured.
- WT-11: C99 and CPP are independent trees, verified by `diff -rq`.
Implementation Status no longer says there is no plan to start the port.
541f737
Move the Retry Integrity Tag to Open work
It was recorded under Resolved by mistake. Verifying the tag needs the original
Destination Connection ID as associated data, which the packet type does not carry,
so it is an API decision rather than a fix that was applied.
b1cdff1
Record the admission-precedence fix
An explicit maxConcurrentConnections now overrides a supplied policy instead of being
dropped silently, and an out-of-range value is refused.
1818138
Record the header-validation and datagram-truncation fixes
The long-header decoder now enforces the Fixed Bit and reserved bits, Retry rejects a
zero-length token and the same two header checks, and an oversized datagram is
reported rather than silently truncated.
The Retry Integrity Tag is recorded as a new open item rather than fixed, because
verifying it needs the original Destination Connection ID as associated data, which
the packet type does not currently carry — that is an API decision, not a small
change.
49505c5
Record the third-round corrections
Two of these were defects in the fixes themselves rather than in the original
code, which is the point worth keeping: reviewing a change is not optional, and a
fix that is not exercised by a failing test can be wrong in a way that looks
right. The misplaced cancellation check and the failing format gate are both
recorded rather than quietly amended.
a0f5a1b
Record the connection-ID watermark and transport-parameter validation as resolved
Two more audit findings are fixed: the connection-ID store now honours the
retire_prior_to high-water mark, and transport parameter values are validated
against RFC 9000 section 18.2 through an opt-in entry point that does not tighten
the TLS-extension parser.
59d653c
Move the CRYPTO reassembly ceiling to resolved
It is fixed: the reassembler counts bytes pending above a consumed watermark
instead of every byte ever carried. The apparent instability that held it back
last round was stale incremental build state, not the change — after a clean
rebuild the same tree passes repeatedly, which is recorded here so the next person
does not repeat the investigation.
a94d39a
Record the re-audit follow-up on the accept-waiter fix
The first version of that fix dropped the abandoned continuation rather than
resuming it, which the Swift runtime reports as a leaked continuation on every
timed-out accept. Adversarial review of the fix caught it; it is recorded here
rather than quietly amended, because the lesson is about reviewing fixes and not
only original code.
52ccd3d
Record the audit round: six resolved, six open
The tracker now lists what this audit fixed and what it left. Two entries are
worth calling out because they are deliberately not fixed:
- The CRYPTO reassembly ceiling counts consumed bytes, making it a lifetime cap.
A fix was written and measured but is held back: the surrounding change could
not be shown stable here, because repeated full-suite runs died with an
intermittent SIGBUS in the test helper that unrelated trees also produced. It
needs a quiet machine to land and soak on.
- Transport-parameter validation against RFC 9000 section 18.2 is missing
entirely, which is not reachable from the shipped Network.framework path but is
a gap in a public codec.
Also records that the client descriptor-leak symptom was not reproducible, so the
cleanup is recorded as a correctness fix rather than a confirmed leak fix.
ac13797
Close the Thread Sanitizer tracker item: the invocation was wrong
There was nothing to fix. CI and Development-and-Testing already run TSan with
--skip CLIProcess --skip ReleaseArtifacts, because those suites orchestrate
subprocesses against wall-clock timeouts that TSan's slowdown exceeds and report
as timeouts rather than races. That invocation passes 262 tests in about 26
seconds. Running swift test --sanitize=thread without the skips produces the
observed timeouts on any machine.
Recorded as resolved rather than left open, so the next person to see those
timeouts finds the cause instead of re-investigating it.
1570f28
Correct the private-key encoding guidance and record #21 and #22
The Getting Started guidance on `.certificateChain` stated the wrong byte
counts and the wrong encoding name. Measured against
`SecKeyCopyExternalRepresentation` on macOS 26 with Swift 6.3.3, an EC private
key is the raw form 0x04 || X || Y || scalar, which is larger than the public
point: 97 bytes for P-256, 145 for P-384, 199 for P-521. The page said 65 for
P-256 (that is the public point, which the API rejects) and gave 103 and 141 for
the other two, which are not produced by anything. RSA-2048 PKCS#1 varies
between 1,190 and 1,193 bytes across keys, so it is now described as roughly
1.2 KB rather than a figure that would be wrong for most inputs.
Also stops calling the accepted form SEC1. SEC1 ECPrivateKey is DER beginning
0x30 and is one of the encodings that is rejected; Apple's form begins 0x04.
The server-identity section now carries the worked example so the changelog can
point at it: generate a key, export it with SecKeyCopyExternalRepresentation,
and pass those bytes. Adds a table of accepted lengths with the public export
alongside for contrast.
Tracker updated: #21 resolved, #22 closed as not planned with the reasoning, the
forced-cast and error-redaction items closed.
bb65b3c
Point the tracker at the follow-up issues
#20 is closed and its two follow-ups are filed as #21 (document the
certificateChain private-key encoding and the explicit-curve constraint) and
#22 (reject explicit-parameter bundles before the import, or record why not).
Replaces the placeholders.
105da3c
Record the PKCS#12 exception boundary and add a project tracker
Adds Project-Tracker, the page the repository was missing: what is being worked
on, what has been fixed, and what is known but unscheduled. It resolves the
open question of where a task list lives, and records the work found while
fixing issue #20 rather than leaving it in a commit message nobody will read.
Updates, all consequences of the same change:
- Known Limitations gains the actual constraint: macOS cannot build a TLS
identity from a certificate whose SubjectPublicKeyInfo carries explicit
elliptic-curve parameters, and the system /usr/bin/openssl is LibreSSL 3.3.6,
which emits exactly that. Also records that certificateChain requires Apple's
private-key encoding, which is undocumented.
- Repository Guide covers the new WebTransportSecurityShim target, the test
fixtures directory, and where to start a change that touches a
Security.framework call which can raise.
- Implementation Status raises the test count to 276 and explains why the
repository now contains one non-Swift target.
- Home and the sidebar link the tracker; Changelog gains the unreleased entry.
2598bf0