set the Long Header packet type based on the state of the handshake

This commit is contained in:
Marten Seemann
2017-10-27 08:39:06 +07:00
parent a65929f6cf
commit 3f62ea8673
14 changed files with 205 additions and 22 deletions

View File

@@ -24,7 +24,7 @@ type Header struct {
DiversificationNonce []byte
// only needed for the IETF Header
Type uint8
Type protocol.PacketType
IsLongHeader bool
KeyPhase int