Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicVerifier ¶
type BasicVerifier struct { OnNoPeerCertificates func() OnPinDeny func() HasPinned func([]*x509.Certificate) bool VerifyFailure func([]*x509.Certificate, error) error VerifyHostnameFailure func([]*x509.Certificate, string, error) error AddCert func(*x509.Certificate) AskPinning func([]*x509.Certificate) error HasCertificates func() bool NeedToCheckPins bool PinningPolicy string }
BasicVerifier contains the shared logic for verifying TLS connections
func (*BasicVerifier) Verify ¶
func (v *BasicVerifier) Verify(state tls.ConnectionState, conf *tls.Config, originDomain string) error
Verify implements tls.Verifier
type Conn ¶ added in v0.3.9
type Conn interface { net.Conn Handshake() error ConnectionState() gotls.ConnectionState }
Conn represents a TLS interface
Click to show internal directories.
Click to hide internal directories.