Small refactorings

This commit is contained in:
9seconds
2021-03-21 21:19:26 +03:00
parent 8de727932d
commit 4d2d21e101
4 changed files with 60 additions and 34 deletions
@@ -18,6 +18,9 @@ const (
handshakeFrameOffsetEnd = handshakeFrameOffsetDC + handshakeFrameLenDC
)
// Connection-Type: Secure. We support only fake tls.
var handshakeConnectionType = []byte{0xdd, 0xdd, 0xdd, 0xdd}
// A structure of obfuscated2 handshake frame is following:
//
// [frameOffsetFirst:frameOffsetKey:frameOffsetIV:frameOffsetMagic:frameOffsetDC:frameOffsetEnd].