Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

ValidateQUICExtensionPlacement

function ValidateQUICExtensionPlacement(const aMessage: TBytes): Byte; overload;
Checks full TLS 1.3 handshake messages and their extension vectors. QUIC transport parameters occur exactly once in ClientHello/EncryptedExtensions and never in ServerHello (including HRR), CertificateRequest, Certificate entries or NewSessionTicket. Returns 0, illegal_parameter (47) for duplicate parameters, decode_error (50), missing_extension (109), or unsupported_extension (110). A ticket early_data extension must contain exactly four $FF octets. Other types use their message-specific parsers.
function ValidateQUICExtensionPlacement(const aMessage: TBytes; out aProtocolViolation: Boolean): Byte; overload;
The second form identifies the QUIC PROTOCOL_VIOLATION required for an invalid NewSessionTicket early_data sentinel; ordinary errors retain their TLS alert. The output is explicitly False for all other inputs.