ftls

package
v0.0.0-...-a36e63d Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2016 License: Apache-2.0, Apache-2.0 Imports: 7 Imported by: 0

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