Back to / common / protocol / tls

package tls

Latest Go to latest
Published: Jun 3, 2019 | License: MIT | Module:


func IsValidTLSVersion

func IsValidTLSVersion(major, minor byte) bool

func ReadClientHello

func ReadClientHello(data []byte, h *SniffHeader) error

ReadClientHello returns server name (if any) from TLS client hello message.

type SniffHeader

type SniffHeader struct {
	// contains filtered or unexported fields

func SniffTLS

func SniffTLS(b []byte) (*SniffHeader, error)

func (*SniffHeader) Domain

func (h *SniffHeader) Domain() string

func (*SniffHeader) Protocol

func (h *SniffHeader) Protocol() string
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier