tlsserver

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertTLS

func AssertTLS(t *testing.T, r *http.Request, clientTLSConfigFunc ptls.ConfigFunc)

func GetExpectedTLS13CipherNMapKeyExchangeInfoValue added in v0.29.0

func GetExpectedTLS13CipherNMapKeyExchangeInfoValue(cipher uint16) string

GetExpectedTLS13CipherNMapKeyExchangeInfoValue returns the expected key exchange info value which is shown by nmap in parenthesis next to the cipher name for a non-FIPS build.

func GetExpectedTLS13Ciphers added in v0.29.0

func GetExpectedTLS13Ciphers() []uint16

GetExpectedTLS13Ciphers returns the expected TLS 1.3 cipher for a non-FIPS build.

func RecordTLSHello

func RecordTLSHello(server *httptest.Server)

func TLSTestServer

func TLSTestServer(t *testing.T, handler http.Handler, f func(*httptest.Server)) *httptest.Server

func TLSTestServerCA

func TLSTestServerCA(server *httptest.Server) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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