s2n-quic
s2n-quic copied to clipboard
Validate a peer server does not use zero-length CIDs and provide a preferred address
https://www.rfc-editor.org/rfc/rfc9000.html#name-transport-parameter-definit
A server that chooses a zero-length connection ID MUST NOT provide a preferred address. Similarly, a server MUST NOT include a zero-length connection ID in this transport parameter. A client MUST treat a violation of these requirements as a connection error of type TRANSPORT_PARAMETER_ERROR.
s2n-quic does not support locally using zero-length connection IDs, but does allow the peer to use zero-length connection IDs. Therefore, the s2n-quic client must perform this validation.