fix: CI qtls tests (#9)

Remove some unlinked qtls functionalities.
This commit is contained in:
Gaukas Wang 2023-08-05 17:44:40 -06:00 committed by GitHub
parent 1644f906ad
commit 5e966a9bec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 570 additions and 166 deletions

View file

@ -10,7 +10,8 @@ import (
)
type (
QUICConn = tls.UQUICConn // [UQUIC]
QUICConn = tls.QUICConn
UQUICConn = tls.UQUICConn // [UQUIC]
QUICConfig = tls.QUICConfig
QUICEvent = tls.QUICEvent
QUICEventKind = tls.QUICEventKind
@ -36,15 +37,16 @@ const (
QUICHandshakeDone = tls.QUICHandshakeDone
)
func QUICServer(config *QUICConfig) *QUICConn { return nil } // [UQUIC]
func QUICServer(config *QUICConfig) *QUICConn {
return tls.QUICServer(config)
}
// [UQUIC]
func QUICClient(config *QUICConfig) *QUICConn {
return tls.UQUICClient(config, tls.HelloGolang)
return tls.QUICClient(config)
}
// [UQUIC]
func UQUICClient(config *QUICConfig, clientHelloSpec *tls.ClientHelloSpec) *QUICConn {
func UQUICClient(config *QUICConfig, clientHelloSpec *tls.ClientHelloSpec) *UQUICConn {
uqc := tls.UQUICClient(config, tls.HelloCustom)
if err := uqc.ApplyPreset(clientHelloSpec); err != nil {
panic(err)