cipher

package
v0.0.0-...-d687121 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

Variables

View Source
var (
	H3Protos = []string{http3.NextProtoH3}
)

Functions

func GetClientTLSConfig

func GetClientTLSConfig(caClient *x509.CertPool, provider CertProviderFunc, protos []string) *tls.Config

func GetGatewayTLSConfig

func GetGatewayTLSConfig(provider CertProviderFunc, protos []string) *tls.Config

our acme cert generation uses ECDSA (P-256), thus we will skip ciphers that do not do elliptic curve DH

func GetPeerTLSConfig

func GetPeerTLSConfig(ca *x509.CertPool, node tls.Certificate, protos []string) *tls.Config

we will require the use of ECDSA certificates for Chord

Types

type CertProvider

type CertProvider interface {
	Initialize(ctx context.Context) error
	GetCertificate(*tls.ClientHelloInfo) (*tls.Certificate, error)
	OnHandshake(OnHandshakeFunc)
}

type CertProviderFunc

type CertProviderFunc func(*tls.ClientHelloInfo) (*tls.Certificate, error)

type OnHandshakeFunc

type OnHandshakeFunc func(sni string)

Jump to

Keyboard shortcuts

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