forked from quic-go/quic-go
remove redundant qtls-related type conversions
This commit is contained in:
@@ -91,7 +91,7 @@ func tlsConfigToQtlsConfig(
|
|||||||
if cert == nil {
|
if cert == nil {
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
return (*qtls.Certificate)(unsafe.Pointer(cert)), nil
|
return (*qtls.Certificate)(cert), nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var csc qtls.ClientSessionCache
|
var csc qtls.ClientSessionCache
|
||||||
@@ -205,7 +205,7 @@ func toTLSClientHelloInfo(chi *qtls.ClientHelloInfo) *tls.ClientHelloInfo {
|
|||||||
qtlsCHI := (*qtlsClientHelloInfo)(unsafe.Pointer(chi))
|
qtlsCHI := (*qtlsClientHelloInfo)(unsafe.Pointer(chi))
|
||||||
var config *tls.Config
|
var config *tls.Config
|
||||||
if qtlsCHI.config != nil {
|
if qtlsCHI.config != nil {
|
||||||
config = qtlsConfigToTLSConfig((*qtls.Config)(unsafe.Pointer(qtlsCHI.config)))
|
config = qtlsConfigToTLSConfig(qtlsCHI.config)
|
||||||
}
|
}
|
||||||
return (*tls.ClientHelloInfo)(unsafe.Pointer(&clientHelloInfo{
|
return (*tls.ClientHelloInfo)(unsafe.Pointer(&clientHelloInfo{
|
||||||
CipherSuites: chi.CipherSuites,
|
CipherSuites: chi.CipherSuites,
|
||||||
|
|||||||
Reference in New Issue
Block a user