rtci 0.5.0
Released 2026-11-30.
From CHANGELOG.md of rtci at its release tag.
The first release of the 0.5 line: train 38 of the clause-by-clause conformance work, which closes the last open MUST and SHOULD rows of the audit, and then re-reads every row marked "not applicable" and every narrow "tested" row against today's code: six fix branches made those rows true, several with real defects fixed. No public API was removed (AgentConfig::insecure_skip_verify is deprecated, not removed); two additions break exhaustive code: RTCCertificate gains a public origin field (a struct literal needs it), and RTCLocalCandidatesNeededReason gains RolledBack before DiscardedBySetting (a numeric cast of that variant changes). The version is a new 0.x minor line because fifty-two defaults change, each listed under "Behaviour changes" with the setting that gives the 0.4 form where there is one: keys left in dead stack frames by the record paths are overwritten (on by default, rtci_crypto::set_record_stack_erasure), ICE and TURN passwords are erased, the TURN client refuses unsigned success responses and redirections it cannot follow, STUN and TURN requests answered with a 5xx error are resent, rtci-dtls refuses out-of-order and malformed DTLS 1.2 handshake messages and reads the old association's records while a new one forms, mDNS queries carry one question each, stronger FEC waits for the source rate to be reduced, audio that negotiated RED uses it on reported loss, data channels share the media's congestion estimate, engine gathering starts at the first local description (with_gathering_before_local_description for the old order), TURN allocates from every interface and keeps a 3 s grace, a rolled-back restart releases what it allocated, DTLS 1.2 prefers AEAD suites and refuses MD5 / SHA-1 chains, STUN is DSCP-marked, RTX order follows the last answer, freed candidate pairs are announced and removed, audio on a disabled track is dropped, and more; the StrictRfc profile's deterministic ECDSA needs the ecdsa-rfc6979 feature, and the TLS 1.3 rows are checked against RFC 9846, which obsoletes RFC 8446. Security: an ICE restart into the "relay" policy no longer keeps using a host or server-reflexive pair, and a FORWARD TSN that repeats one stream costs one pass over its queue; the forged-ChangeCipherSpec fix of 0.4.1 is in this line too. New: the PR-SCTP priority policy and a bounded send buffer, DATA bundled with the COOKIE ECHO and a deferred FORWARD TSN (options), RFC 8627 FlexFEC with retransmission behind DefaultInterceptorOptions::video_flexfec, a stretching congestion-feedback interval, RPSI in rtci-video. Testing: Wycheproof vectors for every provider and a vector registry, fuzz seed corpora and round-trip oracles, a mutation-testing gate, SCTP peer-misbehaviour and DTLS handshake-order tables, key residue measured on Windows and on the providers' portable paths. Audit: 0 MUST rows open (0.4.0: 3) and 0 SHOULD rows open (0.4.0: 17), none violated.
Security
- rtci-dtls: a client that sent DTLS 1.3 0-RTT data with its ClientHello now ends the association with protocol_version when the server answers with a DTLS 1.2 ServerHello (RFC 8446 appendix D.2, a MUST); before, it went on in DTLS 1.2 with its 0-RTT data unaccounted for.
- A TURN user name that identifies the user can be kept out of the clear (
conf/truth-1-ice-turn, RFC 8656 section 21.1.6). NewSettingEngineBuilder::with_turn_username_identifies_user(true): the engine then sends the name to aturn:server over UDP or TCP only as USERHASH, and a server that does not offer USERHASH gets no request with the credential. Underneath, newrtci_turn::client::ClientConfig::username_anonymity_requiredandrtci_stun::long_term::LongTermCredentials::with_username_anonymity_required. Off by default (the application knows whether its names identify anyone). - An alternate TURN server's certificate is checked against the ALTERNATE-DOMAIN (
conf/truth-1-ice-turn, RFC 8489 section 10). When an authenticated 300 (Try Alternate) redirected aturns:link, the engine verified the alternate server's TLS or DTLS certificate against the original URI's host even when the response named the ALTERNATE-DOMAIN it must be checked against: a redirect to a server with another certificate failed, and the identity the server vouched for was never the one checked. The link now checks the ALTERNATE-DOMAIN of an authenticated redirect, and the previous request's name when there is none. - One forged datagram no longer ends an established DTLS 1.2 association: a ChangeCipherSpec of a protected epoch is authenticated like any other record (
conf/sec-9-ccs-after-handshake; RFC 6347 sections 4.1.2.1 and 4.1.2.7, RFC 5246 section 7.1, RFC 9146 sections 3 and 6; the same class as upstream webrtc-rs GHSA-wgcr-c3r4-mr53; audit rows RFC6347-4.1.2.1-3, -4.1.2.1-5, -4.1.2.7-1, -4.1.2.7-3, RFC9146-3-6, -6-1, -6-2). rtci 0.4.0 and earlier are affected; 0.4.1 carries the same fix. The four DTLS 1.2 record ciphers (AES-GCM, AES-CCM and CCM-8, ChaCha20-Poly1305, AES-CBC; the ECDHE and the PSK suites) handed a record of content type ChangeCipherSpec back unopened, and the connection-id check let one without the connection id through. So anyone who can send a UDP datagram with the peer's source address, without any key, could end an established association, in either role: a 14-byte ChangeCipherSpec record at the current epoch with any body but01(for example14 fe fd 00 01 00 00 00 00 00 64 00 01 02) was taken as an authenticated record that did not decode, answered with a fatal decode_error alert, and the association failed. With the body01it was ignored but still counted as the newest authenticated record, and with the largest sequence number that stopped an association with connection ids andwith_connection_id_migration(true)from ever following its peer to a new address. The same forged record held back during a handshake failed it once the keys existed. Now every record of a protected epoch is opened and authenticated, whatever its content type, and one that fails is discarded without an alert, without moving the replay window or the newest authenticated record; a protected record without the negotiated connection id is discarded whatever its type. The handshake's ChangeCipherSpec is an epoch-0 record and is handled as before (a malformed one was, and is, discarded silently). DTLS 1.3 was not affected. No API change. Tests:rtci-dtls/src/conn/forged_change_cipher_spec_test.rs,crypto_record_test.rs::every_content_type_is_authenticated_by_every_record_cipher. - A FORWARD TSN that names one stream many times costs one pass over that stream's queue (
conf/sec-9-ccs-after-handshake; RFC 3758 sections 3.5 and 3.6, RFC 8260 section 2.3.1; the hardening upstream webrtc-rs made under GHSA-j6m5-333x-jhm5; audit rows RFC3758-3.6-7, RFC8260-2.3.1-5). rtci 0.4.0 and earlier are affected. A connected SCTP peer (one that completed the association, so a data channel peer) could list the same stream thousands of times in one FORWARD TSN or I-FORWARD-TSN chunk, and each entry cost a pass over the whole ordered reassembly queue of the stream, which the peer can fill with incomplete messages first: CPU time of entries times queue length per chunk. Now the entries are reduced first to the largest sequence number for each stream (for each stream and U flag of an I-FORWARD-TSN), in serial-number order, and each stream is visited once. A well-formed chunk lists each stream once and is handled as before. No API change. Tests:rtci-sctp/src/association/forward_tsn_duplicate_entries_test.rs. - An ICE restart into the "relay" policy no longer keeps using a host or server-reflexive pair (
conf/ice-38-restart-drops-filtered-pair; W3C webrtc-pcRTCIceTransportPolicy"relay": "The ICE Agent uses only media relay candidates", "set the configuration": "If a script wants this to happen immediately, it should do an ICE restart"; audit rows WEBRTC-4.2.3-1, WEBRTC-4.4.1.5-10, RFC8445-9-3, RFC8828-5.2-P1; spec-issues row 35). Afterset_configurationwithRTCIceTransportPolicy::Relay(orAgent::set_candidate_types) and an ICE restart,Agent::apply_restartkept the previous generation's selected pair as the data path (RFC 8445 section 9) with its consent checks, whatever its type, and kept the local host candidates, which the new generation paired and selected again: data went on between the local host address and the peer, which the policy exists to hide (and WPTRTCConfiguration-iceTransportPolicy.htmlnever saw its "failed" state). Now a restart keeps the path in use only when its local candidate (a learned one's base) is of a type the current filter allows, and drops the kept local candidates of other types; meanwhile nothing is sent on that path, data on it is not taken, and the transport is "checking" until the new generation selects a (relayed) pair. Behaviour change (ICE on the wire): only after a restart under candidate types that rule out the pair in use; a restart that keeps an allowed pair, and a policy change without a restart (W3C: "no action will be taken until the next gathering phase"), behave as before. No API change. Tests:rtci-ice/src/agent/agent_relay_policy_restart_test.rs,tests/ice_restart_into_relay_policy_rtc2rtc.rs.
Behaviour changes
- An IPv4-only lite agent keeps local preference 65535 (
conf/truth-1-ice-turn, RFC 8445 section 5.2: "If a host is IPv4 only, the local preference value SHOULD be set to 65535"). Whether a lite agent is dual stack was taken from its configured network types, which by default allow IPv6, so every lite agent used the RFC 6724 precedence form. It is now judged from the candidates the agent holds when a candidate is ranked. A signalled priority does not change: when an IPv6 candidate comes after IPv4 ones, the IPv4 candidates keep their priorities and the new candidate (and those after it) take the precedence form; priorities stay unique. - Relayed data waits for its TURN channel (
conf/truth-1-ice-turn, RFC 8656 section 3.7: "the application MUST assume a Path MTU (PMTU) of 1280 bytes"). Once ICE selects a pair through the engine's allocation, data (DTLS, SRTP) to the peer is held until the channel is bound and goes as ChannelData; a 1200-byte DTLS record as an IPv6 Send indication would make a 1304-byte IP packet. A refused channel sends it as Send indications. New:rtci_turn::client::Relay::channel_ready,Relay::bind_channel. - NAT64: STUN and TURN servers given by IPv4 address are reached from an IPv6-only host (
conf/truth-1-ice-turn, RFC 8445 section 5.1.1.2, RFC 8305 section 7.1). When every host candidate is IPv6 and a configured server is an IPv4 literal, the engine asks the driver's resolver for the AAAA records ofipv4only.arpa(RFC 7050; given up after 2 s, gathering waiting meanwhile), and reaches the server at the IPv6 addresses synthesized with each prefix found (RFC 6052), put before the IPv4 one. The server-reflexive candidate so gathered is IPv4 with the IPv6 base; a TURN allocation gives its IPv4 relayed address. A host with an IPv4 address asks nothing. Not done: IPv4 remote candidates are not reached through NAT64 (ICE pairs one family). New inrtci-shared:stream::nat64(discover_prefixes,Nat64Prefix,synthesize_all,IPV4ONLY_ARPA). - Server addresses are tried in the order their history earns (
conf/truth-1-ice-turn, RFC 8305 section 4). The engine now remembers, per local address, how long each STUN or TURN server address took to answer and whether its last attempt failed. Within each family an address that failed last time goes last and the faster-answering one goes first (a used address before an unused one); the families still alternate. The history covers STUN Binding probes (UDP and TCP) and TURN over UDP and DTLS; TURN over TCP and TLS keeps the resolver's order, because the operating system picks that connection's interface. History is never read across interfaces, and a host candidate on an interface not seen before flushes it (a change of network). New inrtci-shared:AddressHistory,AddressRank,sort_addresses_ranked,HappyEyeballs::answer_ranked,HappyEyeballs::started_at. - A host without IPv6 also asks its TURN server for an IPv6 relayed address (
conf/truth-1-ice-turn, RFC 6544 section 5: "If the local network or host does not support IPv6 addressing, then clients SHOULD make use of other techniques, e.g., TURN-IPv6 ... for obtaining IPv6 candidates"). When every host candidate the application gave for a transport is IPv4, the engine's Allocates over UDP, DTLS, TCP and TLS (UDP relaying) carry ADDITIONAL-ADDRESS-FAMILY (RFC 8656 section 7.1); a server that gives both addresses yields two relayed candidates, and the engine routes the IPv6 one's checks and data through the same allocation and its replies back onto it. A server without IPv6 relaying gives the IPv4 address alone (ADDRESS-ERROR-CODE), as before. Allocations for relayed TCP candidates (RFC 6062) are unchanged. - A lost TURN allocation that carries the session is replaced (
conf/truth-1-ice-turn, RFC 8656 section 12.3). An allocation the server deleted (a 400 to a ChannelBind, a failed Refresh) left its link failed; now, when its relayed candidate is the selected pair's, the link allocates again and ICE restarts, as for a lost TURN connection (RFC 6544 section 11.2). Tested end to end: two peers relayed through the engine's UDP allocation, the server answering the first ChannelBind with 400 (turn_udp.rs:: a_400_to_a_channel_bind_deletes_the_allocation_and_the_session_starts_afresh: the deleting Refresh, a new signed Allocate, a restart offer with a new ufrag, a channel on the new allocation, data through it). - Gathering transactions are paced together and their RTO follows RFC 8445 section 14.3 (
conf/truth-1-ice-turn, RFC 8445 sections 5.1.1.2 and 14.3). A TURN server's first Allocate now waits for the same Ta (50 ms) as the server-reflexive Binding requests; the initial RTO of the engine's gathering transactions is MAX(500 ms, 50 ms x the server-reflexive and relayed candidates under way). Aturn:server over UDP that answers 486 or 508 is asked for a server-reflexive candidate with a Binding request instead. - TURN over UDP and DTLS allocates from every UDP host base (
conf/truth-1-ice-turn, RFC 8828 section 5.2, Mode 1: "use all network interfaces to attempt communication with ... TURN servers"). With host candidates on several interfaces, eachturn:(UDP) andturns:...?transport=udpserver gets an allocation from each base of its family, and a relayed candidate per base; before, only from the first base. The links after the first start once the first has its allocation. - Unselected TCP connections and TURN allocations are let go three seconds after ICE selects a pair (
conf/truth-1-ice-turn, RFC 8445 section 8.3.1: "the agent SHOULD wait an additional three seconds"). They were closed as soon as a pair was selected (RFC 6544 section 8, RFC 6544 section 11.2); a pair selected anew starts the wait over. - TURN channels wait until ICE selects the relayed pair (
conf/truth-1-ice-turn, RFC 8445 section 7.2.1: "it is RECOMMENDED that the agent defer creation of a TURN channel until ICE completes"). The engine's TURN client bound a channel to a peer at the first datagram sent to it, so every connectivity check through a relay bound one. Checks (and anything else relayed before a pair is selected) now go as Send indications; once the pair from the relayed candidate to a peer is selected, the channel to that peer is bound (section 12.1). New:rtci_turn::client::Relay::send_indication_tosends without binding a channel. - A TURN server that refused an allocation for good is not asked again at the next ICE restart (
conf/truth-1-ice-turn, RFC 8656 sections 7.3 and 7.4, RFC 8489 section 9.2.5). The "do not retry" state lived in the TURN client, which the engine drops; every ICE restart made a new client and allocated again. The engine now remembers the server: after a 401 to the credentials (or 441) until the configuration gives it another user name or password; after a 400, 403, 440, 442, or an allocation of a family that was not asked for, until the application callsset_configurationagain. 486 / 508 / 437 keep their timed hold-backs.rtci_turn::client::Client::answered_another_familytells a caller that replaces a client about the family mismatch. - STUN carries the data packets' DSCP marking (
conf/truth-1-ice-turn, RFC 8445 sections 7.2.3 and 7.3, RFC 7675 section 6). Connectivity checks, their responses, consent checks and the engine's requests to STUN / TURN servers went with Default Forwarding (DSCP 0) while media and data were marked.RTCPeerConnection::dscpnow gives every STUN datagram the codepoint of the highest-priority flow whose marking the network does not block (audio first among equals; DF while nothing is marked), as libwebrtc does where it marks (StunDscpValue()).with_dscp_marking(RTCDscpMarking::Off)still sends everything DF. - No STUN or TURN request before the first
set_local_description, and a candidate the engine gathers waits for a local description of its ICE generation (conf/pool-2-for-train38; RFC 9429 sections 4.1.1 and 3.5.4, W3C webrtc-pc 5.6 and 4.4.1.4; audit rows RFC9429-4.1.1-2, WEBRTC-4.4.1.5-11 (bothtestedon a claim that was false: "the engine never pre-gathers"), WEBRTC-5.6-8, -5.6-10, -4.4.1.4-23, -4.4.1.1-18 (weren/a, "application gathers", false for the engine's own candidates)). A host candidate added before the first local description started the engine's STUN requests at once, whatevericeCandidatePoolSize, and the server-reflexive candidates found were surfaced then: pre-gathering without the application's request (RFC 9429 4.1.1: "this MUST only occur upon application request"). Now the probes start with the description (TURN already waited for it);SettingEngineBuilder::with_gathering_before_local_description(true)lets the STUN requests go earlier. A server-reflexive, relayed or ICE-TCP candidate of the engine's for a generation no local description represents (before the first one, or for an ICE restart whose offer or answer is not set yet) is held and surfaced when such a description is set; one of an abandoned generation is dropped. The application's own candidates are surfaced as it adds them, as before. An application that adds its host candidates beforeset_local_descriptiongets its server-reflexive candidates one STUN round trip after the description instead of before it. - A later TURN allocation to a server the connection has authenticated with starts with the cached realm and nonce (
conf/pool-2-for-train38; RFC 8489 section 9.2.3.2 SHOULD; audit row RFC8489-9.2.3.2-1, whosetestedverdict covered only the requests within one allocation: section 9.2.3 identifies the server by hostname or IP address, so a new allocation to it is a subsequent request). Every allocation started with an unauthenticated Allocate that drew a 401. The credential a server accepts an allocation with is now cached per server address and login, and a later allocation of the connection sends it in its first Allocate: one round trip instead of two with a server whose nonce outlives the allocation; a server that issues a new nonce per allocation (RFC 8656 section 5, SHOULD) answers 438, which is retried with the new nonce. A 401 to the cached credential authenticates anew; the cache is never used across server addresses or credentials.rtci-turn:Client::cached_credential,Client::use_cached_credential,CachedCredential. RTCRtpSender::write_rtpdrops an audio packet while the sender's track is ended, disabled or muted (W3C webrtc-pc 5.2,RTCRtpSender.track: the sender "MUST NOT send (audio)"). It returnsOkand nothing goes out, as for an inactive encoding; video packets still go out (the black frames the clause asks for are the encoder's). truth-5.- A rolled-back local offer releases what it allocated; a rolled-back first offer discards its gathering (
conf/truth-3-rtp-sdp-jsep; RFC 9429 section 5.7: "Any resources or candidates that were allocated by the abandoned local description are discarded"; audit row RFC9429-5.7-7). TURN allocations made for a rolled-back ICE restart offer (a rotation's new allocation, a link that allocated for the abandoned generation) are released with a Refresh of LIFETIME 0 instead of being kept for a later restart, and the restored generation takes back the server list it had. While a local restart offer is unanswered, the allocations it would replace are kept (retiring) and released only once the answer commits the restart; a restart for a new DTLS association no longer deletes the old allocations when its offer is applied (make before break from the new sockets). A rolled- back FIRST local offer discards everything gathered for it (host candidates, STUN probes, TURN allocations, ICE-TCP listeners); the next local description gathers anew and firesOnLocalCandidatesNeededwith the new reasonRTCLocalCandidatesNeededReason::RolledBack(no address refused: the same sockets may be given again;rtci-stream-driver'sPeerDriverdoes so). The connection'siceGatheringStateis not changed by the rollback (W3C: only the ICE agent's gathering sets it).turn_credential_rotation_rtc2rtc.rs's rolled-back rotation test expected the abandoned offer's allocation to be kept; it now expects it released. - Freed candidates' pairs are removed and announced (
conf/truth-3-rtp-sdp-jsep). The pairs of an ICE-TCP connection or a TURN link the engine closes after ICE completes used to stay on the list; they now leave it, each withOnIceCandidatePairRemove(webrtc-extensions 7). jitterBufferTarget: synchronized receivers take the larger target, and a change is reached gradually (conf/truth-3-rtp-sdp-jsep). W3C webrtc 5.3: the receivers of one remote stream are held for the largest target among them, and the adaptive jitter buffer moves to a new application target by at most 80 ms per second of stream (libwebrtc's audio/video synchronization step,video/stream_synchronization.cc) instead of at once. Row WEBRTC-5.3-10.- Simulcast encodings too short of rate to be usable are given none (
conf/truth-3-rtp-sdp-jsep). The target was divided among a sender's encodings by priority alone, however small the shares. Now, when a share would fall under 30 kbps (libwebrtc's minimum for a simulcast layer), the last encodings in thea=simulcastorder get 0 and the first ones share the rate; the first is always sent (RFC 8853 section 7.1, W3C webrtc-pc 5.4.1). Rows RFC8853-7.1-1, WEBRTC-5.4.1-6. - RTCP: a stream's MID / RtpStreamId / RepairedRtpStreamId SDES items go in the first three regular reports after they are given, then in every third (
conf/truth-3-rtp-sdp-jsep). They went in every compound packet. RFC 3551 section 2: "other items SHOULD only be sent every third reporting interval"; RFC 9143 section 15 asks the MID item in "the first few RTCP packets after joining the session" and "regularly thereafter". The CNAME still goes in every packet; RFC 4585 minimal packets, NACK follow-ups and BYE carry only the CNAME. Row RFC3551-2-7. - rtci-dtls, DTLS 1.3, following RFC 9846 (July 2026, which obsoletes RFC 8446): a ClientHello offering DTLS 1.3, or a ServerHello / HelloRetryRequest selecting it, whose legacy_version is not {254, 253} is refused with protocol_version (sections 4.2.2, 4.2.3; before, the value was ignored). A received user_canceled no longer ends the reading: data is read until the close_notify (section 6.1).
- The
StrictRfcbehaviour profile signs the DTLS handshake with an ECDSA certificate key by RFC 6979 deterministic ECDSA (RFC 8446 appendix C.3), and needs the newecdsa-rfc6979cargo feature for it: without the feature aStrictRfcpeer connection with an ECDSA certificate is refused with an error that names the feature. Every other profile, and the default, keeps the crypto provider's hedged nonce. - rtci-dtls, DTLS 1.2: a chain that is validated (not fingerprint authentication) with a certificate signed with MD5 or SHA-1 is refused with bad_certificate, as in DTLS 1.3 (RFC 8446 appendix D, section 4.4.2.4).
- rtci-dtls, DTLS 1.3: certificate_authorities is read. A client answers a CertificateRequest that lists authorities only with a chain issued by one of them (otherwise an empty Certificate, RFC 8446 section 4.4.2.3); a server takes first a chain issued by an authority the ClientHello lists (section 4.2.4).
RTCPeerConnection::dont_fragmentis false for the DTLS datagram of an SCTP fragment made before a path MTU reduction (larger than the association's path MTU now allows): SCTP does not cut it again, so the IP layer has to fragment it (RFC 9260 section 6.9, a MUST). Over IPv6 that is the sender's stack (IPV6_DONTFRAGoff for that datagram).- The peer connection erases a DTLS 1.3 association's exporter secret right after it exports the DTLS-SRTP keys (RFC 8446 appendix E.1.4); nothing more is exported from it.
- rtci-dtls: the default DTLS 1.2 cipher suite order puts every ECDHE AEAD suite (AES-128-GCM, ChaCha20-Poly1305) ahead of the ECDHE AES-256-CBC-SHA suites (RFC 8446 appendix D.5; BoringSSL's order). Before, ECDHE-ECDSA AES-256-CBC-SHA came second.
- rtci-dtls, DTLS 1.3 server: among several configured certificate chains, one with no SHA-1 signature is sent before a SHA-1-signed one, and a chain with an issued SHA-1-signed certificate is no longer sent as the fallback to a client that lists no SHA-1 algorithm: the handshake ends with handshake_failure (RFC 8446 sections 4.2.3 and 4.4.2.2). Self-signed certificates are not affected.
- mDNS queries carry one question each, so a Chrome peer's
.localcandidate resolves by query (conf/mdns-2-one-question-per-query; RFC 6762 section 5.3; audit row RFC6762-5.3-1, new).rtci-mdnsput a name's A and AAAA questions in one query message, and its retries packed the questions of every name due together (reconfirmation queries too). Chromium's mDNS responder, which answers for the names in Chrome's ICE candidates, drops a query whose question count is not one (chromium/srcnet/dns/dns_query.ccDnsQuery::Parse), so such a name resolved only from Chrome's announcement, which it sends when it makes a name and not when it gives an existing one to another connection, or through a peer-reflexive candidate. Now every query message carries one question: the A question, then the AAAA question, on the first round and on every retry. RFC 6762 section 5.3 makes the two forms equivalent ("purely an efficiency optimization"), Firefox's responder takes either, and pion/mdns made the same change; the default is the same in every profile and there is no setting. A query costs two messages a round instead of one (retries of several names one per question instead of shared), within the message budget (MdnsRateLimit); an AAAA question the budget holds back goes out as soon as it allows, before the series moves on. No API change. Withwith_unicast_response(true)the first round still asks QU, which Chromium's responder also refuses (its question class must be IN): the name then resolves on the first retry (test_against_a_chromium_like_responder_the_unicast_response_bit_costs_a_second). Browser cell:mDNS-hidden browser candidates resolve on the Rust side by query, with no announcement. - Stronger FEC waits until the source rate has been reduced (
conf/fec-18-stronger-fec-after-rate-reduction; RFC 8627 section 8: "If desired, stronger FEC protection MAY be applied only after the source rate has been reduced"; audit row RFC8627-8-2,missing->tested). The FEC encoders raised the amount of FEC at the next block when the reported loss rose, and took the FEC sent out of the target for the application only afterwards, so for up to a second media and FEC together went above the congestion controller's target. Now, once a target has gone by, more FEC than is in force waits until the source packets handed to the encoder in the last second plus the FEC the higher amount adds fit within the target (5% tolerance; for RFC 8627 rows and columns the whole shape), the target for the application is lowered by the FEC asked for (and, when no target goes by, the lowered one rides up on the next inbound packet), and the stronger FEC goes once the source has slowed. Less FEC is never held; a source below its target gets the stronger FEC at once when both fit. Affects every FEC encoder (FlexFEC draft-03, RFC 8627 FlexFEC, ULPFEC:configure_ulpfec_sessions,DefaultInterceptorOptions::video_flexfec(on inStrictRfc) andvideo_red_ulpfec(on inChrome)); the default chain runs none and is unchanged, as is a chain without a congestion controller. The 0.3 form:with_source_rate_first(false)on the builders. - A TURN client with a credential no longer believes a success response nothing signs (
conf/turn-2-client-hardening; RFC 8489 section 9.2.5, RFC 8656 section 21.1.5: an impersonated server's "faked relayed address" "is prevented through the long-term credential mechanism, which provides message integrity for responses"; audit rows RFC8489-9.2.5-15 to -17). The first Allocate goes without the credential, and an unsigned success to it was taken as an allocation, so anyone who saw the request could hand the client a relayed address. Now a client with a username or password discards it as a response whose integrity attribute is missing: over UDP the Allocate is retransmitted (a 401 is still answered) and, answered by nothing else, fails asAllocateError(Failed(ErrIntegrityMismatch)); over TCP or TLS it fails at once. The engine, which always has the TURN credential, gets no relayed candidate from a server that asks for no credential (RFC 8656 section 7.2 step 1, RFC 8155 section 9) unlessSettingEngineBuilder::with_turn_unauthenticated_allocations(true);rtci_turn::client::Client::set_unauthenticated_allocations(true)is the same for the client. A client without a credential takes the unsigned success as before. - An ALTERNATE-SERVER that can name no server is not followed (
conf/turn-2-client-hardening; RFC 8489 section 14.15: "an alternate transport address identifying a different STUN server"; audit rows RFC8489-14.15-1, RFC8656-7.4-3). Port 0, the unspecified address (0.0.0.0/8, ::), multicast, broadcast and IPv4-mapped addresses, and a loopback address from a server not on loopback:rtci_stun::alternate::TryAlternate::server_forpasses over them (Nonewhen nothing else is named),rtci_turn::client::Client::follow_alternatefails and keeps its server, and the engine's TURN link reports the 300 (icecandidateerror) and moves on as after any other refusal, connecting nowhere. - The engine's TURN links do not follow a redirection back to a server already tried (
conf/turn-2-client-hardening; RFC 8489 section 10: "it MUST ignore the redirection and consider the transaction to have failed"; audit row RFC8489-10-4). A resolution was bounded to three redirects, but A redirecting to B and B back to A had the engine connect to A again. - The TURN client refuses relayed and mapped addresses that are no transport address (
conf/turn-2-client-hardening; RFC 8656 section 7.3; audit row RFC8656-7.3-1). An XOR-RELAYED-ADDRESS with port 0, an unspecified address with a port, a multicast or the broadcast address is an allocation the client cannot use:AllocateError(Failed)and the allocation deleted with a Refresh of LIFETIME 0 (coturn's all-zero filler is still passed over). Such an XOR-MAPPED-ADDRESS is not passed on (Relay::mapped_addrisNone), and in a Binding success it is aBindingError. - A STUN or TURN request answered with a server error (500 to 599) is resent, at most four times (
conf/ice-37-stun-5xx-retry; RFC 8489 section 6.3.4: "the client MAY resend the request; clients that do so MUST limit the number of times they do this. Unless a specific error code specifies a different value, the number of retransmissions SHOULD be limited to 4"; audit row RFC8489-6.3.4-4). The engine's server-reflexive gathering and the TURN client (Binding, Allocate, Refresh, CreatePermission, ChannelBind, Connect) took the first 5xx as the answer. Now each resend is a new transaction under a new transaction id, made again with the current credential, and waits RTO, 2 RTO, 4 RTO, 8 RTO after the error (7.5 s in all at 500 ms); the count belongs to one request. An application sees the error (icecandidateerrorwith the server's code,Event::AllocateErrorand the like, the TURN link moving to its next server address) only after the last resend. A 508 (Insufficient Capacity) is not resent (RFC 8656 section 7.4), nor is a connectivity check (its error fails the pair, RFC 8445 section 7.2.5.2.4).SettingEngineBuilder::with_stun_server_error_resends(0)andrtci_turn::client::Client::set_server_error_resends(0)give the old behaviour. - A packet that bundles a SHUTDOWN COMPLETE is discarded; DATA after a SHUTDOWN ACK is not taken (
conf/sctp-33-peer-misbehaviour-tests; RFC 9260 3.1 and 6.10: "INIT, INIT ACK, and SHUTDOWN COMPLETE chunks MUST NOT be bundled with any other chunk"; 9.2: on the SHUTDOWN ACK "send a SHUTDOWN COMPLETE chunk to its peer, and remove all record of the association"; ETSI TS 102 369 bdc-i-7-3, bdc-v-7-8; audit rows RFC9260-3-1, 9.2-21, 12.4-2). rtci-sctp ended an association on a SHUTDOWN COMPLETE bundled with DATA; such a packet is now dropped like one that bundles an INIT, and T2-shutdown sends the SHUTDOWN ACK again (FreeBSD's behaviour). DATA bundled after a SHUTDOWN ACK in SHUTDOWN-SENT was taken and drew a SACK and a new SHUTDOWN before the SHUTDOWN COMPLETE; the rest of the packet is now discarded and the answer is a lone SHUTDOWN COMPLETE. Only a peer that breaks the bundling rules sees a change. AddsError::ErrShutdownCompleteChunkBundled(rtci-shared; the enum is non-exhaustive). - The aws-lc-rs provider takes a key share only in its wire form (
conf/vec-1-wycheproof-and-vector-registry; RFC 8446 section 4.2.8.2,legacy_form = 4; RFC 8422 section 5.4.1). aws-lc-rs's agreement also parses a SubjectPublicKeyInfo and a compressed or hybrid point, so withcrypto-aws-lc-rsa DTLS 1.2 key exchange or a DTLS 1.3key_sharecarrying a compressed P-256 / P-384 point (or a DER-wrapped X25519 key) was accepted;ActiveKeyExchange::complete(andkey_exchange_respond) now refuses anything but the 65- / 97-byte uncompressed point and the 32-byte X25519 key, as the ring provider always did. Found by Wycheproofecdh_secp256r1_ecpoint_test.jsontcId 2. No API change; ring unchanged. - rtci-dtls refuses DTLS 1.2 handshake messages out of order, and malformed ones (
conf/dtls-38-handshake-order-and-malformed; RFC 5246 7.4: "Sending handshake messages in an unexpected order results in a fatal error"; 7.2.2 decode_error; audit rows RFC5246-7.4-2, -7.4.9-3, -7.2.2-9, RFC6347-4.1.2.7-1). Four changes, each with its tests:- A message sent early, sent twice, or in the place of one left out (ClientKeyExchange before Certificate, CertificateVerify before ClientKeyExchange, a second Certificate, ServerKeyExchange, CertificateRequest, ClientKeyExchange or CertificateVerify, a ServerHello after the server's flight) is a fatal unexpected_message. Before, the flight cache could not tell it from a flight still arriving and waited until the handshake deadline, silently.
- The server's Certificate is required on a non-PSK suite (RFC 5246 7.4.2), the client's when the server asked for one, and an unrequested client Certificate is refused (7.4.6); each with unexpected_message. A server flight without a Certificate used to fail later with decrypt_error.
- Every handshake message is parsed to the exact length its header gives: trailing bytes, empty vectors the format forbids, odd-length signature algorithm lists and inconsistent length fields are refused (a CertificateRequest's
certificate_authorities, never read before, is now checked). In the clear such a message is dropped and the genuine one under the same sequence number is still taken (RFC 6347 4.1.2.7); one with trailing bytes used to be taken in its place. - A Finished whose verify_data is not 12 bytes is a decode_error (it was refused with decrypt_error).
- A PSK server configured with an empty identity hint sends it as RFC 4279 section 2 has it,
psk_identity_hintof length zero (00 00); it went as an ECDHE ServerKeyExchange with every field zero, which the exact parser refuses (an ECPoint is never empty). A conforming peer sees no change. New variantError::ErrHandshakeMessageOutOfOrderof the non-exhaustive error enum.
- Received NTP timestamps from near a leap second are not used (
conf/should-6-mdns-and-misc; RFC 7164 section 5: "generating or using NTP timestamps during the entire last second of a day on which a positive leap second has been scheduled SHOULD be avoided", one assumed at the end of every month as section 5.1 allows; audit rows RFC7164-5-3, RFC8834-4.10-1). In the two seconds around a month end a received RFC 6051ntp-64/ntp-56timestamp no longer becomes the stream's RTP-to-NTP mapping (the one before stays), a receivedabs-capture-timegives the frame and the synchronization source no capture time, and a received XR receiver reference time is not answered (the DLRR block keeps the one before), as received sender reports from there were already ignored. RFC 8888 report timestamps are still written and read there by default; the RFC 7164 form is a setting (see Added). - rtci-video sends an RPSI with a key-frame request where
nack rpsiwas negotiated (conf/should-6-mdns-and-misc; RFC 8834 section 5.1.4: "Receivers that detect that encoder-decoder synchronization has been lost SHOULD generate an RPSI feedback message if the codec being used supports reference-picture selection"; audit row RFC8834-5.1.4-1).VideoReceiver::polladds to each PLI a Reference Picture Selection Indication naming the last picture the decoder decoded without asking for a key frame: VP8 / VP9 by the Picture ID (RFC 7741 / RFC 9628 section 5.1), H.265 by thenuh_layer_idandPicOrderCntValthe decoder gives (RFC 7798 section 8.3). Only for a format that negotiatednack rpsi, which no browser offers and the default codec list does not: the default wire is unchanged. - Keys left in dead stack frames by the record paths are erased (
conf/must-3-last-open-rows; RFC 7714 section 13.1: "All keys MUST be properly erased when no longer needed"; audit row RFC7714-13.1-3,partialat that point;testedin this release, see the key-erasure scope entry). Each record call of the paths measured to leave key copies in stack frames of code the crate cannot change now runs in a frame of its own with the stack below overwritten afterwards: the AWS-LC provider's AEAD (SRTP AES-GCM, DTLS AES-GCM / ChaCha20-Poly1305), its DTLS 1.3 record-number mask and HMAC (SRTP HMAC-SHA1, the DTLS AES-CBC suites' MAC, every HMAC-based derivation), the ring provider's ChaCha20-Poly1305, and AES-CCM with either provider in an optimised build too. Cost: an overwrite of the measured depth of that path per record (4 KiB optimised, 8 KiB for AWS-LC's HMAC, checked by a high-water probe test; about 50 to 60 ns per AEAD record, within the benchmark gate, bench run 46285582566; 128 KiB unoptimised; a first 32 KiB form cost about 350 ns per record and failed the benchmark gate, bench run 46281647380); ring's AES-GCM and the SRTP AES-CM / HMAC path of the ring provider are untouched. Newrtci_crypto::set_record_stack_erasure(bool)(process-wide, on by default) andrecord_stack_erasure();scripts/bench-compare.shtakesBENCH_FEATURES. The residue tests assert every record key with both providers and every compiler (the AWS-LC known-limit tests are replaced;RTCI_KEY_RESIDUE_CCM_KNOWN_LIMITis gone). This replaces 0.4.1's 24 KiB overwrite after every AES-CCM record (crypto::scrub_ccm_record_stack, ledger rowccm-1). Accepted cost, per record: AWS-LC AES-GCM DTLS x1.14 to x1.16, SRTP AES-GCM with AWS-LC x1.07 to x1.13, ring ChaCha20-Poly1305 DTLS x1.08, AWS-LC AES-256-CBC x1.05 (bench runs 46287911133, 46295133610). Performance: must-3-record-erasure - ICE and TURN passwords the engine keeps are erased (
conf/must-3-last-open-rows). The ICE agent keeps its local, remote, pending-restart and previous-generation credentials in a wrapper that overwrites the password on drop and on replacement, overwrites its TURNUrlpasswords on drop and inset_ice_servers, andRTCPeerConnectionoverwrites its configuration's TURN credentials on drop and inset_configuration(newrtci-ice/tests/credential_erasure.rs). No public type changed; the application's own values and the SDP text are not covered (a 1.0 item: publicStringfields), nor yet the peer connection's transientUrllists (docs/key-erasure.md). - DTLS 1.2 server: the HelloVerifyRequest carries the ServerHello's version, DTLS 1.2 (
conf/must-3-last-open-rows; on the wire; RFC 6347 4.2.1: "The server MUST use the same version number in the HelloVerifyRequest that it would use when sending a ServerHello"; a MUST outranks a SHOULD of the same section, RFC 2119; recorded 2026-11-29). The HelloVerifyRequest's server_version is now fe fd (was fe ff, the same section's SHOULD, "DTLS 1.2 server implementations SHOULD use DTLS version 1.0 regardless of the version of TLS that is expected to be negotiated", which OpenSSL follows), on the endpoint path and on the connection's own flight 2. The engine never negotiates DTLS 1.0, so the SHOULD's reason (no version negotiation with DTLS 1.0 peers) does not arise; clients are required to ignore the field. Who sees it: a DTLS server (in a peer connection, the side that is nota=setup:active) answering a ClientHello that does not offer DTLS 1.3 (one that does gets a HelloRetryRequest); the cookie exchange is on by default.rtci-dtlsConfigBuilder::with_hello_verify_request_version(PROTOCOL_VERSION1_0)restores DTLS 1.0. Audit: RFC6347-4.2.1-8partial->tested, RFC6347-4.2.1-3 (the SHOULD)tested->conflict. Tests renamed:hello_verify_request_carries_the_server_hello_version_unless_configured_to_say_1_0(endpoint) andthe_connections_hello_verify_request_carries_the_server_hello_version_unless_configured_to_say_1_0(flight 2). - The loss rule of audio RED acts within the congestion limits, and
StrictRfcturns it on (conf/should-7-congestion-and-fec; RFC 8854 sections 7 and 8; audit row RFC8854-7-3, stillpartialuntil measured). Withwith_audio_redundancy_on_loss(true)a stream goes in RED on reported loss only while the congestion controller's estimate has not fallen in the last 5 s (RED_AUDIO_CONGESTION_HOLD: that loss is congestion loss) and the target leaves room for the redundancy above the controller's floor and the audio. TheStrictRfcprofile now turns this rule and the feedback stability stretch on (profile rowsfec.audio-redundancy-on-loss,cc.feedback-stretch-when-stable); the default andChromekeep both off. - FlexFEC fills probe clusters without a pacer, and fills them whole where there is no RTX (
conf/should-7-congestion-and-fec; RFC 8854 section 8: "when probing bandwidth ... FEC data SHOULD be used as the additional data"; audit row RFC8854-8-3 stayspartial: draft-03 and ULPFEC do not fill). In a chain without a pacer the RFC 8627 encoder fills the cluster the NACK responder used to pad, its repair packets markedProbePacket; on a stream without RTX (RFC 8627 1.1.7, theStrictRfcprofile) it makes repair packets until the cluster is full instead of leaving it short. Chains with RTX and a pacer are unchanged. - Data channels share the media's congestion control estimate (
conf/should-7-congestion-and-fec; RFC 8836 section 2, requirement 6a: "share information and adaptation with other non-RTP flows between the same endpoints, such as a WebRTC data channel"; RFC 8835 section 4.1; audit row RFC8836-2-6amissing->tested, RFC8835-4.1-1 stayspartialfor audio). While a connection sends media over its one transport and has a congestion controller's target, the data channels' send rate (last second) is a flow of the division of the target among the encodings (weight of the highest-priority open channel, capped at 1.25 times what they sent):RTCRtpSender::target_bitratesare lowered by what the channels send, up to their share. The SCTP association sends new DATA at no more than that share. Before, SCTP's congestion control and the media's acted as two independent senders on the path; a bulk transfer beside video now leaves the video its share. NewSettingEngineBuilder::with_data_channel_congestion_coupling(trueby default and inStrictRfc,falseinChrome: profile rowsctp.coupled-congestion-control, unverified),rtci_sctp::Association::set_max_send_rate/max_send_rate(a token bucket on new DATA,SEND_RATE_BURST),Association::bytes_sentnow public, andpriority::DATA_CHANNEL_RATE_WINDOW/DATA_CHANNEL_DEMAND_HEADROOM. Connections without data channels, or without media sent, are unchanged (the capacity instrument's calls have none). - The congestion controller reads the delay of each DSCP codepoint on its own (
conf/should-7-congestion-and-fec; RFC 8836 section 2, requirement 9: "The algorithm SHOULD attempt to leverage DSCP markings when they're available"; audit row RFC8836-2-9,partial->tested). The peer connection tells the chain the codepoint of every stream it sends (newinterceptor::FlowCodepoints, written at each applied description, aftersetParametersand when the DSCP fallback turns a flow back), the congestion control interceptor hands it to its estimator (new provided methodBandwidthEstimator::on_flow_codepoints), andGccgroups, filters and detects each codepoint's packets separately, reading over-use when any of them grows. Flows of one codepoint keep one delay signal: with the default priorities (low, DSCP 0 for every flow) nothing changes, and the capacity instrument's figures do not move. A connection whose encodings have different priorities (voice EF, video AF4x) is affected. - Audio that negotiated RED goes in RED on reported loss, within the congestion limits, by default (
conf/should-7-congestion-and-fec; RFC 8854 section 7, "Use of these formats when sending ... is RECOMMENDED", within section 8's limits; audit row RFC8854-7-3partial->tested):with_audio_redundancy_on_lossistrue(Chromeprofile:false, libwebrtc has no loss rule). The default codecs offeraudio/red(63,111/111, after Opus): between two engines with the defaults, and towards Chromium or WebKit (which answer RED), a stream whose receiver reports 0.5 % loss or more goes in RED while the congestion controller's estimate has not fallen in the last 5 s and the target leaves room above the floor and the audio, and the redundancy is taken out of the target the application encodes at. A peer that does not negotiate RED gets plain Opus as before. Measured (capacity instrument, run 46290010518): under 3 % random loss audio packets lost fall by about a third (30.4 -> 20.6 a call) for 27 kbit/s (1.1 %) of the video target; the capacity-collapse cells unchanged. Performance: red-on-loss, feedback-stretch - While a new DTLS association forms, the old one's records are still read (
conf/dtls-39-old-and-new-association; RFC 8842 section 5.5: "each endpoint needs to be prepared to receive data on both the new and old DTLS associations as long as both are alive"; section 5.1 on telling them apart; audit row RFC8842-5.5-3partial->tested, re-levelledSHOULD->proc(the text is a NOTE without an RFC 2119 keyword), and RFC8842-4-6MAY->procfor the same reason). A new association replaced the DTLS endpoint at once, so what the peer still sent on the old one (data channel messages from an offerer that had not had the answer yet, retransmissions on the old path) was dropped as undecryptable. Now the replaced association's endpoint is kept, if it was established, and reads its records: on this side's previous local UDP addresses (the default, a new 3-tuple); on its ICE-TCP connection, by order (everything before the new association's first record); on a UDP 5-tuple both associations use (with_dtls_new_association_on_previous_addresses(true)on both sides,with_dtls_new_association_without_ice_restart(true)), by the records: a record in the clear begins the new handshake, a protected one is tried with the old association first and goes to the new one when the old one takes nothing from it. Its data goes to the SCTP association (which the replacement does not affect, RFC 8841 section 10.5). It is closed, with aclose_notifyon its own path (on a TCP connection only before this side sent the new association's first record there), and dropped with its keys when the new handshake completes, the transport fails or closes, the peer closes it, or at the latest 30 seconds after the replacement; at most one is kept, and records for it are refused afterwards. Behaviour change (DTLS on the wire during a renegotiation that sets up a new association): the old association's records are delivered instead of dropped, and itsclose_notifyis sent. No API change. Tests:tests/dtls_old_and_new_association.rs,src/peer_connection/handler/dtls/previous_association_test.rs,src/peer_connection/handler/previous_association_path.rs, envtests/testenv_dtls.rs::renewing_the_association_delivers_what_is_sent_on_the_old_one_meanwhile. - Audio above its share of the pacer is held to it (
conf/should-8-pacer-audio-and-fec-probe; RFC 8835 section 4.1: "each stream at each level of priority is being given approximately twice the transmission capacity (measured in payload bytes) of the level below ... This prioritization is independent of the media type"; audit row RFC8835-4.1-1,partial->tested). The pacer never queued audio: every audio packet left when written and its octets were charged to the budget, so an audio stream writing above its share of the target took what it wrote from the video waiting behind it. Now, while other streams have packets waiting, audio is a flow of the pacer's share by priority (start-time fair queuing over payload octets, weights fromPacerPriorities): an audio packet whose start tag is past the waiting streams' waits for its turn (each audio stream in the order written), so alowvoice written at 800 kbit/s besidehighvideo into 1.2 Mbit/s leaves 1 : 4 of the payload, not 2 : 1. Audio within its share is never delayed (its tags lag the virtual time the waiting streams' service moves; avery-low40 kbit/s voice beside ahighvideo backlog leaves each packet the instant it is written), and with nothing else waiting nothing is held. Held audio leaves by the budget once nothing else waits, at once at a flush, and is dropped (with aPacerDiscard, no key-frame request) after the queue time bound. Behaviour change (pacing): only for an audio source above its share while other streams wait in the pacer. New, additive:PacerBuilder::with_audio_in_share(defaulttrue),DefaultInterceptorOptions::pacer_audio_in_share(governed rowpacer.audio-in-share:falsein theChromeprofile, libwebrtc paces no audio). Tests:tests/pacing.rs(an_audio_stream_above_its_share_is_held_to_it_and_the_others_get_theirs,ordinary_audio_within_its_share_is_not_delayed). - The ULPFEC and FlexFEC draft-03 encoders fill bandwidth probe clusters with FEC (
conf/should-8-pacer-audio-and-fec-probe; RFC 8854 section 8: "when probing bandwidth, i.e., speculatively sending extra data to determine if additional link capacity exists, FEC data SHOULD be used as the additional data"; audit row RFC8854-8-3,partial->tested). Only the RFC 8627 FlexFEC encoder filled clusters; with ULPFEC or FlexFEC draft-03 the NACK responder padded them. Now both fill a cluster the way the RFC 8627 encoder does (the media the pacer holds first, then FEC over the newest base-layer packets of the stream that sent last, the responder padding only what the FEC leaves, a stream without RTX filled whole, a pacer-less cluster marked): draft-03 on its repair stream; ULPFEC on a FEC stream of its own in the media's RTP session (not in a FEC session of its own, which has another transport), or in RED as packets of their own (RedPlacement::OwnPacket) in the media stream's next sequence numbers, between frames only. ULPFEC as a redundant block of the next media packet (RedPlacement::WithNextMedia) still pads: RFC 5109 section 14.2, "the FEC MUST NOT be sent by itself for this stream" (docs/conformance/spec-issues.md, considered and left out). An encoder that protects no stream no longer reports a cluster it did not fill (an idle RFC 8627 encoder beside a ULPFEC encoder made the responder pad a cluster the ULPFEC filled). Behaviour change (probing): a chain withvideo_red_ulpfecoutside theChromeprofile, or a draft-03 encoder, now probes with FEC. New, additive:UlpfecSendBuilder::with_probe_fill,FlexFec03SendBuilder::with_probe_fill(defaulttrue),DefaultInterceptorOptions::fec_probe_fill(governed rowfec.probe-fill:falsein theChromeprofile, whose probes are RTX padding as libwebrtc's). A stream with no RTX stream (NACK answered on the media SSRC) now has its clusters filled whole with FEC where before nothing could carry them;tests/fec_statistics_rtc2rtc.rsandtests/ulpfec_across_srtp_rekeying_rtc2rtc.rs, which count and name the FEC of their blocks, turn the fill off for that. Tests:rtci-interceptor/tests/fec_probe_fill.rs. - Without AES or SHA hardware, RustCrypto's record operations are followed by the record overwrite (
conf/must-4-key-erasure-scope; RFC 7714 section 13.1). On a CPU without AES instructions RustCrypto'saesruns its portable fixsliced code, and without SHA instructionssha1runs its portable code; both leave key schedule or HMAC state copies in stack frames (measured under an emulated CPU, run 46320274694). There, each AES-CTR (SRTP AES-CM) and AES-CBC record operation, and the ring provider's HMAC-SHA1, now runs under the overwrite ofcrypto::set_record_stack_erasure(4 KiB each, checked by the depth probe). CPUs with the instructions are unaffected (the check is the crates' own feature test, cached).
Added
NackResponderBuilder::with_probe_paddingandDefaultInterceptorOptions::probe_padding: whether a bandwidth-probe cluster that media and FEC leave unfilled is filled with padding-only RTX packets. On by default, as libwebrtc; off is RFC 7714 section 7.2's form (RTP padding only to disguise a length) and is theStrictRfcprofile's value. Audit rowRFC7714-7.2-1issetting(it wasn/afor a false reason, thenviolated).- Cancelable removal of the pairs of freed candidates (webrtc-extensions 7) (
conf/truth-3-rtp-sdp-jsep). Once ICE completes, the engine frees unused ICE-TCP connections and the TURN links of unused relayed candidates; their pairs now leave the agent's list first. Withwith_candidate_pair_proposals(true)each is proposed with the cancelableRTCPeerConnectionEvent::OnIceCandidatePairRemoveProposal(and the transport eventCandidatePairRemoveProposal), answered byRTCPeerConnection::resolve_candidate_pair_removal; a cancelled one keeps the pair and what carries it until the next ICE restart.Agent::remove_proposed_candidate_pairremoves a pair without a second event. Rows WEBRTC-EXT-7-4, -7-5. RTCPeerConnection::network_changed(conf/truth-3-rtp-sdp-jsep): the application tells the connection that the host's network may have changed (wake from sleep, link change, new address); every transport's mDNS responder probes for and announces its names again and empties its cache (RFC 6762 sections 8, 10.2, 10.3).Agent::multicast_dns_network_changedis the agent's form. Rows RFC6762-8-1, -10.2-1, -10.3.SettingEngineBuilder::with_document_originandRTCCertificate::origin(conf/truth-3-rtp-sdp-jsep). W3C webrtc-pc 4.9 / 4.4.1.1: a certificate keeps the[[Origin]]it was serialized for (deserializeused to drop it), and a connection given its document's origin refuses a certificate of another origin withInvalidAccessError. For embedders with origins (script runtimes); without one, any certificate is taken as before.RTCCertificategains a public field, so a struct literal of it needsorigin: None. Rows WEBRTC-4.9-16, WEBRTC-4.4.1.1-2, -4.4.1.1-4.SettingEngineBuilder::with_deterministic_ecdsa(bool)and theecdsa-rfc6979cargo feature (rtci, forwarded tortci-crypto; off by default): the certificate's P-256 / P-384 key signs by RFC 6979 (RFC 8446 appendix C.3) with RustCrypto'sp256/p384, default features off; 19 crates join the graph with the feature, none without it. rtci-crypto:rfc6979::deterministic_ecdsa(key), tested against the RFC 6979 A.2.5 and A.2.6 vectors. The default stays the providers' hedged nonce, as BoringSSL's, which RFC 9846 (July 2026, which obsoletes RFC 8446) cautions about the purely deterministic form for.- rtci-dtls:
State::extended_master_secret(): whether the session keys are bound to the handshake (always under DTLS 1.3; under DTLS 1.2 with RFC 7627), as RFC 8446 appendix D asks an API to say. - rtci-dtls:
Endpoint::forget_exporter_secret(remote)erases a DTLS 1.3 association's exporter secret once the application has exported what it needs (RFC 8446 appendix E.1.4); later exports fail with the newError::ExporterSecretForgotten. RTCPeerConnection::dont_fragment(&datagram): whether the socket layer is to send a datagrampoll_writereturned with DF set (IPv4) or local fragmentation prohibited (IPv6): true for the DTLS datagrams of a UDP path while SCTP discovers the path MTU (the default), so that its probes are not fragmented on the way (RFC 8261 section 5, RFC 6347 section 4.1.1.1, RFC 9147 section 4.4).FecRate::with_source_rate_first,source_rate_first,on_media_sent,media_bitrate;with_source_rate_firstonFlexFecSendBuilder,FlexFec03SendBuilderandUlpfecSendBuilder(rtci-interceptor). Additive (conf/fec-18-stronger-fec-after-rate-reduction).SettingEngineBuilder::with_turn_unauthenticated_allocations,rtci_turn::client::Client::set_unauthenticated_allocations(off) andrtci_stun::alternate::is_usable_alternate(conf/turn-2-client-hardening).SettingEngineBuilder::with_stun_server_error_resends,rtci_turn::client::Client::set_server_error_resends, and inrtci_stun::timerDEFAULT_SERVER_ERROR_RESENDS,is_server_errorandserver_error_resend_delay(conf/ice-37-stun-5xx-retry, RFC 8489 section 6.3.4).- The PR-SCTP priority policy and a bounded send buffer (
conf/sctp-32-may-rows; RFC 7496 section 3.2: "When storing a user message in the send buffer while there is not enough available space, the SCTP stack at the sender side MAY abandon other user message(s) ... with a priority lower than the provided one. User messages sent reliably are considered to have a priority higher than all messages sent with the Priority Policy"; audit rows RFC7496-3.2-1, RFC7496-3.2-2). Newsctp::TransportConfig::with_send_buffer_size(Option<u32>)/send_buffer_size()(defaultNone: no limit, unchanged) andsctp::ReliabilityType::Priority(the reliability value is the priority, 0 the highest, RFC 7496 4.2). With a size set, a write that does not fit fails withError::ErrBufferFulland queues nothing, unless abandoning unsent messages of the policy with a lower priority (the lowest first, the earliest written among equals) makes room; a message written without the policy ranks above all of them. Abandoned messages took no TSN (no FORWARD TSN) and are reported asStreamEvent::MessageAbandoned { transmitted: false }. Crate level only: a data channel's priority is the stream scheduler's weight (RFC 8831 6.4), and neither DCEP norRTCDataChannelInitselects this policy. Additive (SemVer minor): a private field ofTransportConfig, a variant of the non-exhaustiveReliabilityType. - DATA bundled with the COOKIE ECHO, as an option (
conf/sctp-32-may-rows; RFC 9260 5.1 C: "The COOKIE ECHO chunk MAY be bundled with any pending outbound DATA chunks, but it MUST be the first chunk in the packet and, until the COOKIE ACK chunk is returned, the sender MUST NOT send any other packets to the peer"; audit rows RFC9260-3.3.11-2, RFC9260-5.1-9). Newsctp::TransportConfig::with_data_in_cookie_echo(bool)/data_in_cookie_echo(), off by default. On, a stream takes writes in COOKIE-ECHOED, and the packet of each COOKIE ECHO (the first and every T1-cookie retransmission) carries after it the DATA that fits the path MTU: the DATA sent with an earlier COOKIE ECHO again first (retransmissions), then new DATA within the peer's a_rwnd and cwnd. The first message reaches the peer one round trip earlier. Off by default because a peer connection never has DATA to bundle (its data channels write only afterEvent::Connected). Additive (SemVer minor): a private field ofTransportConfig. - A FORWARD TSN may wait for DATA to go with, as an option (
conf/sctp-32-may-rows; RFC 3758 3.5 F2: "A sender MAY even choose to delay the sending of the FORWARD TSN in the hope of bundling it with an outbound DATA chunk", F3: "SHOULD NOT exceed 200ms and MUST NOT exceed 500ms"; audit row RFC3758-3.5-17). Newsctp::TransportConfig::with_forward_tsn_delay(Option<Duration>)/forward_tsn_delay(), defaultNone(no wait, unchanged); a longer delay than 200 ms is taken as 200 ms. With a delay, a FORWARD TSN or I-FORWARD-TSN that finds no DATA packet with room is held: DATA sent within the delay carries it, otherwise it goes alone when the delay, counted from when it was first due, runs out (Association::poll_timeoutreports that instant). Additive (SemVer minor): a private field ofTransportConfig. - RFC 7164's form for RFC 8888 report timestamps, opt-in (
conf/should-6-mdns-and-misc; audit rows RFC7164-5-3, RFC8834-4.10-1, nowsetting(measured)).Rfc8888Builder::with_leap_second_window(true): no RFC 8888 report is generated in the two seconds around a month end (what arrived goes in the first report after);CongestionControlBuilder::with_leap_second_window(true)(andwith_wall_clock): a received report stamped there gives loss and arrival but no arrival times or round-trip time.DefaultInterceptorOptions::rfc8888_leap_second_windowsets both:falseby default (two seconds without feedback take a Gcc sender to 1/8 of its target, measured bycongestion_control_limits.rs::two_seconds_without_feedback_cut_the_target),truein theStrictRfcprofile (rowcc.rfc8888-leap-second-window). - The mDNS QU setting is governed by the behaviour profiles:
StrictRfcturnsSettingEngineBuilder::with_multicast_dns_unicast_responseon (rowmdns.unicast-response; the default stays off: with another responder first on port 5353 a QU query resolves only at the 1 s retry, measured in rtci-mdns; audit row MDNSICE-3.2.1-4, nowsetting(measured)). - A per-datagram mDNS destination and the link's subnets as driver inputs (
conf/should-6-mdns-and-misc; RFC 6762 section 5.5: "When a Multicast DNS responder receives a query via direct unicast, it SHOULD respond as it would for "QU" questions", and "SHOULD check that the source address in the query packet matches the local subnet for that link"; audit rows RFC6762-5.5-1, -5.5-2). NewRTCPeerConnection::handle_mdns_datagramandice::Agent::handle_mdns_datagramtake a datagram of the mDNS socket with the destination address of its IP header (IP_PKTINFO/IPV6_PKTINFO), which the engine never sees; with it the default settings answer a query sent to the host by unicast as a QU question and ignore one from off the link. NewRTCPeerConnection::set_multicast_dns_on_link_subnets,ice::Agent::set_multicast_dns_on_link_subnetsandmdns::Mdns::set_on_link_subnetsgive the link's subnets (empty, the default: the scope of the source address, as before).handle_readand every default are unchanged. - rtci-video names decoded pictures for RPSI:
ReceivePipeline::last_decoded_picture,DecodedPicture,ReceivePipeline::set_hevc_picture_order,VideoReceiver::set_hevc_picture_order,VideoReceiver::rpsis_sent(conf/should-6-mdns-and-misc, see Behaviour changes). - H.264 interleaved mode:
sprop-init-buf-timefrom the sender's fmtp line, and initial buffering ended by it (conf/must-3-last-open-rows; RFC 6184 section 7.2.2: initial buffering lasts until "Initial buffering has lasted for the duration equal to or greater than the value of the OPTIONAL sprop-init-buf-time media type parameter"; audit row RFC6184-7.2.2-1, nowsetting, measured).RTCRtpCodec::h264_depacketizerand the media engine's depacketizers give the buffer the stream'ssprop-init-buf-time; newH264Packet::depacketize_at(now, packet)gives the buffer each packet's arrival time andH264Packet::is_initial_buffering(now)says whether decoding may start. Additions only. The default PDON is unchanged: a test now measures what the RFC's PDON 0 does to the engine's own mode-2 stream (numbered from DON 0: 31 of 32 NAL units passed on before the SPS), which makes the row a measuredsetting(MediaEngine::set_h264_literal_pdon(true),StrictRfc). Packetization mode 2 is not negotiated by default. - A congestion control feedback interval that stretches while the path is stable, off by default (
conf/should-7-congestion-and-fec; RFC 8836 section 2, requirement 8c; audit row RFC8836-2-8cmissing->partial, awaiting a capacity-instrument measurement):TwccReceiverBuilder::with_stability_stretch,Rfc8888Builder::with_stability_stretch,DefaultInterceptorOptions::congestion_feedback_stretch_when_stable, constantsSTABLE_FEEDBACK_REPORTS,STABLE_FEEDBACK_JITTER,STABLE_FEEDBACK_STRETCH,STABLE_FEEDBACK_MAX_INTERVAL,STABLE_FEEDBACK_QUEUE. After four reports with no packet missing, the interarrival jitter under 5 ms and no queue of 20 ms the interval doubles (up to 500 ms); a loss, a jitter rise or a queue brings it back at once. Measured worse as the default (capacity instrument runs 46273767959 and 46284528739: the 1000 ms queue cell's audio gap over 1 s in 29 % -> 64 / 69 % of calls), so it stays off: new audit row RFC8836-2-8cmsetting(measured), on inStrictRfc. RFC8836-2-8c ("Backchannel data should be minimized") istestedon the default cadence (5 % of the media received, 50 to 250 ms). - RFC 8627 FlexFEC with FlexFEC retransmission, behind
DefaultInterceptorOptions::video_flexfec(conf/fec-19-flexfec-offered-by-default; RFC 8854 sections 5.1, 5.2 and 8, RFC 8627 sections 1.1.7 and 4.2.2.3; audit rows RFC8854-5.1-1 and -5.2-1partial->setting, measured). With the setting (on inStrictRfc; off by default and inChrome) video offersvideo/flexfec(49,repair-window=10000000) beside RTX with ana=ssrc-group:FEC-FR; two engines with it answer each other FlexFEC alone (RFC 8627 1.1.7), and a stream so negotiated is now repaired by FlexFEC retransmissions (R=1) on the repair stream: the NACK responder sends them with everything it does for RTX (rate limit, give-up at a collapse, pacer accounting, duplicate suppression), the pacer and the transport-wide numbering key them by the source packet they carry, and the repair stream's sequence numbers are one space with the encoder's repair packets. Before, such a stream was retransmitted under the media SSRC, which kept the original's transport-wide number, so the congestion controller read each repaired loss as a late arrival. Not the default: libwebrtc offers no FlexFEC (field trial only), and with it as the default the capacity instrument broke the merge-point rule (run 46361759550; docs/performance.md rowflexfec-default; docs/conformance.md, "Standing departures from a SHOULD"). No change for a default peer.
Fixed
- Two lite agents pick the TCP pair whose connection they can open again (
conf/truth-1-ice-turn, RFC 8445 section 5.2, RFC 6544 section 4.2). A lite agent whose network types include IPv6 (the default) gives its candidates the RFC 6724 precedence as local preference; for TCP candidates that formula dropped the direction-pref, so an active and a passive candidate on one address had the same priority. While the engine's TCP candidates came with a priority of their own this did not show; since they are ranked by the agent (unique priorities, this branch) the controlling lite agent could pick the pair whose local candidate is passive, open no connection and send no updated offer. A lite agent's TCP candidate now keeps2^13 * direction-pref + other-pref, the precedence going into other-pref. - A TURN connection attempt that follows a failed one starts at once again (
conf/truth-1-ice-turn, RFC 8305 section 5). The Ta pacing of a server's first attempt (RFC 8445 section 5.1.1.2) also held the attempt on the next address after a refused connection, which then waited for the gate instead of starting immediately. - A TURN server skipped unasked no longer holds back the next transaction (
conf/truth-1-ice-turn, RFC 8445 section 5.1.1.2). A server the engine does not ask (refused for good, held back after 486 / 508, or refused by the address policy) took the Ta slot of the gathering transactions although nothing was sent to it, so the Allocate of a new ICE generation started within 50 ms of that skip waited for the next timer. Only an attempt that sends now takes the slot. Seen in the whole suite (turn_resolutiontests); the tests of four other files followed this branch's earlier changes (srflx keepalive, one TURN allocation per UDP base). - A restart's TURN allocation waits for a 5-tuple instead of breaking the one a rollback needs (
conf/merge-truth-1, RFC 9429 section 5.7, RFC 8656 section 2.2). With an allocation per UDP base (RFC 8828 section 5.2) every base can be held by a retiring link while the restart offer is not answered. The new generation's Allocate took the first base and released its allocation at once, which a rollback could not bring back and which could be the one carrying the data. It now prefers the base of a retiring allocation that carries no data and, until the offer is answered, waits for that 5-tuple to be let go (at the answer); afterwards it releases the holder as before. A socket the application binds meanwhile (for the restart) is used at once: the waiting Allocate moves to its free 5-tuple. - A rolled-back ICE restart keeps the server-reflexive keepalive (
conf/merge-truth-1, RFC 8445 section 5.1.1.4). A probe taken by the restart stopped its Binding keepalive; the rollback restored the probe and its address but not the keepalive. - The NAT64 prefix query waits for the first local description (
conf/merge-truth-1, RFC 9429 sections 3.5.4 and 4.1.1), like the rest of the engine's gathering. - Engine TURN links: three defects found by the truth-1 mutation runs (
conf/truth-1-ice-turn). Aturn:link over UDP or DTLS to a server given by address started on the transport's first host base of any family, so with the IPv6 host candidate added first it failed for good and the IPv4 one added next allocated nothing; such a link now waits for a base of the server's family. The links made for further interfaces (RFC 8828 section 5.2) resolved the server's name each on their own, and a driver that answered only one query left the first link unresolved; they now take the address the first link reached. An allocation lost with the session on it (RFC 8656 section 12.3) left its relayed candidate in the agent: the old selected pair and the restart's new pairs wrote from it, and those writes left the application's socket as plain UDP from the relayed address; the candidate is now withdrawn and its writes dropped. - A TCP default candidate carries
a=connection; a simultaneous-open candidate is never the default (conf/truth-1-ice-turn, RFC 6544 sections 4.3, 4.5 and 9.1). A section whosem=/c=destination is a TCP candidate now saysa=connection:new, ora=connection:existingonce the selected pair's TCP connection is the destination of an updated offer (RFC 4145); a UDP default carries none. With TCP candidates only, an S-O candidate is taken last. - The Refresh deleting an unusable TURN allocation is retransmitted over UDP (
conf/truth-1-ice-turn, RFC 8656 section 7.3). When a server answered an Allocate with an allocation the client cannot use (a family not asked for, an address no peer can send to), the engine dropped the client right after the deleting Refresh (LIFETIME 0) left once; a lost datagram left the allocation in place until it expired. The client now goes on as a release until the Refresh is answered or times out. - Server-reflexive bindings are kept alive (
conf/truth-1-ice-turn, RFC 8445 section 5.1.1.4: "the bindings MUST be kept alive by additional Binding requests to the server"). The engine ran one Binding transaction per server-reflexive candidate over UDP and never refreshed it, so a NAT could drop the mapping while ICE was still running. It now sends a Binding request from the base to the server that answered every 15 s (Tr) until a pair of the transport is selected; a failed refresh ends them. Over TCP the binding already lived with the Binding connection, which is kept open until then. - The engine's own candidates get unique priorities (
conf/truth-1-ice-turn, RFC 8445 sections 5.1.2, 5.1.2.1 and 5.1.2.2). Server-reflexive, relayed and TCP candidates the engine gathers were handed to the ICE agent as strings that already carried the priority of a lone candidate of their type, and the agent keeps a given priority as the application's: two relayed candidates from two TURN servers, or two server-reflexive candidates from two host addresses, had the same priority (local preference 65535). They now go to the agent without a priority and are ranked like the application's unranked candidates (the first of a type keeps 65535, the others get unique, interleaved values). A single candidate of a type is unchanged. - ECN: a session with more than one RTCP CNAME follows RFC 6679 section 7.2.1's full initiation procedure: a stream marks every packet only after three reporting intervals of probing, a complete interval without a change of membership, and ECN reports from every participant confirming the probes. Before, after the fallback for a second CNAME, two confirmed probes from anyone made it mark every packet again. ECN reports are attributed to their sender's CNAME, and each reporter's RFC 6679 counters are compared with its own. truth-5.
- RTCP: each local media sender has its own TMMBR bounding set (RFC 5104 sections 3.5.4 and 4.2.2.2). With two sending streams, a TMMBR from one receiver for the second stream replaced its limit on the first, and a TMMBN mixed both streams' tuples. truth-5.
- RTCP: a TMMBN goes from the SSRC the TMMBR named (RFC 8108 section 5.4.1: a notification "MUST be sent from the SSRC used for that RTP data"). An endpoint sending several streams answered every TMMBR from the first SSRC it bound; now each local SSRC the compound packet's TMMBRs named sends one, and each limited SSRC when the owner of a tuple leaves or times out. The engine's own TMMBRs keep the SSRC the first one went from while it exists, so a limit set while receive-only is lifted by the SSRC that set it after the endpoint starts sending (the same section: "the same SSRC needs to be used to remove the limitation"). truth-5.
- A later offer keeps the last answer's whole format order (
conf/truth-3-rtp-sdp-jsep; RFC 9429 section 5.2.2: the formats "MUST be generated in the same order as in the most recent answer"; audit row RFC9429-5.2.2-19). After a remote answer, the next offer listed the answer's primary formats in its order but every RTX format after them (the order the codec matching keeps: exact matches, then partial ones, then RTX). It now lists the answer's formats as the answer placed them, RTX included, then the formats the answer left out. An answer of this endpoint's own is unchanged. - The TURN gathering of an ICE restart starts when the restarting description is set (
conf/truth-3-rtp-sdp-jsep; W3C webrtc-pc "set the configuration": new servers take effect at the next gathering phase; audit row RFC9429-5.7-7). The links of the new generation (new servers' allocations, or a new DTLS association's) were made only at the nexthandle_timeout, so a connection with no other timer due did not allocate at all until something else happened.set_local_descriptionnow starts them. Likewise the links a local restart kept retiring while its offer was unanswered are released when the answer commits the restart (those whose relayed candidate carries no data), not at the next timer.tests/turn_udp.rs: the new-DTLS-association and set_configuration tests expected the previous allocation deleted as soon as the offer was applied; they now expect it kept until the answer (RFC 9429 section 5.7) and deleted then. - A rolled-back ICE restart offer no longer announces what its STUN requests find (
conf/truth-3-rtp-sdp-jsep; RFC 9429 section 5.7; audit row RFC9429-5.7-7). The engine's server-reflexive probes taken for the abandoned generation kept running; a late answer was announced as a candidate of the restored session. The rollback now brings each probe back to what it was for the restored generation and ends the rest with their transactions and connections (the TURN side: Behaviour changes). - AV1 rid restrictions take the AV1 meanings (AV1 RTP specification section 7.2.2; audit row AV1RTP-7.2.2-1). The engine converted a rid's
max-ppsinto a frame rate with one frame's size per RTP timestamp, which lets a layered AV1 stream decode more samples than AV1's MaxDecodeRate allows; for AV1 it is left to the encoder.max-fpscounts temporal units (RTP timestamps) andmax-brthe bit rate, as before.RTCRtpRidRestrictionsdocuments the AV1 meanings and that the engine bounds frame rate and bit rate itself. - The XR VoIP Metrics block reports the jitter buffer's discards, and a late packet is no longer counted lost (
conf/truth-3-rtp-sdp-jsep; RFC 3611 section 4.7.1; audit rows RFC3611-4.7.1-1, -4.7.1-2). The discard rate was always 0, though the engine's jitter buffers (JitterBufferInterceptor,AdaptiveJitterBufferInterceptor) drop packets that arrive after their turn and packets that overflow them. NewJitterBufferDiscards, a per-SSRC count given to the jitter buffer (with_discard_counton both builders) and to the XR generator (XrReportBuilder::with_jitter_buffer_discards): the discard rate is the packets discarded (copies of a packet excluded) over the packets expected. Without the handle the rate stays 0. The loss rate since the beginning of reception now takes back a packet reported lost that arrives later (among the last 4096 reported lost), so a packet is lost only when it never comes, well after a jitter buffer would discard it. The burst and gap metrics (section 4.7.2, packets "either lost or discarded") count the discards too (audit row RFC3611-4.7.2-2). The engine builds no jitter buffer; an application that adds one replaces the default XR generator with one given the same handle (example onconfigure_extended_reports). - A transport an answer closes sends the goodbyes of its mDNS names (
conf/truth-3-rtp-sdp-jsep). RFC 6762 section 10.1: the closed transport's ICE agent was closed, which queued a TTL-0 goodbye for each name it had published, and then dropped with the transport, so the goodbyes never went out and neighbours kept the names cached. They now go out with the connection's next writes. Row RFC6762-10.1-1. - H.264 Level 1b is ordered and written as RFC 6184 section 8.1 signals it (
conf/truth-3-rtp-sdp-jsep). Levels were compared by their level_idc byte: Level 1b (Baseline/Main/Extended: level_idc 11 with constraint_set3_flag; other profiles: level_idc 9) was taken as 1.1 or as below 1.0, and an answer kept the offer's profile-iop byte, so a 1.1 offer answered from 1b said 1.1 and a High 1b offer answered from 1.0 said 1b. The peer's level parameter sets kept for the decoder follow each role's wording (the answer's default level for an offer, the level to use for an answer). Rows RFC6184-8.2.2-7, -8.2.2-11. - H.264: the peer's out-of-band parameter sets are used or ignored by the level to use; an offer asking for in-band parameter sets is answered without any (
conf/truth-3-rtp-sdp-jsep). RFC 6184 section 8.2.2: the negotiated H.264 format of a remote description (a receiver's parameters, a remote track's codec) keeps the peer'ssprop-parameter-setsonly when the level to use is the peer's default level, and itssprop-level-parameter-sets(those of the level to use) only when this endpoint's line saysuse-level-src-parameter-sets=1; this endpoint'sin-band-parameter-sets=1drops both.RTCRtpCodec::sprop_parameter_setsreads the kept level sets too. An answer to an offer within-band-parameter-sets=1no longer carries level parameter sets the application registered. Rows RFC6184-8.2.2-10, -8.2.2-11, -8.1-9. - Codec parameters a section's direction cannot use are not read; a rid's max-fps, max-pps and max-br bound what is sent; grouped circuit-breaker flows form one group per DSCP (
conf/truth-3-rtp-sdp-jsep). RFC 6184 Table 6 / RFC 7798 Table 1 ("not usable (when present, SHOULD be ignored)"): the peer'ssprop-*of arecvonlysection, its receiver limits of asendonlyone, are left out of the remote format. RFC 8851 section 5: the rid's restrictions now drop frames asmaxFramerate/maxBitratedo (max-pps converted with the stream's frame size). RFC 8083 section 8: streams with different DSCP are not grouped. Rows RFC6184-8.2.2-14, RFC7798-7.2.2-18, RFC8851-5-2, RFC8083-8-3. - A STUN or TURN server on a Fetch bad port is not contacted (
conf/truth-3-rtp-sdp-jsep). W3C webrtc-pc 4.4.1.4 / 4.4.2: a server is a remote gathering source, and connections to the bad-port list are prohibited; the list applied to remote candidates only. Row WEBRTC-4.4.1.4-3. - A connectivity check from a Fetch bad port no longer makes a peer-reflexive candidate (
conf/truth-3-rtp-sdp-jsep). W3C webrtc-pc 4.4.2: "The UA MUST prohibit connections to addresses on the [Fetch] block bad port list". A check arriving from such a port taught the agent a peer-reflexive remote that it answered and checked; it is now refused, on top of the embedder's address policy. Row WEBRTC-4.4.2-64. - Two lite agents' updated offer no longer pairs a candidate on a Fetch bad port (
conf/truth-3-rtp-sdp-jsep). W3C webrtc-pc 4.4.2 prohibits connections to the bad-port list; thea=remote-candidatesupdate (RFC 8839 4.4.2.2) replaced the remote candidates without the check the other paths make. Row WEBRTC-4.4.2-64. - An offer with
voice_activity_detection: truehas comfort noise at each codec's clock rate (conf/truth-3-rtp-sdp-jsep). RFC 9429 section 5.2.3.2 asks CN "for each offered audio codec, as specified in [RFC3389], Section 5.1"; only the registered CN formats (CN/8000 by default) were offered, so a 16 kHz codec had none. Default codecs are unchanged (all their rates already have CN or have their own DTX). Row RFC9429-5.2.3.2-1. a=ptime:0is no longer written (conf/truth-3-rtp-sdp-jsep). RFC 3264 section 5.1: a ptime "MUST be greater than zero";MediaEngine::set_audio_packet_timewith 0 wrote one. A packet time of zero now states nothing, fora=ptimeanda=maxptime. Row RFC3264-5.1-13.- An mDNS name lost after a session's candidates are closed is not trickled (
conf/truth-3-rtp-sdp-jsep). RFC 8838 section 13 forbids conveying candidates after end-of-candidates or after a pair is nominated, but on an mDNS name conflict (RFC 6762 section 9) the agent renamed its candidates and the peer connection announced them again. Now the responder takes the new name, the session's candidates keep the one they were conveyed with, and the next ICE restart gives them the new name. Rows RFC8838-13-6, -13-8, -13-10. - New STUN/TURN servers or a new ICE policy while gathering before any local description give the first offer new ICE credentials (
conf/truth-3-rtp-sdp-jsep). RFC 9429 section 4.1.18 sets 'needs-ice-restart' "If an ICE gathering phase has already started or completed"; the bit required an applied local description, though gathering starts before one (the application's host candidates, the engine's server probes). Row RFC9429-4.1.18-3. - A mid-session
iceTransportPolicychange reaches every transport (conf/truth-3-rtp-sdp-jsep).set_configurationgave the new candidate types to the first transport's ICE agent only, while the new servers went to every transport: a section outside the BUNDLE group keptallunder a newrelaypolicy and could still expose host candidates (RFC 9429 section 3.5.3, W3C webrtc-pc 4.4.1.5). Rows RFC9429-3.5.3-1, -3.5.3-2, -8-2, WEBRTC-4.4.1.5-10. - Under
balanced, an answer rejects a section outside its media type's first group (conf/truth-3-rtp-sdp-jsep). RFC 9429 section 5.3.1 rejects a section when "The bundle policy is 'balanced', and this is not the first 'm=' section for this media type or in the same bundle group as the first 'm=' section for this media type". With a BUNDLE group in the offer, such a section got a transport of its own; it is now answered with port 0, as undermust-bundle.max-compatstill takes every section; an FEC session's section (RFC 5109 section 14, grouped bya=group:FEC-FR) is not one of its type for this rule (RFC9429-5.3.1-9). - A peer connection's close() sends its data and its SCTP ABORT before the DTLS close_notify again. The per-packet DTLS flush of the data transport (for RFC 9260 6.9's DF bit, this release) ran the DTLS handler's full
poll_write, which queues a requested close_notify and closes the DTLS endpoint, before the SCTP packets: the alert overtook them and they were lost (the remote saw no message written just before close() and no User-Initiated Abort). Queued records are now taken without that step until the last SCTP packet is through. - rtci-dtls, DTLS 1.3 (RFC 9846): a server could ask for post-handshake authentication after an external PSK handshake (section 4.4.2 forbids it); a second KeyUpdate could ask for an update before the peer's KeyUpdate arrived (section 4.7.3); a server_name with content in EncryptedExtensions was taken (section 4.3: data left over is a decode_error).
- rtci-dtls, DTLS 1.3: an authenticated Handshake or Alert record with empty content is refused with unexpected_message (RFC 8446 section 5.4); it was decode_error.
- rtci-dtls, DTLS 1.3: a handshake message whose fragments come under two epochs (it spans a key change) is refused with unexpected_message (RFC 8446 section 5.1); it was taken with the epoch of its last fragment.
- RFC 8841 section 10.2: an initial offer whose data section is TCP/DTLS/SCTP (every candidate a TCP one) now carries
a=connection:new, as the section requires. - rtci-dtls: a DTLS 1.2 server spent the session ticket a client presented while it read the ClientHello, so a second association presenting the same ticket before the first one's client Finished got a full handshake (RFC 5077 section 3.3: "The server MUST NOT assume that the client actually received the updated ticket until it successfully verifies the client's Finished message"). The ticket is now recorded as used once the client's Finished is verified, or when the association fails.
- The coverage job measures the whole of every file, and the clippy job lints every member (
conf/audit-14-cited-code-is-tested).grcov.ymlpassed--excl-start "#\[cfg\(test\)\]"(and--excl-br-start) with no stop, and grcov excludes from a start marker to the end of the file when no stop follows: everything after a file's first#[cfg(test)]was left out (173 production files reported no lines at all, 182 more stopped at their first test module, about 150,000 lines). Now the test files (*_test.rs,tests/) are ignored and an inline test module (mod tests {,mod test {,mod <name>_tests {...) is excluded from its first line to its closing brace in column 0; the coverage figures change accordingly (the files they omitted are mostly the large state machines).cargo.yml's clippy step was a barecargo clippy, which in this workspace (nodefault-members) lints thertcipackage alone; it iscargo clippy --workspacenow. Warnings still do not fail it. SessionDescription::marshal_byteswrites a description in the character set it names (conf/fuzz-3-corpora-oracles-regressions; RFC 8866 section 6.10; audit rows RFC8866-6.10-1, 6.10-2).unmarshaldecodes the bytes it reads bya=charset(ISO-8859-1, US-ASCII, an unsupported set as octets) butmarshalreturns UTF-8 text, so the bytes ofmarshalfor a description that names another set were read back with every character above 127 turned into two (found by thedescription_roundtripfuzz target on train 38).marshal_bytesis the inverse ofunmarshal's decoding and refuses a character the named set cannot hold. Additive API;marshalis unchanged.- Transport-wide feedback: a message too full for the next packet ends with its last received packet (
conf/wrap-1-feedback-edges-and-wrap-soaks; audit row TWCC-3.1.5-6). The size of a message was checked after the "not received" run in front of a packet had been added (the estimate's term for that run was computed afterwards and was always 0), so a packet refused for size left the run in the message, where the next message reported it again, and a run of more than 8191 could take the message pastMAX_FEEDBACK_OCTETSby a few chunks. The size is now estimated with the chunks the run takes before anything is added (libwebrtcTransportFeedbackRespectsMaxSize). Feedback on the wire changes only in that case. Test:rtci-interceptor/src/twcc/recorder_test.rs::a_full_message_ends_with_its_last_received_packet. - TWCC status chunks refuse what their fields cannot hold (audit rows TWCC-3.1.3-1, TWCC-3.1.4-1).
RunLengthChunkmarshalled a run longer than 8191 as its low 13 bits (8192 went out as a run of 0) and a one-bitStatusVectorChunkmarshalled a large delta as "not received", leaving its two delta octets to shift every later delta at the reader; both now returnError::InvalidSizeOrStartIndex. The engine's builder never made either. Tests:rtci-rtcp/src/transport_feedbacks/transport_layer_cc/chunk_limits_test.rs. - RFC 8888: a packet from before a stream's first packet, across the wrap, is not that packet (audit row RFC8888-3.1-21). With the first packet numbered 0, a late 65535 was clamped to 0 by the sequence extender and recorded as a second copy of packet 0, so an ECN-CE mark on it was reported for packet 0. It is now dropped, as every packet below the first is. Test:
rtci-interceptor/src/rfc8888/stream_log.rs::a_packet_from_before_the_first_across_the_wrap_is_not_taken_for_it. - A FORWARD TSN for a stream the receiver has not seen yet is no longer lost (
conf/sctp-33-peer-misbehaviour-tests; RFC 3758 3.6, RFC 8260 2.3.1; audit rows RFC3758-3.6-7, RFC8260-2.3.1-5). rtci-sctp applied a FORWARD TSN's (or I-FORWARD-TSN's) stream entries only to streams it held: an ordered stream whose first message was abandoned before any of it arrived (a negotiated data channel with maxRetransmits 0 losing its first message) forgot the skipped SSN, and its next message waited for it for good. The skipped SSN (MID) is kept for such a stream, within the negotiated inbound stream count, and the stream starts after it when created; a stream reset voids it. - Malformed Gap Ack Blocks no longer abort or skew Fast Recovery (
conf/sctp-33-peer-misbehaviour-tests; RFC 9260 3.3.4, 7.2.4, 12.4; audit rows RFC9260-3.3.4-3, 7.2.4-3, 12.4-4). A block at offset 0 (the Cumulative TSN Ack itself, a TSN that was sent) aborted the association as if it acknowledged a TSN never sent; a reversed block (Start past End) covers no TSN, but its End counted as the highest TSN reported, so in Fast Recovery it counted misses up to it, and an End past the last TSN sent aborted. Both are now taken as the SACK without them. - SFrame: no copy of a key's salt is freed unerased (
conf/must-3-last-open-rows; found by the newrtci-sframe/tests/key_erasure.rs, which failed on CI at 980a587c: one freed block per session with the ring provider, for every suite).SFrameContextkept each key's context (the keyed AEAD and the 12-byte salt, inline) by value in aHashMap; removing a key, or the map growing, moves the value out bitwise and leaves its bytes in the table, which is freed without erasure. Key contexts are now boxed (the map moves a pointer), and each is derived and built over stack overwritten before and after (crypto::scrub_stack,on_erased_stack), so the unwritten bytes of the new value carry nothing from the key derivation's dead frames. - Audio redundancy is taken out of the target the application encodes at (
conf/should-7-congestion-and-fec; RFC 8854 section 8: "the total amount of data must remain within any bandwidth limits indicated by congestion control"). The RED interceptor lowers eachTargetBitrateChangedon its way to the application (and soRTCRtpSender::target_bitrates) by the rate of the redundancy it sent in the last second, to half the target at most. Before, RED (about 62 kbit/s for 20 ms Opus at 60 kbit/s) came on top of the media the target was sized for; with the loss rule on it doubled the audio just as a capacity collapse caused loss, and the video backlog grew in the pacer (capacity instrument run 46273764799). Streams not sent in RED are unchanged. - The stability stretch of the feedback interval snaps back on time and sees a building queue (opt-in, RFC8836-2-8c): a report scheduled at the stretched interval is brought forward as soon as the path stops reading stable, and frame starts waiting 20 ms or more above the lowest transit seen (
STABLE_FEEDBACK_QUEUE) are not an equilibrium. Before, the 1000 ms queue cell of the capacity instrument lost audio for over a second in 64 % of calls with the stretch on, against 29 % without (run 46273767959). - The ring provider's RSA signing keys are erased when dropped (
conf/must-4-key-erasure-scope). ring 0.17.14 frees an RSA key pair's private primes, CRT exponents andqInv(and the intermediates of a private-key operation) without overwriting them. The workspace now usesrtci-ring0.17.14 (https://github.com/Brainwires/rtci-ring), rtci's fork of ring 0.17.14 whose only code change is aDropfor those allocations (library name stillring; ownlinkskey and C symbol prefix, so it links beside upstream ring, which rustls and rcgen keep using). New testring_key_object_erasure.rs::ring_rsa_signing_key_limbs_are_erased_when_dropped. RTCCertificate::from_key_pairno longer frees a plain copy of the private key (conf/must-4-key-erasure-scope): the PKCS#8 bytes it takes from thercgen::KeyPairto import the key are held inZeroizingand overwritten before they are freed. (rcgen's own copy inside theKeyPairis rcgen's, freed unerased when the pair is dropped: docs/key-erasure.md.)- The FEC encoders' target reservation no longer pauses the application for FEC that will not be sent, and gives the room back (
conf/fec-19-flexfec-offered-by-default; RFC 8627 section 8 with RFC 8854 section 8). Since fec-18 the target reaching the application was lowered by the FEC the loss asked for, computed on the protected source of the last second. At a capacity collapse that was the old, high rate: the target went to zero and the source paused (1.7 s in the capacity instrument's pacer-less 100 ms-queue cell with FlexFEC, 11.7 s with FlexFEC and RTX both, where the controller's estimate then stayed flat and nothing announced the target again; timeline run 46322346624). Now: nothing is reserved while every protected stream is left to retransmission within the latency budget (RTX, or FlexFEC retransmissions; the encoder says so); the FEC asked for is that of a source at most the target; and a reservation that goes is announced on the next inbound packet, as a lowering is. Chains whose FEC is sent (the round trip above the budget, or a stream without retransmission) keep the RFC 8627 section 8 rule. Two more from the same timeline (the default chain's open-link climb): before the first receiver report the encoder sent its configured amount (two FlexFEC repair packets, 2472 octets) on a stream retransmission can repair, and the application's target was the start rate less 19.8 kbit/s; now such a stream gets no FEC before a report tells the loss (section 8: "only the amount of FEC needed to protect against the observed packet loss"; a stream without retransmission, or no latency budget, keeps the configured amount). And a reservation smaller than the re-announcement step (1 % of the target) was never given back while the controller's target stood still: the open link ended at 2480 kbit/s, not the 2500 maximum; a reservation that falls to nothing now always announces the whole target. - A FlexFEC retransmission leaves with the packet as it was sent (
conf/fec-19-flexfec-offered-by-default; RFC 8627 section 4.2.2.3). The NACK responder makes a FlexFEC retransmission (R=1) from its buffer, above the TWCC sender that writes the transport-wide sequence number into each departing packet, so the retransmission carried an image without that header extension, while the repair packets protect the packet that left. A receiver XORs repair packets with a retransmitted packet as with any source packet it holds: with probe clusters filled with FlexFEC repair packets, a lost packet rebuilt beside a retransmitted one came out corrupt and reached the application (an SFrame-protected call failed authentication on it; diagnostic run 46341015789: the call passed with probe fill off, or with R=1 off). The FlexFEC wire image tap, below every extension writer, now keeps the wire images of the streams repaired by FlexFEC retransmission and puts the image into each retransmission that passes it (WireImages::retransmit_on); a retransmission is again usable for rebuilding at any conformant receiver.
Documentation
- Audit: two stale
n/anotes re-judged (conf/truth-1-ice-turn). RFC8656-7.1-2 (pick UDP to the TURN server unless there is a reason) istested: the engine runs the TURN client and reaches aturn:server over UDP unless the configured URL names another transport. RFC8489-9.1.3-9 (no integrity attribute or USERNAME in the error response to a failed check) istested: the ICE agent does send those 400 / 401 responses, and the test now checks all three attributes are absent. - Audit: the ICE / STUN / TURN rows re-judged against the engine as it is (
conf/truth-1-ice-turn). About 60 rows ofrfc8445.md,rfc8489.md,rfc8656.md,rfc6544.md,rfc8305.md,rfc8828.md,rfc8839.md,rfc7675.md,rfc7983.mdandrfc9443.mdweren/abecause "the application gathers / runs TURN / owns the sockets", ortestedby a test narrower than the clause. The engine gathers server-reflexive and relayed candidates itself, runs the STUN and TURN clients, resolves names, runs (D)TLS toturns:servers, owns its ICE-TCP connections and marks DSCP, so those rows now carry the verdict the code earns: several areviolated(the engine's own candidates share one local preference; checks go out unmarked while media is marked; a TURN channel is bound at the first check; an alternate server's certificate is checked against the original host), othersmissing,partialoruntesteduntil a mutation-checked test exists. The header ofrfc8828.mdno longer says the engine sends no STUN or TURN request. Rows whose behaviour was already there (TURN permissions and their refresh, SRV and dual-stack resolution, the TURN (D)TLS ClientHello, the magic-cookie check on the DTLS path, rejected and added sections' own transports, the default candidate) aretestedwith mutation branchesmut/truth-1-*. - Audit (truth-4): the SCTP rows (43 of RFC 9260 and RFC 6525 judged from their note) were checked; every reason holds (single-homed over DTLS, RFC 8261 6.1) and eight notes were made exact. Of the 56 ICE / STUN / TURN / mDNS rows, five reasons were false:
RFC8489-6.2.2-6(an ICE-TCP passive candidate answers only on connections it accepted, new test),RFC7350-4-6(cookie-less STUN over DTLS is refused),RFC8421-3-2andRFC8421-5-3(application ranks of unreliable interfaces exist) are nowtested;RFC8489-16-1names RFC 8489 9.2.5 as the client's form of RFC 7616 section 5. RULES.md: thesettingverdict takes the grounds of its "Grounds for a default that is not the RFC text" section (libwebrtc source among them). - Audit (truth-4): the 130 SDP and offer/answer rows marked
n/athat an earlier sweep judged from their note alone were checked against the code. Five reasons were false.RFC8866-4.1-1("JSEP writes port 9 and 0.0.0.0") andRFC8827-9.2-1(the privacy-preserving CNAME) aretested: the engine writes the default candidate and generates the CNAME itself.RFC8842-3.1-4(the engine asks for a new DTLS association by offer/answer when an SRTP key nears its lifetime) andRFC8839-5.6-2(ice2is used only when the peer lists it) areuntesteduntil their mutations run.RFC7714-7.2-1isviolated: bandwidth probing pads probe clusters with padding-only RTX packets under the default AEAD_AES_256_GCM profile. - Audit (truth-5): the
n/arows of the media group that the first sweep judged from their note alone were checked against the code. Ten had a reason that is false today and now carry their true verdict:RFC8108-5.4.1-2isviolated(the TMMBN goes from the first local SSRC, not from the one the TMMBR named),RFC8108-5.4.1-4andRFC6679-7.2.1-11arepartial(the engine's own TMMBR source SSRC can change between setting and lifting a limit; after the ECN fallback for a second CNAME the full group procedure is missing),RFC8285-7-13,RFC6904-4.1-3,RFC6904-5-2,RFC8108-5.4.2-3andRFC4588-4-5areuntested,RFC7160-4.2-1issetting(RTCP goes off withb=RS:0andb=RR:0) andRFC7587-8-1istested. The notes of 23 rows that stayn/anow give their true reason. Then the sevenuntested,violatedandpartialrows were given tests (each with a mutation branchmut/truth-5-*) and aretested; the RFC 8108 and RFC 6679 defects are fixed (see Fixed).RFC5104-4.2.1.2-8and-4.2.2.2-3weretestedfor one sending stream only (one bounding set for every local SSRC); fixed andtestedagain. The W3C group's n/a rows (71) were checked the same way:WEBRTC-5.2-6(audio sent for a disabled track) andWEBRTC-5.2-35(replace_trackafter close) were wronglyn/aand are nowtested; 13 more notes give their true reason. - Audit rows re-judged (truth-3, stage 6): WEBRTC-5.1-25 stays
n/awith its true reason (the webrtc-pc dictionary has no read-only member besidesrid; the engine'sssrc/rtx/fecare its own API); RFC9429-5.2.2-12 and -5.2.2-19 keeptestedwith tests as wide as the clauses (every candidate of each section's transport; the whole format order of the last answer, new formats after); RFC9429-5.7-7 re-judged from the texts and closed with the fixes above (rollback of a local offer discards its STUN and TURN gathering). - Audit: undecided rows of the RTP / SDP / mDNS area decided (
conf/truth-3-rtp-sdp-jsep): RFC9429-5.2.2-7 (relay-first default tested), MDNSICE-3.1.2.4-4 (a CI test of the local description), RFC6762-8.4-2 and RFC8853-5.2-12 (n/awith true reasons). RFC3611-4.7.1-1 re-markedpartial(XR's discard rate ignores the engine's opt-in jitter buffers) and RFC3611-4.7.1-2untested; both open. - Audit: SDP / BUNDLE / imageattr / gathering rows tested (
conf/truth-3-rtp-sdp-jsep): RFC8858-4.2-3, RFC8859-A-12, RFC9143-7.1.2-1, -7.2.1-1, -9.3.1.1-3, RFC9429-3.6.2-3..6, -5.2.2-13, -5.9-3, WEBRTC-4.4.1.5-12, WEBRTC-5.6-4..7 (untestedtotested, each with a test that exercises the engine's own behaviour and, for a MUST, a mutation).RTCRtpSender::send_resolutiondocuments that it takes the unrotated resolution. - Audit (truth-3, RTP / RTCP / SDP / JSEP / mDNS / W3C rows): the rows
handoff/na-rows-check.mdfound markedn/afor reasons no longer true, ortestedon a test narrower than the clause, are re-marked to what the code does today. The engine writesa=rtcp,a=ptime,b=, bundle-only sections, MID/RID SDES items and audio RED itself, works out the send resolution from imageattr, drops frames overmax-fs/max-fr, allocates bitrate across encodings, and gathers server candidates itself, so those rows bind it. Defects found this way areviolatedorpartialuntil fixed (RFC9429-5.3.1-9, RFC9429-3.5.3-2, RFC8838-13-6/-8/-10, RFC3551-2-7 among them). Rows whose behaviour lives only inrtci-video(encoders, decoders, scaler, playout timing) aren/a:rtci-videois not part of the published engine; the six rows that weretestedon its tests alone (RFC7742-6-2, RFC3550-5.1-13, RFC4585-6.3.1.1-2, RFC5104-4.3.1.2-4, RFC8834-5.1.4-1, and RFC4588-6.3-2, now judged on the published NACK generator) are re-judged on the published crates. - Audit (truth-2): RFC 9846 delta pass on
rfc8446.md(header lists what was checked): 15RFC9846-*rows for its new requirements, ten rows' notes;draft-work.mdrow 33,spec-issues.mdrow 37 (legacy_version: abort against "ignore"). - Audit (truth-2, third agent):
testedfrom mutation runs 46425817804 and 46427462198: RFC8446-4.2.1-12, RFC9846-4.2.2-1, -4.2.3-1, -4.3-1, -4.3-2, -4.3.7-1, -4.3.8-1, -4.4.2-1 (and -6.1-3's mutation confirmed). Two tests of the delta failed at the head and are fixed:a_close_notify_is_sent_at_level_warningclosed a server whose HelloRetryRequest is stateless (no association, no alert) and now has the peer read the close_notify of an established association;no_second_update_request_before_the_peers_key_updatequeued its KeyUpdate where nothing sent it and now goes throughEndpoint::update_keys. RFC9260-6.9-7's test read the DF bit and first byte of other datagrams than the sizes it checked (one index into records of different lengths), which failed its DTLS 1.3 half; the implementation was right. Run 46431104564 confirmed the three remaining pairs: RFC9260-6.9-7, RFC9846-4.7.3-1 and RFC9846-6.1-1 aretested, and no MUST row of the audit is open.a_dtls_1_2_client_refuses_a_sha1_signed_certificate_where_the_chain_is_validatednow has the client list rsa_pkcs1_sha1: without it the DTLS 1.2 server, which sends only a chain signed with a pair the client listed (RFC 5246 7.4.2), refused before any ServerHello and the client's chain check was never reached. - Audit (truth-2, takeover): RFC8446-C.3-1 is
setting(with_deterministic_ecdsa, featureecdsa-rfc6979; mutation confirmed by run 46422217473); RFC8446-D.2-3 istested(same run): the clause asks for RFC 6979 itself; ring, AWS-LC and BoringSSL hedge the ECDSA nonce (private key and digest mixed with fresh randomness), the default. RFC9653-5.2-6 keepsn/awith the true reason (SCTP over DTLS, the one method used, has no method-specific constraints). RFC8446-D.1-1 re-read and kept. RFC9260-7.2.5.1-2, RFC8841-9.5-1 and -10.2-3 aretested(CI run 46413549743). RFC8446-4.1.2-4/-5, -4.2.2-4, -4.2.3-16, -4.4.2.1-2/-3, -5.1-5 to -5.1-7, -5.4-3, -B.3.1.4-1, -D.1-3, -D.2-1, -D.2-2 and RFC9260-6.1-11 aretested(CI run 46418160485). RFC8446-D.2-3's test now also sends a fragmented ClientHello: its first mutation, in the association's path, survived because the test reached only the endpoint's. - Audit (truth-2, sweep): every other
n/aMUST / SHOULD row of rfc8446.md, rfc9147.md and rfc6347.md read against the code. False reasons fixed by code (5.4-3, 5.1-6, 4.4.2.3-2, 4.2.4-1, D-4, D-5), by tests with mutation branches (4.1.2-4/-5, 4.2.2-4, 4.4.2.1-2/-3, 5.1-5, 5.1-7, B.3.1.4-1, D.1-3, D.2-1 to D.2-3) or by a corrected reason. RFC8446-C.3-1 (deterministic ECDSA) ismissing: neither crypto provider signs by RFC 6979. - Audit (truth-2, second part): RFC9260-6.1-11, -6.2-13, -6.9-4, -6.9-9, -7.2.5.1-2, RFC7627-5.4-3, RFC8446-4.2.5-2 to -4 and RFC8841-9.5-1 cite their tests, with mutation branches awaiting CI; RFC9147-4.4-2, -4.4-8, RFC6347-4.1.1.1-1, RFC8261-5-9, RFC3758-3.6-10 and RFC8841-12.2-4 are
tested. RFC9260-6.9-7 ispartial: SCTP never re-fragments, but under path MTU discovery the engine asks DF for its DTLS datagrams, so a fragment made before a reduction is not IP-fragmented. RFC8841-10.3-7 and -10.4-1 stayn/awith the true reason (TCP-based ICE, RFC 6544). - Audit (truth-2): about 40 rows of the DTLS, TLS 1.3, DTLS-SRTP and SCTP tables were
n/afor reasons no longer true (no session resumption, no 0-RTT, oid_filters ignored, sans-I/O for DF, DSCP and PMTUD, fragmentation always on, SACK never bundled, ...). They now carry their true verdicts:RFC8446-D.2-5andRFC5077-3.3-8violated;RFC8261-5-7,RFC6347-4.1.1.1-7,RFC9147-4.4-9andRFC8841-10.2-3missing;RFC8446-4.2.3-16,-4.4.2.2-8,-E.1.4-1,-E.1.4-2,-D.5-1andRFC8841-12.2-4partial; the implemented MUST rowsuntesteduntil their mutation is recorded;RFC8446-4.1.2-7,RFC9147-5.3-2,RFC8446-7.5-5and-7.5-8tested. Rows that stayn/ahave their reason corrected (RFC8446-7.5-2,-7.5-6,-7.5-9,-4.2.5-1,-4.2.5-6,-4.2.5-7).RFC5764-5.2-2to-5.2-6,-4.1-4and-9-1stayn/awith the reason read from the text: a new DTLS association is not section 5.2's rehandshake, RFC 8827 forbids the MKI, the TLS stack (rustls, for TURN) has no use_srtp. - Audit: eight rows about the ICE candidate pool and about options not taken were recorded as
n/afor reasons that are not true of this engine.WEBRTC-4.4.1.5-11(the pool size followsiceCandidatePoolSize) said "application gathers; no pool"; the engine gathers server-reflexive and relayed candidates itself. The row is nowtestedfor what the step requires (the size is set and read back) and its note says that the engine keeps no pool and pre-gathers nothing, which no requirement keyword of W3C webrtc-pc 4.4.1.5 or RFC 9429 3.5.4 / 4.1.1 / 4.1.18 asks for. The notes ofWEBRTC-4.2.1-10,RFC9429-3.5.4-1,RFC9429-3.5.4-2andRFC9429-4.1.1-2say the same. Six MAY rows whose option is simply not implemented (RFC6679-7.1-5,RFC8446-4.2-2,RFC8656-12-7,RFC8859-14-1,RFC9147-5.1-9,RFC9260-6.1-1) aremissing, as the rules require, no longern/a. AgentConfig::insecure_skip_verifyis deprecated; thepemand rtci-turnmetricsfeatures are documented as the no-ops they are (conf/audit-14-cited-code-is-tested). The ICE agent storedinsecure_skip_verifyand never read it (it opens no TURN connection); its doc promised that self-signed TURN servers would be accepted. It is#[deprecated]with a doc that names what does configure it:SettingEngineBuilder::with_turn_tls(TurnTlsConfigroots or verifier) for the engine'sturns:connections over TLS and DTLS. Nothing else changes (the field stays: SemVer). README said thepemfeature controls PEM certificate import; PEM import and export are always built (RTCCertificate::from_pem, rtci-dtlsCertificate::from_pem), and README and the manifest now say the feature is kept for compatibility only. rtci-turn'smetricsfeature gates nothing either; its manifest says so.- Every default that is not the RFC text states its ground, in a fixed order (
conf/docs-6-departures-grounds).docs/conformance/audit/RULES.mdgains "Grounds for a default that is not the RFC text": the standards bodies' current work first, then libwebrtc as shipped in Chrome (then Firefox and WebKit), then a recorded measurement; who decided and when is provenance, never the ground, and a default none of the three supports is called a choice of rtci's default profile.docs/conformance.md"Standing departures from a MUST" and "... from a SHOULD" are rewritten on it: per entry the ground (a defect or self-contradiction in the RFC text, quoted with its arithmetic; libwebrtc's behaviour with file, function and revision, re-read at c048ba6a; the measurement), what a peer can observe, the errata and drafts (none found for RFC 6184 7.2.2, RFC 9429 5.3.1, RFC 8083 3 or RFC 5764 3, re-checked 2026-11-29) and the setting /StrictRfcform. libwebrtc has no H.264 interleaved mode and no RTP circuit breaker, so the PDON and packet-size defaults are now said to be choices of rtci's default profile. README, FORK.md,docs/behaviour-profiles.md(and its generator's README check, which no longer needs "by the owner's decision"), the draft-work and spec-issues registers, the audit notes and the rustdoc ofset_h264_literal_pdonand the H.264 de-interleaving buffer drop "owner decision" as a reason. Corrections found on the way: the "Not implemented, on purpose" row for RFC 8842 5.1, 5.2 and 5.5 is removed (all three are implemented andtested); the SHOULD section no longer saysStrictRfcleaves RFC 5764 3 off (it turns it on); RFC9429-5.2.1-13 no longer says Chrome writes one ICE credential pair per session (libwebrtc draws one per transport); draft-work row 15 records that RFC 9429 5.11's refusal is the default since jsep-94; thenack_retransmission_rate_limitprofile note names the current default, WithinTarget. No behaviour changes. - What other implementations do, read in their source, for four opted-out SHOULD rows (
conf/audit-13-precedent-of-other-implementations): GCC-5.5-15 (libwebrtc updates the delay-based estimate per transport feedback, at the 5% / 50 to 250 ms interval of the default here; pion's TWCC receiver reports every 100 ms; aiortc's REMB estimator at most every 500 ms), MDNSICE-3.2.1-4 (Chrome, Firefox and pion never set the QU bit, and Chrome's responder drops a query that does), RFC8858-4.5-1 (neither Chrome nor Firefox writes or readsa=rtcp-mux-only), RFC9429-4.1.1-4 (both browsers honourmax-bundle, Firefox asmust-bundle; both still acceptrtcpMuxPolicy: "negotiate"). No verdict changes. Behaviour profile rowmdns.unicast-response: the Chrome valuefalseis nowSource(chromium/src8dafa8bc), was unverified. - Audit (
conf/should-6-mdns-and-misc): WEBRTC-4.9.2-5 isn/a(the keying material of W3C 4.9.2 is the certificate's private key; where it is stored is neither an algorithm step nor API-observable, and a module safe from the process's own memory is a platform facility; the engine signs throughSigningKeywithout holding the key). RFC8842-5.5-3 stayspartial(its note says what would close it, and that the text is a NOTE without an RFC 2119 keyword). - Audit rules:
conflictcovers two clauses of one specification (conf/must-3-last-open-rows; RULES.md amended 2026-11-29, under the contradiction rule of 2026-11-27). Four conditions: the contradiction is a spec-issues.md row quoting both clauses; both forms are implemented and mutation-tested; the governing form is the contradiction rule's, with its evidence cited (absent a Verified erratum, a MUST outranks a SHOULD or MAY of the same section, unless draft work says otherwise; a Reported erratum alone does not set that aside); the other form is a named setting.scripts/audit-count.py --checkrequires the spec-issues row andEvidence:for such a row (unit tests inscripts/test_audit_count.py). First use: RFC6347-4.2.1-3. - RFC8834-12.1.3-1 (MAY, differentiated treatment of RTP streams)
missing->tested(conf/should-7-congestion-and-fec): the note was stale. The encodings' priorities divide the target and the pacer's rate (repair streams with their source), and every datagram carries its RFC 8837 codepoint (RTCPeerConnection::dscp,traffic_class); tests already existed. - Documentation defects of the 0.4.0 release fixed (
conf/docs-5-released-doc-defects; no behaviour change). The README links docs.rs (rtci,rtci-<crate>) and the documentation site https://rtci.dev instead of "docs.rs once published", and no longer lists I-DATA as not implemented;rtci-sctp's README says RFC 8260 user message interleaving is implemented (as FORK.md, the behaviour profiles and audit row RFC8835-3.5-3 already did).docs/conformance.md: one D1 (ULPFEC) row, with audio RED on by default; the duplicated rows of "Not implemented, on purpose" and of the fragment table removed, the stale ones kept as one correct row each (RFC 6062 TCP allocations and relayed TCP candidates, MKI, RFC 8627 FlexFEC, SVC andscalabilityMode, the SFrame payload format);conformance/w4.md's "Not implemented" no longer lists the separate FEC session,scalabilityMode, the DTMF sender or audio RED. AuditRULES.md: thesettingverdict defined once (the later definition, which includes "measured").scripts/open-must.pywrites "0 rows." and "1 row" (OPEN-MUST.md regenerated). Performance ledger: bench-3, pacer-4, bench-2 and zeroize-3, all in 0.4.0, aremaster, notqueued. The docs.rs links inrtci-datachannel's README, in the crate documentation of twelve crates and in the signal example pointed at upstream's crates' pages, not rtci's. The perfect-negotiation and data-channels-flow-control example READMEs follow the examples' code; two dead links in example READMEs fixed. The workspaceauthorsis "The rtci authors" (was upstream's author and e-mail); README and FORK.md credit webrtc-rs/rtc and its original authors, and the licence files' copyright lines are unchanged.
Testing
- rtci-video's capacity-cap call: no pause at a flush, a later one allowed (
conf/fix-38-video-pause).video_keeps_playing_through_a_capacity_cap_that_comes_and_goesasserted no pause in the whole call; the pacer's rule is that a collapse flushes and does not pause, while the queue the key frame and the frames after it fill "is a pause, not a collapse, and is delivered". Since the SDES stream identifiers go in every third report (RFC 3551 section 2, audit row RFC3551-2-7) the reports come more often and this seed pauses at 21.80 s, a second after its second flush (run 46484093706; without that change, none). The test now asserts that no pause is in force at a flush or begins within 100 ms of one; its other checks are unchanged. - Bad-port tests that can fail (
conf/truth-3-rtp-sdp-jsep): the peer-reflexive bad-port test took 5061 (on the Fetch list) as an allowed port and failed at the head; the lite-update test could pass on an empty pair list and did not catch its mutation. It now pairs a candidate on an allowed port first. Row WEBRTC-4.4.2-64 (mutations re-made). The RED audio-level test set the levels on the RED packet after the sender built it (now on the primary: RFC6464-3-7); the reduced-size ECN test always had a report take the "loss" back (now also seven seconds of ECN feedback alone: RFC8083-5-4). - Audit rows whose cited code no test called (
conf/audit-14-cited-code-is-tested). RFC8834-7.1-1 citedconfigure_circuit_breakeras the way the default chain installs the RTP circuit breaker; the default chain builds its own (one breaker per transport inregister_default_interceptors_with_options) andconfigure_circuit_breakeris the public helper for a hand-assembled chain that nothing called. The row now cites the default chain's breaker and the peer-connection test that shows it ceasing a flow far above the TCP rate, and the helper has a test of its own through two peer connections (the_breaker_configure_circuit_breaker_installs_ceases_a_flow_nothing_reports_on: the RTCP timeout breaker). Its doc now says what that test run showed: in a chain whose RTCP session is wire-ward of it, the helper's breaker has no round trip time unless one is handed to its handle (report_round_trip_time, or a congestion controller given the handle), and without one its congestion breaker cannot trip. RFC8445-7.2.5.2.2-1 and RFC6544-7.1-4 citedRTCPeerConnection::handle_ice_transport_error, which only the agent-level tests reached:tests/ice_transport_error_reports.rsreports a hard ICMP error for a check in flight between two peer connections (the pair fails, ICE connects over the other, a valid pair is not failed) and a TCP connection that could not be established for an application's active candidate (the pair fails at once, the other pair is still checked). Each new test has a mutation branch that fails it. No behaviour change. - Feedback edge tests and wraparound soaks (
conf/wrap-1-feedback-edges-and-wrap-soaks, test audit packages 9 and 12). TWCC builder and codec: the longest and shortest runs, one- to two-bit vector splits, 250 us aliasing, the delta limits, messages across the sequence wrap, backward wraps, reordering across the wrap, jumps of half the sequence space, the feedback packet count and reference time wraps, padding without the P bit; RFC 8888: begin_seq across the wrap with a split and the 16384-report cap after a jump. Each libwebrtc RTCP feedback, arrival-map, feedback-generator and feedback-adapter test is accounted for in the new ledgerdocs/conformance/libwebrtc-feedback-parity.md(have / added / n-a). Soaks, deterministic and in virtual time: SCTP TSNs across 2^32 with the SSN or (I-DATA) MID wrapping under loss and PR-SCTP abandonment; SRTP across five ROC boundaries (packet indexes 2^16 and 2^32 among them) with late packets from the previous ROC and replays at the boundary, SRTCP across its 2^31 index wrap; TWCC across 0xFFFF four times through recorder, wire and history; abs-send-time across its 64 s wrap; reception statistics across 18 sequence cycles and the RTP timestamp's 2^31 and 2^32 edges; round trips across the NTP middle-32 wrap. No default change. - Fuzzing has seed corpora, round-trip oracles and replayed regressions (
conf/fuzz-3-corpora-oracles-regressions; test audit package 6). Committed seed corpora (<crate>/fuzz/corpus/<target>/, 3178 inputs, 0.9 MB) from libwebrtc's fuzzer corpora (its Firefox / Opera SDP seeds left out), usrsctp, pion stun / rtcp / dtls / turn, aiortc, aioice, coturn and the tree's own vectors; sources, commits and licences infuzz/corpus/README.md, licence texts infuzz/corpus/LICENSES/. New oracles beyond "no panic": STUN, RTP, SCTP (packets and chunks) and DTLS 1.2 (records and handshake messages) parse, write and read back to the same value, write as a fixed point, and write the sizes they declare; the RTCP and SDP round trips gained per-packet size and value checks. New targets:rtci-stunmessage_roundtrip,rtci-rtpheader_roundtrip,rtci-sctppacket_roundtrip/chunks_roundtrip,rtci-dtlsrecord_roundtrip/handshake_roundtrip. The oracles live in each crate'sfuzz_oraclesmodule (cfg(fuzzing)or the crate's tests only; not API), andsrc/fuzz_regressions_test.rsreplays every file infuzz/regressions/<target>/through them in the ordinary test job (upstream crash cases from usrsctp, libwebrtc, pion seeded there). The Fuzz workflow runs the round-trip parser targets on pull requests (60 s each; they ran on dispatch only), starts every target from its corpus and regressions, and takes along_minutesdispatch input;scripts/check-fuzz-registry.pychecks the new lists and that every regression directory is replayed. - The test audit's weak and hollow tests strengthened, and a mutation-testing gate (
conf/mut-1-weak-tests-and-mutation-gate; no code or default change). The 19 tests the audit (section C2) found weak now assert what their rows claim: literal wire values instead of round trips (STUN message type with the Indication, SR, TSTN), the error variant and each profile's written-out length (SRTP keying material, GCM included), payload offsets and field values (VP8), the bad_certificate alert on the wire (RFC 8122), decoded keepalives, the answer's MESSAGE-INTEGRITY and unauthenticated responses that grant no consent (ICE), the NONCE limit at 127/128 characters, the TWCC report's fields, a lower bound on the RTCP share, PPID 50 as a number, a stream the stats selector must leave out, nothing sent before DTLS, and one test per refusal for the five DTLS 1.3 client-authentication rows (RFC 8446 4.3.2, 4.4.2, 4.4.3) one happy-path test used to carry. Each has a mutation it must catch (mut/mut-1-1tomut/mut-1-9,scripts/dev/mut-1-bundle.sh). Three citations that backed a row with a test of something else were dropped (RFC4585-3.5.2-5, RFC8832-6-5) or joined by the right one (RFC5764-4.1.2-5, RFC8489-9.1.3-7)..github/workflows/mutants.yml(dispatch only: crate, optional file glob, timeout) runs cargo-mutants 27.1.0 on one crate and reports caught / missed / timeout / unviable with the missed mutants (scripts/mutants-summary.py);.cargo/mutants.tomlleaves out tests, vectors, harnesses andDebug/Display. How to run and triage it:docs/mutation-testing.md. RULES.md: a new or re-judgedtestedMUST row records its mutation evidence.
- SCTP peer-misbehaviour tests (
conf/sctp-33-peer-misbehaviour-tests, test audit package 5): SACK validation (Gap Ack Blocks out of order, overlapping, reversed, at offset 0, at and past the last TSN sent; a Cumulative TSN Ack behind the ack point or past the last TSN sent; a flood of duplicate TSNs), INIT and COOKIE ECHO retransmitted up to Max.Init.Retransmits with the RTO backed off to RTO.Max (closes theTestAssocT1CookieTimerTODO; re-judges RFC9260-4-6, which cited an INIT-only test), the ETSI TS 102 369 purposes the audit found without a test (as-i-1-3-2, imh-i-3-2, dm-o-4-7-2, bdc-i-7-3, bdc-v-7-8, plus at-i-2-7-1/3, imh-i-3-9, fh-i-5-1-2), a forged HEARTBEAT ACK, a peer SHUTDOWN with lost partially reliable DATA, malformed and stale FORWARD TSN / I-FORWARD-TSN chunks. A ledger of the ETSI suite's 121 test purposes:docs/external-suites/etsi-ts-102-369.md. - Wycheproof for every provider, static-vector completeness, a vector registry (
conf/vec-1-wycheproof-and-vector-registry):- 25 C2SP/wycheproof
testvectors_v1files (Apache-2.0, commit 65ca4947, 6,998 cases, unmodified underrtci-crypto/tests/vectors/wycheproof/, excluded from the published package) run throughRTCCryptofor ring and aws-lc-rs (rtci-crypto/tests/wycheproof.rs): AES-GCM, ChaCha20-Poly1305, AES-CCM, AES-256-CBC, HMAC-SHA1/256/384/512, HKDF-SHA256/384/512, ECDH P-256 / P-384 and X25519 (the public-key verdict: the trait has no private-key import), ECDSA P-256 / P-384, Ed25519, RSA PKCS#1 v1.5 (the provider and the engine's no-parameters fallback) and RSA-PSS. Each file declares how many cases are run, refused, verdict-only and not expressible, and the policy for eachacceptableflag is in the test's documentation.serde_jsonis a dev-dependency ofrtci-crypto. - RFC 4231 test cases 1 to 7 for HMAC-SHA-256/384/512 (only case 1 was in the tree, SHA-384 never); RFC 8448 sections 5 (HelloRetryRequest), 6 (client authentication) and 7 (compatibility mode) through the DTLS 1.3 transcript and key schedule; NIST CAVP SP 800-135
srtp.rsp(30 cases: the SRTP keys match; the SRTCP keys follow erratum 3712, CAVP the text before it, pinned as different) andtls.rsp(the 20 TLS 1.2 SHA-256 / SHA-384 cases through the DTLS 1.2 PRF), public domain, undersrc/testdata; the AV1 RTP section 7.3 fmtp lines as printed; the draft-ietf-avtcore-rtp-sframe-03 vectors and the RFC 9335 ones now assert their counts. docs/conformance/vectors.tsvregisters 62 vector sets (source, section, cases, test, licence) andscripts/check-vector-registry.py --check(withscripts/test_check_vector_registry.py, in the cargo.yml inventory job) fails when a registered test is missing or its declared count, or a vendored file's, differs.
- 25 C2SP/wycheproof
- DTLS 1.2 handshake order and authentication tests, and a malformed-message table (
conf/dtls-38-handshake-order-and-malformed, test audit packages 1 and 8): a man in the middle that rewrites whole handshake messages (rtci-dtls/src/conn/handshake_order_test.rs) drives 30 cases through the production connection: order, repeats and omissions in both flights, the 19 DTLS-SRTP authentication checks of Bach et al. (USENIX Security 2026) where they apply to rtci, and the DTLS state-machine bug patterns of Fiterău-Broştean et al. (NDSS 2023).rtci-dtls/src/handshake/malformed_message_test.rsholds 65 malformed-message cases over every DTLS 1.2 handshake type; the connection-level cases drop a malformed copy of every message of both flights in the clear and refuse a protected Finished of the wrong length. - SFrame keys are searched for in freed memory (
conf/must-3-last-open-rows; the crate's erasure rule, docs/key-erasure.md). Newrtci-sframe/tests/key_erasure.rs: every suite with every provider of the build, thebase_key, the derivedsframe_keyandsframe_salt(needles checked against RFC 9605 appendix C.4) and the ratchet's next base key are in no block freed while contexts are keyed, frames sealed and opened, a key removed and a ratchet advanced. No code change. The audit of every struct holding key material (RFC7714-13.1-3,partialat that point;testedin this release) is in docs/key-erasure.md; the ICE password is recorded there as a plainString. - The capacity instrument can measure redundant audio turned on by loss (RFC 8854 section 7 / 8, audit row RFC8854-7-3, which stays
partialuntil the measurement is read):RTC_INSTR_AUDIO_RED=1registersaudio/red(63,111/111, after Opus) in both peers,RTC_INSTR_RED_ON_LOSS=1also turnswith_audio_redundancy_on_losson; nothing changes without them. Newscripts/dev/instrument-ab.sh: one job measures one tree under two environments, or two commits under this checkout's instrument, on chosen cells and seeds, and applies the merge-point rule (scripts/capacity-instrument.py compare). - Feedback as negotiated: the PLI of rtci-video's receive pipeline and the FIR of
send_key_frame_requestare tested on the wire (conf/should-7-congestion-and-fec; audit row RFC4585-4.2-9,partial->tested; RFC 4585 section 4.2: receivers "SHOULD provide feedback information ... using any of the RTCP feedback packets as specified in one of the 'rtcp-fb' attributes"). New testrtci-video/tests/receive_rtc2rtc.rs::the_receive_pipelines_key_frame_request_reaches_the_sender_as_a_pli: a key-frame request of the pipeline (a packet lost past the repair window) leaves as a PLI and reaches the sending peer as a remote PLI, one for one. No code change. - Key residue measured on Windows and on the providers' portable code paths; key erasure inside the providers established from their source and, for AWS-LC, observed (
conf/must-4-key-erasure-scope). The stack measurements ofrtci-srtpandrtci-dtlsrun on Windows (owned_stack_windows: a thread's reserved stack whose area the test fills and reads while the thread is parked) and, in the new CI jobkey_residue_portable, under qemu-user CPUs without AES-NI / CLMUL / SHA-NI (ubuntu-latest, AVX2 kept: its own loader needs AVX), and without AVX, or SSSE3 / SSE4 too (ubuntu-22.04: Nehalem, qemu64), with the depth probe and the heap tests;rtci-crypto/tests/portable_paths.rschecks the emulated CPU first. The SRTP and DTLS needle sets share one model of the portable AES schedules (rtci-srtp/tests/portable_aes: RustCrypto's fixsliced schedule for 16-, 24- and 32-byte keys, ring's / AWS-LC's vpaes or no-hardware one; any other length panics), whichthe_portable_aes_model_is_found_in_live_cipher_objectschecks against liveaescipher objects for every key length;scripts/check-crypto-boundary.pyallowsaesas a dev-dependency of those two crates for it. Found by that pass and fixed: without AES hardware the SRTP key derivation's AES (RustCrypto's fixsliced code, keyed with the master key) left schedule copies in its stack frames, which ring's AES-GCM key object, built next over them, carried into the heap in the unused bytes of its smaller vpaes / fallback variant: the master key's schedule stayed in memory while the context lived.common::block_encryptnow runs on that path in a frame of its own followed by an overwrite of its measured depth (record_depth::RUSTCRYPTO_AES_KEY_SETUP, in every build, whatever the record setting), tested bykey_derivation_leaves_no_key_schedule_in_dead_stack_frames, also on ordinary runners with--cfg aes_force_soft(CI). Also found there: ring's AES-GCM on its portable path (vpaes / no-hardware AES, fallback GHASH) left the GHASH keyH*xin dead stack frames after a record; its records now run under the overwrite there (RING_AES_GCM_PORTABLE, 6 KiB, in the depth probe). Every key-holding object inside the providers is shown to be overwritten before release (docs/key-erasure.md, "Inside the providers": AWS-LC'sOPENSSL_freecleanses every allocation, observed by the newrtci-crypto/tests/aws_lc_heap_erasure.rsthrough AWS-LC's weaksdallocx; aws-lc-rs, RustCrypto and vendored OpenSSL by their source; ring's key types through the engine'sErasedOnDrop).scripts/check-provider-versions.py(CI) fails when a provider resolves to a version the evidence does not cite; RULES.md records the owner's rulings of 2026-11-29 ("Key erasure inside a dependency"). Audit: RFC7714-13.1-3partial->tested; 0 open MUST rows. Found outside RFC 7714 and reported: ring's RSA key pair frees its private limbs unerased (a fork,rtci-ring, is prepared), an application'srcgen::KeyPair, rustls's TURN-over-TLS record keys.