Versions in this module Expand all Collapse all v1 v1.0.1 Oct 9, 2022 v1.0.0 Oct 9, 2022 Changes in this version + const ClientHelloRandomLen + const OCSPStatusRequest + const SNINameTypeDNS + const ServerHelloRandomLen + var CipherSuiteReg = map[CipherSuite]string + var ErrHandshakeBadLength = errors.New("handshake has a malformed length") + var ErrHandshakeExtBadLength = errors.New("handshake extension has a malformed length") + var ErrHandshakeWrongType = errors.New("handshake is of wrong type, or not a handshake message") + var ExtensionReg = map[Extension]string + var VersionReg = map[Version]string + type CipherSuite uint16 + func (cs CipherSuite) String() string + type ClientHello struct + ALPNs []string + CompressMethods []uint8 + Extensions map[Extension]uint16 + OSCP bool + Random []byte + SessionID []byte + SignatureAlgs []uint16 + func GetClientHello(packet gopacket.Packet) *ClientHello + func (ch *ClientHello) Unmarshal(payload []byte) error + func (ch ClientHello) String() string + type ClientHelloBasic struct + AllExtensions []uint16 + CipherSuiteLen uint16 + CipherSuites []CipherSuite + ExtensionLen uint16 + HandshakeLen uint32 + HandshakeType uint8 + HandshakeVersion Version + SNI string + SessionIDLen uint32 + SupportedGroups []uint16 + SupportedPoints []uint8 + func GetClientHelloBasic(packet gopacket.Packet) *ClientHelloBasic + func (ch *ClientHelloBasic) Unmarshal(payload []byte) error + func (ch ClientHelloBasic) String() string + type CurveID uint16 + type Extension uint16 + const ExtALPN + const ExtCertType + const ExtClientAuthz + const ExtClientCertType + const ExtClientCertURL + const ExtECPointFormats + const ExtEncryptThenMAC + const ExtExtendedMasterSecret + const ExtHeartbeat + const ExtMaxFragLen + const ExtNPN + const ExtPadding + const ExtRenegotiationInfo + const ExtSRP + const ExtServerAuthz + const ExtServerCertType + const ExtServerName + const ExtSessionTicket + const ExtSignatureAlgs + const ExtSignedCertTS + const ExtStatusRequest + const ExtStatusRequestV2 + const ExtSupportedGroups + const ExtTruncatedHMAC + const ExtTrustedCAKeys + const ExtUseSRTP + const ExtUserMapping + func (e Extension) String() string + type ServerHello struct + AlpnProtocol string + Cookie []byte + Ems bool + NextProtoNeg bool + NextProtos []string + OCSPStapling bool + Scts [][]byte + SecureRenegotiation []byte + SecureRenegotiationSupported bool + SelectedIdentity uint16 + SelectedIdentityPresent bool + ServerShare keyShare + SupportedVersion uint16 + TicketSupported bool + func GetServerHello(packet gopacket.Packet) *ServerHello + func (ch ServerHello) String() string + func (m *ServerHello) Unmarshal(data []byte) error + type ServerHelloBasic struct + CipherSuite uint16 + CompressionMethod uint8 + Extensions []uint16 + Random []byte + SelectedGroup CurveID + SessionID []byte + Vers uint16 + func GetServerHelloBasic(packet gopacket.Packet) *ServerHelloBasic + func (ch ServerHelloBasic) String() string + func (m *ServerHelloBasic) Unmarshal(data []byte) error + type TLSMessage struct + MessageLen uint16 + Type uint8 + Version Version + type Version uint16 + const VerSSL30 + const VerTLS10 + const VerTLS11 + const VerTLS12 + const VerTLS13 + func (v Version) String() string