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 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 ¶
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 ServerDetector ¶
type ServerDetector []string
func (ServerDetector) Detect ¶
func (names ServerDetector) Detect(state *tls.ConnectionState) bool
Click to show internal directories.
Click to hide internal directories.