pindialer

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2021 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package pindialer contains a basic implementation of a pinned HTTPS dialer

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFingerprints added in v0.1.1

func GetFingerprints(c *tls.Conn) (map[string]string, error)

GetFingerprints is a helper for getting the fingerprint needed to update pins

Types

type ContextDialer added in v0.4.0

type ContextDialer func(ctx context.Context, network, addr string) (net.Conn, error)

ContextDialer is a function connecting to the address on the named network

func MakeContextDialer added in v0.4.0

func MakeContextDialer(fingerprint string) ContextDialer

MakeContextDialer returns a ContextDialer that only succeeds on connection to a TLS secured address with the pinned fingerprint

Jump to

Keyboard shortcuts

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