Documentation ¶
Index ¶
Constants ¶
View Source
const ( TypeChangeCypherSpec uint8 = 20 TypeAlert uint8 = 21 TypeHandshake uint8 = 22 TypeApplicationData uint8 = 23 )
View Source
const ( VersionSSL30 uint16 = 0x0300 VersionTLS10 uint16 = 0x0301 VersionTLS11 uint16 = 0x0302 VersionTLS12 uint16 = 0x0303 )
View Source
const ( HandshakeTypeHelloRequest uint8 = 0 HandshakeTypeClientHello uint8 = 1 HandshakeTypeServerHello uint8 = 2 HandshakeTypeHelloVerifyRequest uint8 = 3 HandshakeTypeCertificate uint8 = 11 HandshakeTypeServerKeyExchange uint8 = 12 HandshakeTypeCertificateRequest uint8 = 13 HandshakeTypeServerHelloDone uint8 = 14 HandshakeTypeCertificateVerify uint8 = 15 HandshakeTypeClientKeyExchange uint8 = 16 HandshakeTypeFinished uint8 = 20 )
Variables ¶
View Source
var CiphersByIndex map[uint]CipherSuite = map[uint]CipherSuite{}/* 318 elements not displayed */
all IANA registered cyphers, indexed by position in list
View Source
var CiphersByValue map[uint]CipherSuite = map[uint]CipherSuite{}/* 318 elements not displayed */
all IANA registered cyphers, indexed by identifier
Functions ¶
func DecodeRecord ¶
func DecodeRecord(p *TLSRecordLayer, data []byte) error
func TLSDecodeClientHello ¶
func TLSDecodeClientHello(p *TLSClientHello, data []byte) error
func TLSDecodeHandshake ¶
func TLSDecodeHandshake(p *TLSHandshake, data []byte) error
Types ¶
type CipherSuite ¶
list of official cipher suites
type TLSClientHello ¶
type TLSClientHello struct {
// contains filtered or unexported fields
}
type TLSHandshake ¶
type TLSRecordLayer ¶
type TLSRecordLayer struct { Fragment []byte // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.