tls

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RuleSNI uint8 = iota
	RuleALPN
	RuleCATCHALL
)

Rule type

Variables

This section is empty.

Functions

func ValidateRule

func ValidateRule(rule string) error

Types

type Protocol

type Protocol struct {
	// contains filtered or unexported fields
}

func (*Protocol) ApplyRules

func (p *Protocol) ApplyRules(rules []config.Rule) error

func (*Protocol) Clone

func (p *Protocol) Clone() protocol.Protocol

func (*Protocol) Identify

func (p *Protocol) Identify(ctx context.Context, cBuf *protocol.ConnBuf) (config.Rule, error)

func (*Protocol) Name

func (p *Protocol) Name() config.Protocol

type Rule

type Rule struct {
	Type     uint8
	Contents string
	RuleName config.Rule
}

func ParseRule

func ParseRule(rule config.Rule) (Rule, error)

func ParseRules

func ParseRules(rules []config.Rule) ([]Rule, error)

Jump to

Keyboard shortcuts

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