Skip to content

History / Implementation Status

Revisions

  • C99: Phase 4 eighteenth part (a closed connection ignores frames), tracker and status

    @Pummelchen Pummelchen committed Sep 12, 2026
  • C99: Phase 4 seventeenth part (acting on the peer's limits), tracker and status

    @Pummelchen Pummelchen committed Sep 12, 2026
  • C99: Phase 4 sixteenth part (the granted stream counts), tracker and status

    @Pummelchen Pummelchen committed Sep 12, 2026
  • C99: Phase 4 fifteenth part (the granted connection limit), tracker and status

    @Pummelchen Pummelchen committed Sep 12, 2026
  • C99: Phase 4 fourteenth part (the STREAM send path), tracker and status

    @Pummelchen Pummelchen committed Sep 12, 2026
  • C99: Phase 4 thirteenth part (the key lifecycle), tracker and status

    @Pummelchen Pummelchen committed Sep 12, 2026
  • C99: Phase 4 twelfth part (QUIC DATAGRAM over the connection), tracker and status

    @Pummelchen Pummelchen committed Sep 12, 2026
  • C99: Phase 4 eleventh part (the peer's limits), tracker and status

    @Pummelchen Pummelchen committed Sep 12, 2026
  • C99: Phase 4 tenth part (the TLS handshake over CRYPTO); WT-75, WT-76, WT-77 - Project Tracker: Phase 4 row to 2c1a217, the completion criterion met end to end, and three defects found by running a real handshake (WT-75, WT-76, WT-77). - Implementation Status: 37 test files and 75,368 checks.

    @Pummelchen Pummelchen committed Sep 12, 2026
  • C99: Phase 4 ninth part (the CRYPTO stream), tracker and status - Project Tracker: Phase 4 row to 5c38da3 with the CRYPTO stream. - Implementation Status: 36 test files and 75,260 checks, and the Phase 4 prose.

    @Pummelchen Pummelchen committed Sep 12, 2026
  • C99: Phase 4 eighth part (the connection runtime), WT-72 closed, WT-74 fixed - Project Tracker: Phase 4 row to 7bab142 with the connection runtime and the packet-level IPv4/IPv6 loopback result; WT-72 (padding) closed; WT-74 records that a connection with no round trip sample armed no probe timeout and is fixed. - Implementation Status: 35 test files and 75,163 checks, and the Phase 4 prose.

    @Pummelchen Pummelchen committed Sep 12, 2026
  • C99: fix a sentence in the Phase 4 status prose

    @Pummelchen Pummelchen committed Sep 12, 2026
  • C99: Phase 4 seventh part (the UDP socket layer), WT-13/14/36 realised, tracker and status - Project Tracker: Phase 4 row to d3eaacd with the socket layer; WT-13 and WT-14 (the POSIX surface and the feature-test policy) are now realised by the real source rather than a probe; WT-36 (truncation) is implemented. - Implementation Status: 34 test files and 74,872 checks, and the Phase 4 prose.

    @Pummelchen Pummelchen committed Sep 12, 2026
  • C99: WT-73, a failed AEAD tag is WT_ERR_AUTHENTICATION (fixed at 261c4e2)

    @Pummelchen Pummelchen committed Sep 12, 2026
  • C99: Phase 4 sixth part (the packet build/read seam), tracker row and WT-72 - Project Tracker: the Phase 4 row now names the wire seam and the latest commit 199cd2c; WT-72 records that the header protection sample sets a minimum packet size, so the runtime must pad a tiny packet with a short packet number. - Implementation Status: 33 test files and 74,692 checks, the Phase 4 prose and the open-items range WT-3 to WT-72.

    @Pummelchen Pummelchen committed Sep 12, 2026
  • Record C99 Phase 4's fifth part: QUIC DATAGRAM and the close paths RFC 9221's datagrams with their two-sided size rule and a bounded receive queue whose discard policy is the newest, and RFC 9000 sections 10.2 and 19.19's two CONNECTION_CLOSE forms with the draining period. 32 test files, 74,544 checks. Two things worth carrying forward. The two close forms are different messages -- the transport form names the frame that caused the error and the application form cannot -- and the frame structure carries a flag for that field rather than using zero, because PADDING is frame type zero and "no frame" is not the same value. And the queue's discard policy is stated rather than implied: the newest goes, because the application has already been told about everything in the queue and the freshest message is the one that matters least for the traffic this carries.

    @Pummelchen Pummelchen committed Sep 12, 2026
  • Record C99 Phase 4's fourth part: the stream state machines and flow control RFC 9000 sections 2, 3 and 4: both halves' state machines, the final size as the boundary that stops a peer appending to a stream it has ended, RESET_STREAM and STOP_SENDING, and flow control at both levels. 30 test files, 74,388 checks. Two things worth carrying forward. Flow control counts offsets rather than delivered bytes -- a peer that writes ten bytes at offset one million spends a million bytes of credit -- which is the RFC's model and the opposite of what my first draft's documentation said, with the test catching the contradiction. And a reset receive half had no way to become *read*, so a stream whose reset had arrived could never be forgotten; RFC 9000 section 3.2 puts a state between the two for exactly that reason, and the API now has it.

    @Pummelchen Pummelchen committed Sep 12, 2026
  • Record C99 Phase 4's third part: congestion control RFC 9002 section 7's NewReno, with the recovery epoch as the idea the tests are mostly about: a burst of losses has to cost one halving rather than one per packet, and an acknowledgement from before the period must not grow the window during the recovery it is recovering from. 29 test files, 74,279 checks. The finding worth carrying forward is about the increment: it is mds * acked / cwnd with integer division, so a small acknowledgement adds nothing at all and a large one adds a fraction of a datagram -- the "one datagram per round trip" is only true in aggregate over a window's worth of acknowledgements, which is what the comments now say.

    @Pummelchen Pummelchen committed Sep 12, 2026
  • Record C99 Phase 4's second part: loss detection and probe timeouts RFC 9002 section 6, with both thresholds pinned at their boundaries and the probe timeout's two easy mistakes checked: it exists only while something ack-eliciting is in flight, and its backoff is reset by acknowledging an ack-eliciting packet rather than by any acknowledgement. 28 test files, 74,191 checks. The finding worth carrying forward was in the tests rather than the code: both thresholds are inclusive comparisons, so an off-by-one in either direction is a test that passes for the wrong reason -- which is why the boundary cases (three numbers higher and two, the threshold instant and one microsecond inside it) are the ones written out.

    @Pummelchen Pummelchen committed Sep 12, 2026
  • Record C99 Phase 4's first part: the packet number space The received set as a bounded range list, ACK construction, the acknowledgement debt and RFC 9002 section 5's RTT estimator, with 176 checks that include order-independence for the ranges and hand-computed values for the arithmetic. 27 test files, 74,022 checks. Two defects came out of that test and both were in the merging logic: a packet bridging a gap left two ranges where the set has one, which would put a gap in an ACK frame that does not exist; and the bound dropped the newest range instead of the oldest, because the list is kept largest-first. The phase row now says what is done and what the runtime still owes.

    @Pummelchen Pummelchen committed Sep 12, 2026
  • Say in the status page that Phase 3 is complete and Phase 4 is next The same record the tracker carries, in the page a reader looks at first: the server handshake's evidence, the phase's completion, and what Phase 4 inherits -- a handshake to drive and the CRYPTO-stream walker it needs. 26 test files, 73,846 checks.

    @Pummelchen Pummelchen committed Sep 12, 2026
  • Record C99 Phase 3's sixth part: the client handshake The sequencing that consumes everything the earlier parts built, with the application secrets available in no state before every security condition has been met. 25 test files, 73,756 checks. Driven end to end by RFC 8448's recorded flight, so the handshake secrets, the application secrets and the client's Finished are the RFC's own. What is worth carrying forward is the shape of the three defects that test found: all three were one message out of step in the transcript. The Early Secret was never derived, the handshake traffic secrets were read before the ServerHello was absorbed, and the client's Finished was over a transcript that did not yet include the server's Finished. Each produces secrets that are well formed and verify against nothing, and none of them is visible without a recorded flight to compare against -- which is the argument for keeping the RFC's trace in the suite rather than only fixtures this project writes itself.

    @Pummelchen Pummelchen committed Sep 12, 2026
  • Record C99 Phase 3's fifth part: peer authentication Chain validation through OpenSSL and the CertificateVerify signature check, behind a prompt-free policy that mirrors the Swift library's four modes -- including the development bypass whose loopback restriction travels with the mode rather than sitting beside it as advice. 24 test files, 73,677 checks. The evidence worth carrying forward is that the strongest test uses one document end to end: the transcript through RFC 8448's Certificate, the content a CertificateVerify signs built from that hash, the public key extracted from the RFC's own certificate DER, and the RFC's signature verified with it -- so the expected answer is a document rather than this code. Two defects were found by running it: a failure path freed a certificate stack the caller also freed, and the public key was written into the caller's buffer before its length was checked.

    @Pummelchen Pummelchen committed Sep 12, 2026
  • Record C99 Phase 3's fourth part: the certificate messages Certificate, CertificateVerify and Finished as framing: a chain of DER views, a scheme with a signature, and a body of exactly Hash.length bytes. Nothing is validated at that layer, which is what lets the codec be pinned to RFC 8448's own certificate message byte for byte. 23 test files, 73,601 checks. One semantics change came out of it and is worth carrying forward: a read past the end of a region whose length has already been validated is now a protocol error rather than truncation. Every parser here is handed a complete message, so an inner length that overruns is a length that lies, and that difference decides whether a receiver abandons the connection or waits for more of it.

    @Pummelchen Pummelchen committed Sep 12, 2026
  • Record C99 Phase 3's third part: the X25519 key agreement RFC 7748's primitive, key generation, the public key from a private key and the shared secret, with an all-zero secret refused where it is computed. 23 test files, 73,569 checks. Two things are worth carrying forward. The extractor implements the ladder from the same document as an oracle and requires it to reproduce every published value before writing one, which matters because section 6.1's Curve25519 labels are word for word the X448 labels directly below them. And the test ties two documents together: X25519(client private, server public) must equal the ECDHE value RFC 8448's key schedule consumes, so the key agreement and the schedule cannot disagree without a test saying so -- a property neither document checks on its own.

    @Pummelchen Pummelchen committed Sep 12, 2026
  • Record C99 Phase 3's second part: the handshake messages and extensions The four-byte framing, the extension list codec, the typed extensions a QUIC handshake uses, and the ClientHello and ServerHello in both directions -- parsed into views, re-encoded byte for byte from RFC 8448's own messages (unknown extensions included), and built from parameters. 22 test files and 73,519 checks. The shape worth carrying forward is the asymmetry between the two directions: a peer's message is parsed into views because it is read once and used, while what we send is built from parameters because those are values we chose. Both run the same body function through the two-pass writer, so a length field cannot disagree with what follows it, and the builders refuse rather than emit a message whose length lies. The rest of Phase 3 -- the key share, certificate validation, the trust policy and the two state machines -- is what the phase row still owes.

    @Pummelchen Pummelchen committed Sep 12, 2026
  • 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.

    @Pummelchen Pummelchen committed Sep 12, 2026
  • 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).

    @Pummelchen Pummelchen committed Sep 12, 2026
  • 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.

    @Pummelchen Pummelchen committed Sep 12, 2026
  • 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.

    @Pummelchen Pummelchen committed Sep 12, 2026