ssl

package
v1.7.11 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleSSLUpgrade

func HandleSSLUpgrade(connection net.Conn, tlsConf DbSSLMode) (net.Conn, error)

HandleSSLUpgrade upgrades a net.Conn using DbSSLMode

Types

type DbSSLMode

type DbSSLMode struct {
	tls.Config
	UseTLS       bool
	VerifyCaOnly bool
	Options      options
}

DbSSLMode holds information about the DB's SSL options.

func NewDbSSLMode

func NewDbSSLMode(o options, requireCanVerifyCA bool) (DbSSLMode, error)

NewDbSSLMode configures and creates a DbSSLMode

Jump to

Keyboard shortcuts

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