protocol: remove VersionTLS, used during the gQUIC -> TLS 1.3 transition (#3764)

This commit is contained in:
Marten Seemann
2023-04-19 16:24:34 +02:00
committed by GitHub
parent a753cb13d8
commit 1f57d4e789
21 changed files with 68 additions and 77 deletions

View File

@@ -31,7 +31,7 @@ var _ = Describe("QUIC Proxy", func() {
hdr := wire.ExtendedHeader{
Header: wire.Header{
Type: protocol.PacketTypeInitial,
Version: protocol.VersionTLS,
Version: protocol.Version1,
Length: 4 + protocol.ByteCount(len(payload)),
DestConnectionID: protocol.ParseConnectionID([]byte{0xde, 0xad, 0xbe, 0xef, 0, 0, 0x13, 0x37}),
SrcConnectionID: protocol.ParseConnectionID([]byte{0xde, 0xad, 0xbe, 0xef, 0, 0, 0x13, 0x37}),
@@ -49,7 +49,7 @@ var _ = Describe("QUIC Proxy", func() {
hdr, data, _, err := wire.ParsePacket(b)
ExpectWithOffset(1, err).ToNot(HaveOccurred())
Expect(hdr.Type).To(Equal(protocol.PacketTypeInitial))
extHdr, err := hdr.ParseExtended(bytes.NewReader(data), protocol.VersionTLS)
extHdr, err := hdr.ParseExtended(bytes.NewReader(data), protocol.Version1)
ExpectWithOffset(1, err).ToNot(HaveOccurred())
return extHdr.PacketNumber
}