use Go 1.14's embedded interfaces, update CIs

This commit is contained in:
Marten Seemann
2020-02-26 10:27:12 +07:00
parent dd2d26c13d
commit c88a69034d
8 changed files with 40 additions and 53 deletions

View File

@@ -76,9 +76,11 @@ func tlsConfigToQtlsConfig(
csc = newClientSessionCache(c.ClientSessionCache, rttStats, getDataForSessionState, setDataFromSessionState)
}
conf := &qtls.Config{
Rand: c.Rand,
Time: c.Time,
Certificates: c.Certificates,
Rand: c.Rand,
Time: c.Time,
Certificates: c.Certificates,
// NameToCertificate is deprecated, but we still need to copy it if the user sets it.
//nolint:staticcheck
NameToCertificate: c.NameToCertificate,
GetCertificate: c.GetCertificate,
GetClientCertificate: c.GetClientCertificate,