tls

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

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

Go to latest
Published: Apr 30, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VersionTLS10 = stdtls.VersionTLS10
	VersionTLS11 = stdtls.VersionTLS11
	VersionTLS12 = stdtls.VersionTLS12
	VersionTLS13 = stdtls.VersionTLS13
)
View Source
const (
	TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256   = stdtls.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
	TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384   = stdtls.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
	TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 = stdtls.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
	TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 = stdtls.TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
	TLS_RSA_WITH_AES_128_GCM_SHA256         = stdtls.TLS_RSA_WITH_AES_128_GCM_SHA256
	TLS_RSA_WITH_AES_256_GCM_SHA384         = stdtls.TLS_RSA_WITH_AES_256_GCM_SHA384
	TLS_AES_128_GCM_SHA256                  = stdtls.TLS_AES_128_GCM_SHA256
	TLS_AES_256_GCM_SHA384                  = stdtls.TLS_AES_256_GCM_SHA384
)

Variables

View Source
var (
	LoadX509KeyPair          = stdtls.LoadX509KeyPair
	NewLRUClientSessionCache = stdtls.NewLRUClientSessionCache
	CipherSuiteName          = stdtls.CipherSuiteName
	CipherSuites             = stdtls.CipherSuites
	InsecureCipherSuites     = stdtls.InsecureCipherSuites
)

Functions

func Client

func Client(conn net.Conn, config *Config) *stdtls.Conn

func ForceTLS13AESGCM

func ForceTLS13AESGCM() int

ForceTLS13AESGCM restricts TLS1.3 to AES-GCM suites only.

func Server

func Server(conn net.Conn, config *Config) *stdtls.Conn

func SetTLS13CipherSuites

func SetTLS13CipherSuites(ids []uint16) int

SetTLS13CipherSuites restricts TLS1.3 cipher suites to the given list. Returns number of suites applied (0 => no change).

Types

type Certificate

type Certificate = stdtls.Certificate

type CipherSuite

type CipherSuite = stdtls.CipherSuite

type ClientHelloInfo

type ClientHelloInfo = stdtls.ClientHelloInfo

type ClientSessionCache

type ClientSessionCache = stdtls.ClientSessionCache

type Config

type Config = stdtls.Config

type Conn

type Conn = stdtls.Conn

type ConnectionState

type ConnectionState = stdtls.ConnectionState

Jump to

Keyboard shortcuts

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