Documentation
¶
Index ¶
- Constants
- Variables
- func Client(conn net.Conn, config *Config) *stdtls.Conn
- func ForceTLS13AESGCM() int
- func Server(conn net.Conn, config *Config) *stdtls.Conn
- func SetTLS13CipherSuites(ids []uint16) int
- type Certificate
- type CipherSuite
- type ClientHelloInfo
- type ClientSessionCache
- type Config
- type Conn
- type ConnectionState
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 ForceTLS13AESGCM ¶
func ForceTLS13AESGCM() int
ForceTLS13AESGCM restricts TLS1.3 to AES-GCM suites only.
func SetTLS13CipherSuites ¶
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 ConnectionState ¶
type ConnectionState = stdtls.ConnectionState
Click to show internal directories.
Click to hide internal directories.