tls

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2020 License: GPL-3.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TLSCiphersDirective

func TLSCiphersDirective(m *config.Map, node config.Node) (interface{}, error)

TLSCiphersDirective parses directive with arguments that specify list of ciphers to offer to clients (or to use for outgoing connections).

It returns list of []uint16 with corresponding cipher IDs.

func TLSClientBlock

func TLSClientBlock(m *config.Map, node config.Node) (interface{}, error)

func TLSCurvesDirective

func TLSCurvesDirective(m *config.Map, node config.Node) (interface{}, error)

TLSCurvesDirective parses directive with arguments that specify elliptic curves to use during TLS key exchange.

It returns []tls.CurveID.

func TLSDirective

func TLSDirective(m *config.Map, node config.Node) (interface{}, error)

TLSDirective reads the TLS configuration and adds the reload handler to reread certificates on SIGUSR2.

The returned value is *tls.TLSConfig with GetConfigForClient set. If the 'tls off' is used, returned value is nil.

func TLSVersionsDirective

func TLSVersionsDirective(m *config.Map, node config.Node) (interface{}, error)

TLSversionsDirective parses directive with arguments that specify minimum and maximum supported TLS versions.

It returns [2]uint16 value for use in corresponding fields from tls.Config.

Types

type TLSConfig

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

func (*TLSConfig) Get

func (cfg *TLSConfig) Get() (*tls.Config, error)

Jump to

Keyboard shortcuts

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