qtls: remove unneeded type alias for the tls.QUICEncryptionLevel (#4220)

* qtls: remove unneeded type alias for the tls.QUICEncryptionLevel

* handshake: make cryptoSetup.WriteRecord private
This commit is contained in:
Marten Seemann
2023-12-29 09:59:56 +07:00
committed by GitHub
parent a937959fbf
commit d6e3f3229f
2 changed files with 7 additions and 18 deletions

View File

@@ -8,17 +8,6 @@ import (
"github.com/quic-go/quic-go/internal/protocol"
)
type (
QUICEncryptionLevel = tls.QUICEncryptionLevel
)
const (
QUICEncryptionLevelInitial = tls.QUICEncryptionLevelInitial
QUICEncryptionLevelEarly = tls.QUICEncryptionLevelEarly
QUICEncryptionLevelHandshake = tls.QUICEncryptionLevelHandshake
QUICEncryptionLevelApplication = tls.QUICEncryptionLevelApplication
)
func SetupConfigForServer(qconf *tls.QUICConfig, _ bool, getData func() []byte, handleSessionTicket func([]byte, bool) bool) {
conf := qconf.TLSConfig