tls

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: GPL-3.0 Imports: 8 Imported by: 2 modules, 1 package

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 TLSCiphersDirective

func TLSCiphersDirective(_ *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(_ *config.Map, node config.Node) (interface{}, error)

func TLSCurvesDirective

func TLSCurvesDirective(_ *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.Config with GetConfigForClient set. If the 'tls off' is used, returned value is nil.

func TLSVersionsDirective

func TLSVersionsDirective(_ *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