mod_key_log

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KeyLogConfCheck

func KeyLogConfCheck(conf KeyLogConfFile) error

func ProductRulesCheck

func ProductRulesCheck(conf *ProductRulesFile) error

func RuleListCheck

func RuleListCheck(conf *RuleFileList) error

Types

type ConfModKeyLog

type ConfModKeyLog struct {
	Basic struct {
		DataPath string // path of config data (key_log)
	}
	Log struct {
		LogPrefix   string // log file prefix
		LogDir      string // log file dir
		RotateWhen  string // rotate time
		BackupCount int    // log file backup number
	}
}

ConfModKeyLog represents the basic config for mod_key_log.

func ConfLoad

func ConfLoad(filePath string, confRoot string) (*ConfModKeyLog, error)

ConfLoad loads config from file

func (*ConfModKeyLog) Check

func (cfg *ConfModKeyLog) Check(confRoot string) error

Check validates module config

type KeyLogConfFile

type KeyLogConfFile struct {
	Version *string // version of the config
	Config  *ProductRulesFile
}

type KeyLogRule

type KeyLogRule struct {
	Cond condition.Condition // condition for key_log
}

type KeyLogRuleFile

type KeyLogRuleFile struct {
	Cond *string // condition for key_log
}

type KeyLogTable

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

func NewKeyLogTable

func NewKeyLogTable() *KeyLogTable

func (*KeyLogTable) Search

func (t *KeyLogTable) Search(product string) (*RuleList, bool)

func (*KeyLogTable) Update

func (t *KeyLogTable) Update(conf keyLogConf)

type ModuleKeyLog

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

ModuleKeyLog writes key logs in NSS key log format so that external programs(eg. wireshark) can decrypt TLS connections for trouble shooting.

For more information about NSS key log format, see: https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS/Key_Log_Format

func NewModuleKeyLog

func NewModuleKeyLog() *ModuleKeyLog

func (*ModuleKeyLog) Init

func (*ModuleKeyLog) Name

func (m *ModuleKeyLog) Name() string

type ProductRules

type ProductRules map[string]*RuleList // product => list of key_log rules

type ProductRulesFile

type ProductRulesFile map[string]*RuleFileList // product => list of key_log rules

type RuleFileList

type RuleFileList []KeyLogRuleFile

type RuleList

type RuleList []KeyLogRule

Jump to

Keyboard shortcuts

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