tlsmux

package
v0.0.0-...-c0d97ca Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2016 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Detector

type Detector interface {
	Detect(state *tls.ConnectionState) (accepted bool)
}

type Handler

type Handler interface {
	Handle(c *tls.Conn)
}

type Handshaker

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

func NewHandshaker

func NewHandshaker(config *tls.Config, next Handler) *Handshaker

func (*Handshaker) Handle

func (hs *Handshaker) Handle(c net.Conn)

type NetmuxWrapper

type NetmuxWrapper struct {
	netmux.Handler
}

func (*NetmuxWrapper) Handle

func (h *NetmuxWrapper) Handle(c *tls.Conn)

type ProtoDetector

type ProtoDetector []string

func (ProtoDetector) Detect

func (protos ProtoDetector) Detect(state *tls.ConnectionState) bool

type RevokedDetector

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

TODO how to handle when CRL and peer's certificate issuer are different

if (X509_NAME_cmp(X509_CRL_get_issuer(crl), X509_get_issuer_name(peer_cert)) != 0) {
	msg (M_WARN, "CRL: CRL %s is from a different issuer than the issuer of "
		"certificate %s", crl_file, subject);
	retval = SUCCESS;
	goto end;
}

func NewRevokedDetector

func NewRevokedDetector(crlPath string) (rd *RevokedDetector, err error)

func (RevokedDetector) Detect

func (rd RevokedDetector) Detect(state *tls.ConnectionState) bool

func (RevokedDetector) Handle

func (_ RevokedDetector) Handle(c *tls.Conn)

type Server

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

func NewServer

func NewServer(srvcs []Service, fallback Handler) *Server

func (Server) Handle

func (s Server) Handle(c *tls.Conn)

type ServerDetector

type ServerDetector []string

func (ServerDetector) Detect

func (names ServerDetector) Detect(state *tls.ConnectionState) bool

type Service

type Service interface {
	Detector
	Handler
}

func NewService

func NewService(d Detector, h Handler) Service

Jump to

Keyboard shortcuts

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