ftls

package module
v0.0.0-...-6f1dfe4 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2016 License: Apache-2.0 Imports: 7 Imported by: 6

README

ftls

Documentation

Index

Constants

This section is empty.

Variables

Functions

func NewClientTLSConfig

func NewClientTLSConfig(c *Config) (*tls.Config, error)

NewClientTLSConfig constructs a client tls.Conf from provide ftls Config.

func NewGRPCClientDialOpt

func NewGRPCClientDialOpt(c *Config) (grpc.DialOption, error)

func NewServerTLSConfig

func NewServerTLSConfig(c *Config) (*tls.Config, error)

NewServerTLSConfig constructs a server tls.Conf from the provided ftls Config.

func VerifyClientAddrMatch

func VerifyClientAddrMatch(c *tls.Conn) error

Types

type Config

type Config struct {
	StrictClientVerify bool
	MutualTLS          bool
	InsecureSkipVerify bool
	MinVersion         uint16
	CipherSet          []uint16
	CertFile           string
	KeyFile            string
	CAFile             string
}

func DefaultClientFTLSConf

func DefaultClientFTLSConf(CertFile, KeyFile, CAFile string) *Config

DefaultClientFTLSConf returns a ftls config with the most commonly used config set.

func DefaultServerFTLSConf

func DefaultServerFTLSConf(CertFile, KeyFile, CAFile string) *Config

DefaultServerFTLSConf returns a ftls config with the most commonly used config set.

type Ftsl

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

Jump to

Keyboard shortcuts

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