parser

package
v0.0.0-...-e7435d9 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2017 License: MIT Imports: 1 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 GetHostname

func GetHostname(data []byte) (string, error)

This function is basically all most folks want to invoke out of this * jumble of bits. This will take an incoming TLS Client Hello (including * all the fuzzy bits at the beginning of it - fresh out of the socket) and * go ahead and give us the SNI Name they want.

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

This section is empty.

Jump to

Keyboard shortcuts

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