Versions in this module Expand all Collapse all v0 v0.0.7 Apr 9, 2024 v0.0.6 Mar 21, 2024 Changes in this version + var ErrCertificateChainTooLong = fmt.Errorf("the certificate chain exceeds the maximum allowed length (%d)", ...) + var ErrNoPinMatch = errors.New("no certificate match the expected fingerprint") + type Dialer func(ctx context.Context, network, addr string) (net.Conn, error) + func PinnedDialer(cfg *tls.Config, fingerPrint []byte) Dialer