tls

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2017 License: GPL-3.0 Imports: 3 Imported by: 40

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 Verifier

type Verifier interface {
	Verify(tls.ConnectionState, tls.Config, string) error
}

Verifier represents something that can verify a TLS connection

Jump to

Keyboard shortcuts

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