tlsutil

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2015 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrIdentificationFailed = fmt.Errorf("failed to identify socket type")
)

Functions

func NewCertificate

func NewCertificate(certFile, keyFile, tlsDefaultCommonName string, tlsRSABits int) (tls.Certificate, error)

Types

type DowngradingListener

type DowngradingListener struct {
	net.Listener
	TLSConfig *tls.Config
}

func (*DowngradingListener) Accept

func (l *DowngradingListener) Accept() (net.Conn, error)

func (*DowngradingListener) AcceptNoWrapTLS

func (l *DowngradingListener) AcceptNoWrapTLS() (net.Conn, bool, error)

type UnionedConnection

type UnionedConnection struct {
	io.Reader
	net.Conn
}

func (*UnionedConnection) Read

func (c *UnionedConnection) Read(b []byte) (n int, err error)

Jump to

Keyboard shortcuts

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