model

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	TLSRecord byte = 0x16

	ClientHelloTLSRecord byte = 0x01
	ServerHelloTLSRecord byte = 0x02

	ServerNameExt uint16 = 0x00
	TLSVersionExt uint16 = 0x2b
)

Variables

This section is empty.

Functions

func GetTLSVersion

func GetTLSVersion(version uint16) string

Types

type CipherSuite

type CipherSuite struct {
	Value uint16
}

type Ciphers

type Ciphers struct {
	Length uint16
	Value  []byte
}

type CompressionMethods

type CompressionMethods struct {
	Length uint8
	Value  []byte
}

type Extension

type Extension struct {
	Type   uint16
	Length uint16
	Value  []byte
}

type Extensions

type Extensions struct {
	Length     uint16
	Extensions map[uint16]Extension
}

type HandshakeProtocol

type HandshakeProtocol struct {
	HandshakeType uint8
	Length        [3]byte
	TLSVersion    uint16
	Random        [32]byte
}

type RecordLayer

type RecordLayer struct {
	HandshakeType uint8
	TLSVersion    uint16
	Length        uint16
}

type ServerNameExtension

type ServerNameExtension struct {
	ListLength uint16
	Type       uint8
	Length     uint16
	Value      []byte
}

type Session

type Session struct {
	Length uint8
	Id     []byte
}

Jump to

Keyboard shortcuts

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