qtls

package
v0.43.1 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromTLSEncryptionLevel added in v0.37.0

func FromTLSEncryptionLevel(e tls.QUICEncryptionLevel) protocol.EncryptionLevel

func SetCipherSuite added in v0.34.0

func SetCipherSuite(id uint16) (reset func())

SetCipherSuite modifies the cipherSuiteTLS13 slice of cipher suites inside qtls such that it only contains the cipher suite with the chosen id. The reset function returned resets them back to the original value.

func SetupConfigForClient added in v0.37.0

func SetupConfigForClient(
	qconf *tls.QUICConfig,
	getData func(earlyData bool) []byte,
	setData func(data []byte, earlyData bool) (allowEarlyData bool),
)

func SetupConfigForServer added in v0.37.0

func SetupConfigForServer(qconf *tls.QUICConfig, _ bool, getData func() []byte, handleSessionTicket func([]byte, bool) bool)

func ToTLSEncryptionLevel added in v0.37.0

func ToTLSEncryptionLevel(e protocol.EncryptionLevel) tls.QUICEncryptionLevel

Types

This section is empty.

Jump to

Keyboard shortcuts

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