forked from quic-go/quic-go
define a function to tell if a QUIC version uses the TLS 1.3 handshake
This commit is contained in:
@@ -26,6 +26,11 @@ var SupportedVersions = []VersionNumber{
|
||||
Version35,
|
||||
}
|
||||
|
||||
// UsesTLS says if this QUIC version uses TLS 1.3 for the handshake
|
||||
func (vn VersionNumber) UsesTLS() bool {
|
||||
return vn == VersionTLS
|
||||
}
|
||||
|
||||
// VersionNumberToTag maps version numbers ('32') to tags ('Q032')
|
||||
func VersionNumberToTag(vn VersionNumber) uint32 {
|
||||
v := uint32(vn)
|
||||
|
||||
Reference in New Issue
Block a user