Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
quic: pass the connection ID length into 1-RTT packet parsing
1-RTT packets contain a variable-length connection ID field, but no indication of the length of the connection ID. The recipient of the packet has chosen the connection ID, and is expected to either choose a consistent length or encode the length in the connection ID. Change the parse1RTTPacket function to take the connection ID length as an input, rather than assuming that all 1-RTT packets contain our hardcoded connection ID length. This permits using parse1RTTPacket in tests which may create and parse packets using other lengths. For golang/go#58547 Change-Id: I9d09e4a0041051be1604c9146f6db9ca959ad696 Reviewed-on: https://go-review.googlesource.com/c/net/+/504856 Run-TryBot: Damien Neil <[email protected]> Reviewed-by: Jonathan Amsterdam <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
- Loading branch information