mod_key_log

package
v1.8.8 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2026 License: Apache-2.0 Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 access_log.LogConfig
}

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