Move clienhello to faketls

This commit is contained in:
9seconds
2021-03-25 16:44:06 +03:00
parent 4a2d1df384
commit d3551aa9cc
4 changed files with 42 additions and 30 deletions
+18
View File
@@ -0,0 +1,18 @@
package faketls
import "errors"
const (
RandomLen = 32
ClientHelloRandomOffset = 6
ClientHelloSessionIDOffset = ClientHelloRandomOffset + RandomLen
ClientHelloMinLen = ClientHelloSessionIDOffset + 1
HandshakeTypeClient = 0x01
)
var (
ErrBadDigest = errors.New("bad digest")
ErrAntiReplayAttack = errors.New("antireplay attack was detected")
)