Documentation ¶
Index ¶
Constants ¶
View Source
const ( LengthErr string = "length check %v failed" ContentTypeErr string = "content type not matching" VersionErr string = "version check %v failed" HandshakeTypeErr string = "handshake type not matching" SNITypeErr string = "SNI type not supported" )
Error types
View Source
const ( // GREASE values // The bitmask covers all GREASE values GreaseBitmask uint16 = 0x0F0F )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientHello ¶
type ClientHello struct { Version uint16 CipherSuites []uint16 Extensions []uint16 EllipticCurves []uint16 EllipticCurvePF []uint8 Versions []uint16 SignatureAlgorithms []uint16 ServerName string // contains filtered or unexported fields }
func Compute ¶
func Compute(payload []byte) (*ClientHello, error)
func (*ClientHello) Equals ¶
func (j *ClientHello) Equals(another *ClientHello, ignoreExtensionsSequence bool) bool
func (*ClientHello) Hash ¶
func (j *ClientHello) Hash() string
func (*ClientHello) String ¶
func (j *ClientHello) String() string
type ParseError ¶
type ParseError struct {
// contains filtered or unexported fields
}
ParseError can be encountered while parsing a segment
func (*ParseError) Error ¶
func (e *ParseError) Error() string
Click to show internal directories.
Click to hide internal directories.