Documentation
¶
Index ¶
Constants ¶
View Source
const ( HelloRequest = 0 ClientHello = 1 ServerHello = 2 )
View Source
const (
ExtServerName uint16 = 0x0000
)
View Source
const (
Handshake = 0x16
)
View Source
const (
RecordHeaderLen = 5
)
Variables ¶
View Source
var (
ErrBadType = errors.New("bad type")
)
Functions ¶
This section is empty.
Types ¶
type CipherSuite ¶
type CipherSuite uint16
type ClientHelloHandshake ¶
type ClientHelloHandshake struct { Version Version Random Random SessionID []byte CipherSuites []CipherSuite CompressionMethods []CompressionMethod Extensions []Extension }
func (*ClientHelloHandshake) Decode ¶
func (h *ClientHelloHandshake) Decode(data []byte) (err error)
func (*ClientHelloHandshake) Encode ¶
func (h *ClientHelloHandshake) Encode() (data []byte, err error)
type CompressionMethod ¶
type CompressionMethod uint8
type Extension ¶
func NewExtension ¶
type ServerNameExtension ¶
func (*ServerNameExtension) Bytes ¶
func (ext *ServerNameExtension) Bytes() []byte
func (*ServerNameExtension) Type ¶
func (ext *ServerNameExtension) Type() uint16
Click to show internal directories.
Click to hide internal directories.