tls

package
v0.2.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TLSHeaderLength = 5

Functions

func GetExtensionBlock

func GetExtensionBlock(data []byte) ([]byte, error)

Given a raw TLS Client Hello, go ahead and find all the Extensions

func GetSNBlock

func GetSNBlock(data []byte) ([]byte, error)

Given a TLS Extensions data block, go ahead and find the SN block

func GetSNIBlock

func GetSNIBlock(data []byte) ([]byte, error)

Given a Server Name TLS Extension block, parse out and return the SNI * (Server Name Indication) payload

Types

type ClientHello

type ClientHello struct {
	Ts            time.Time
	Host          string
	Method        string
	ContentLength int
	RequestURI    string
	StatusCode    int
}

func Parse

func Parse(data []byte) (*ClientHello, bool)

func (*ClientHello) GetSearchKey

func (t *ClientHello) GetSearchKey() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL