mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-09-01 07:04:02 +03:00
Can correctly accept faketls messages
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package clienthello
|
||||
|
||||
import "errors"
|
||||
|
||||
const (
|
||||
RandomLen = 32
|
||||
RandomOffset = 6
|
||||
SessionIDOffset = RandomOffset + RandomLen
|
||||
MinLen = SessionIDOffset + 1
|
||||
|
||||
HandshakeTypeClient = 0x01
|
||||
)
|
||||
|
||||
var (
|
||||
ErrBadDigest = errors.New("bad digest")
|
||||
ErrAntiReplayAttack = errors.New("antireplay attack was detected")
|
||||
)
|
||||
Reference in New Issue
Block a user