From c1b280ddffc94b5db803e2d01d1903071600a8a7 Mon Sep 17 00:00:00 2001 From: Nick Harper Date: Wed, 7 Nov 2018 00:00:48 -0800 Subject: [PATCH] Remove Token from draft 15 --- packet.go | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/packet.go b/packet.go index 74f374b..3763043 100644 --- a/packet.go +++ b/packet.go @@ -152,8 +152,6 @@ type packetHeader struct { ConnectionIDLengths byte DestinationConnectionID ConnectionId SourceConnectionID ConnectionId - TokenLength uint8 - Token []byte PayloadLength uint64 `tls:"varint"` // In order to decode a short header, the length of the connection @@ -190,22 +188,6 @@ func (p packetHeader) ConnectionIDLengths__length() uintptr { return 0 } -func (p packetHeader) TokenLength__length() uintptr { - if p.getHeaderType() != packetTypeInitial { - assert(len(p.Token) == 0) - return 0 - } - return 1 -} - -func (p packetHeader) Token__length() uintptr { - if p.getHeaderType() != packetTypeInitial { - assert(len(p.Token) == 0) - return 0 - } - return uintptr(p.TokenLength) -} - func (p packetHeader) DestinationConnectionID__length() uintptr { if !p.Type.isLongHeader() { return p.shortCidLength