1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-04-21 13:09:11 -04:00

Compatibility change for go 1.18

This commit is contained in:
MoetaYuko
2023-02-10 10:44:46 +08:00
committed by Shelikhoo
parent 179cd1d62f
commit 0dcf8cad0d
2 changed files with 20 additions and 2 deletions

View File

@@ -0,0 +1,18 @@
//go:build go1.18 && !go1.19
package quic
import (
"crypto/cipher"
"github.com/quic-go/qtls-go1-18"
)
type (
// A CipherSuiteTLS13 is a cipher suite for TLS 1.3
CipherSuiteTLS13 = qtls.CipherSuiteTLS13
)
func AEADAESGCMTLS13(key, fixedNonce []byte) cipher.AEAD {
return qtls.AEADAESGCMTLS13(key, fixedNonce)
}