auth

package
v0.0.0-...-7e66950 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientTLSConfig

func ClientTLSConfig(authConfig Config) *tls.Config

func ServerTLSConfig

func ServerTLSConfig(authConfig Config) *tls.Config

Types

type Config

type Config struct {
	// CAPool is the pool of CAs to use for verification
	CAPool *x509.CertPool
	// Cert is the server's certificate to present to the client
	Cert tls.Certificate
}

Config for authentication

Jump to

Keyboard shortcuts

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