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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 68 additions and 77 deletions

View file

@ -13,28 +13,28 @@ var _ = Describe("Packet Header", func() {
It("recognizes Initial packets", func() {
Expect(PacketTypeFromHeader(&wire.Header{
Type: protocol.PacketTypeInitial,
Version: protocol.VersionTLS,
Version: protocol.Version1,
})).To(Equal(PacketTypeInitial))
})
It("recognizes Handshake packets", func() {
Expect(PacketTypeFromHeader(&wire.Header{
Type: protocol.PacketTypeHandshake,
Version: protocol.VersionTLS,
Version: protocol.Version1,
})).To(Equal(PacketTypeHandshake))
})
It("recognizes Retry packets", func() {
Expect(PacketTypeFromHeader(&wire.Header{
Type: protocol.PacketTypeRetry,
Version: protocol.VersionTLS,
Version: protocol.Version1,
})).To(Equal(PacketTypeRetry))
})
It("recognizes 0-RTT packets", func() {
Expect(PacketTypeFromHeader(&wire.Header{
Type: protocol.PacketType0RTT,
Version: protocol.VersionTLS,
Version: protocol.Version1,
})).To(Equal(PacketType0RTT))
})
@ -43,7 +43,7 @@ var _ = Describe("Packet Header", func() {
})
It("handles unrecognized packet types", func() {
Expect(PacketTypeFromHeader(&wire.Header{Version: protocol.VersionTLS})).To(Equal(PacketTypeNotDetermined))
Expect(PacketTypeFromHeader(&wire.Header{Version: protocol.Version1})).To(Equal(PacketTypeNotDetermined))
})
})
})