qtls

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QUICEncryptionLevelInitial     = tls.QUICEncryptionLevelInitial
	QUICEncryptionLevelEarly       = tls.QUICEncryptionLevelEarly
	QUICEncryptionLevelHandshake   = tls.QUICEncryptionLevelHandshake
	QUICEncryptionLevelApplication = tls.QUICEncryptionLevelApplication
)
View Source
const (
	QUICNoEvent                     = tls.QUICNoEvent
	QUICSetReadSecret               = tls.QUICSetReadSecret
	QUICSetWriteSecret              = tls.QUICSetWriteSecret
	QUICWriteData                   = tls.QUICWriteData
	QUICTransportParameters         = tls.QUICTransportParameters
	QUICTransportParametersRequired = tls.QUICTransportParametersRequired
	QUICRejectedEarlyData           = tls.QUICRejectedEarlyData
	QUICHandshakeDone               = tls.QUICHandshakeDone
)

Variables

This section is empty.

Functions

func SendSessionTicket added in v0.0.4

func SendSessionTicket[C QUICConnOrUQUICConn](c C, allow0RTT bool) error

func SetCipherSuite added in v0.0.4

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

func SetupConfigForClient(qconf *QUICConfig, getData func() []byte, setData func([]byte))

func SetupConfigForServer

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

Types

type AlertError

type AlertError = tls.AlertError

type QUICConfig

type QUICConfig = tls.QUICConfig

type QUICConn

type QUICConn = tls.QUICConn

func QUICClient

func QUICClient(config *QUICConfig) *QUICConn

func QUICServer

func QUICServer(config *QUICConfig) *QUICConn

type QUICConnOrUQUICConn added in v0.0.4

type QUICConnOrUQUICConn interface {
	*QUICConn | *UQUICConn
	SendSessionTicket(opts QUICSessionTicketOptions) error
}

type QUICEncryptionLevel

type QUICEncryptionLevel = tls.QUICEncryptionLevel

type QUICEvent

type QUICEvent = tls.QUICEvent

type QUICEventKind

type QUICEventKind = tls.QUICEventKind

type QUICSessionTicketOptions added in v0.0.4

type QUICSessionTicketOptions = tls.QUICSessionTicketOptions

type UQUICConn

type UQUICConn = tls.UQUICConn // [UQUIC]

func UQUICClient

func UQUICClient(config *QUICConfig, clientHelloSpec *tls.ClientHelloSpec) *UQUICConn

[UQUIC]

Jump to

Keyboard shortcuts

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