@@ -2005,25 +2005,27 @@ func cloneTLSConfig(cfg *tls.Config) *tls.Config {
2005
2005
return & tls.Config {}
2006
2006
}
2007
2007
return & tls.Config {
2008
- Rand : cfg .Rand ,
2009
- Time : cfg .Time ,
2010
- Certificates : cfg .Certificates ,
2011
- NameToCertificate : cfg .NameToCertificate ,
2012
- GetCertificate : cfg .GetCertificate ,
2013
- RootCAs : cfg .RootCAs ,
2014
- NextProtos : cfg .NextProtos ,
2015
- ServerName : cfg .ServerName ,
2016
- ClientAuth : cfg .ClientAuth ,
2017
- ClientCAs : cfg .ClientCAs ,
2018
- InsecureSkipVerify : cfg .InsecureSkipVerify ,
2019
- CipherSuites : cfg .CipherSuites ,
2020
- PreferServerCipherSuites : cfg .PreferServerCipherSuites ,
2021
- SessionTicketsDisabled : cfg .SessionTicketsDisabled ,
2022
- SessionTicketKey : cfg .SessionTicketKey ,
2023
- ClientSessionCache : cfg .ClientSessionCache ,
2024
- MinVersion : cfg .MinVersion ,
2025
- MaxVersion : cfg .MaxVersion ,
2026
- CurvePreferences : cfg .CurvePreferences ,
2008
+ Rand : cfg .Rand ,
2009
+ Time : cfg .Time ,
2010
+ Certificates : cfg .Certificates ,
2011
+ NameToCertificate : cfg .NameToCertificate ,
2012
+ GetCertificate : cfg .GetCertificate ,
2013
+ RootCAs : cfg .RootCAs ,
2014
+ NextProtos : cfg .NextProtos ,
2015
+ ServerName : cfg .ServerName ,
2016
+ ClientAuth : cfg .ClientAuth ,
2017
+ ClientCAs : cfg .ClientCAs ,
2018
+ InsecureSkipVerify : cfg .InsecureSkipVerify ,
2019
+ CipherSuites : cfg .CipherSuites ,
2020
+ PreferServerCipherSuites : cfg .PreferServerCipherSuites ,
2021
+ SessionTicketsDisabled : cfg .SessionTicketsDisabled ,
2022
+ SessionTicketKey : cfg .SessionTicketKey ,
2023
+ ClientSessionCache : cfg .ClientSessionCache ,
2024
+ MinVersion : cfg .MinVersion ,
2025
+ MaxVersion : cfg .MaxVersion ,
2026
+ CurvePreferences : cfg .CurvePreferences ,
2027
+ DynamicRecordSizingDisabled : cfg .DynamicRecordSizingDisabled ,
2028
+ Renegotiation : cfg .Renegotiation ,
2027
2029
}
2028
2030
}
2029
2031
@@ -2036,24 +2038,25 @@ func cloneTLSClientConfig(cfg *tls.Config) *tls.Config {
2036
2038
return & tls.Config {}
2037
2039
}
2038
2040
return & tls.Config {
2039
- Rand : cfg .Rand ,
2040
- Time : cfg .Time ,
2041
- Certificates : cfg .Certificates ,
2042
- NameToCertificate : cfg .NameToCertificate ,
2043
- GetCertificate : cfg .GetCertificate ,
2044
- RootCAs : cfg .RootCAs ,
2045
- NextProtos : cfg .NextProtos ,
2046
- ServerName : cfg .ServerName ,
2047
- ClientAuth : cfg .ClientAuth ,
2048
- ClientCAs : cfg .ClientCAs ,
2049
- InsecureSkipVerify : cfg .InsecureSkipVerify ,
2050
- CipherSuites : cfg .CipherSuites ,
2051
- PreferServerCipherSuites : cfg .PreferServerCipherSuites ,
2052
- ClientSessionCache : cfg .ClientSessionCache ,
2053
- MinVersion : cfg .MinVersion ,
2054
- MaxVersion : cfg .MaxVersion ,
2055
- CurvePreferences : cfg .CurvePreferences ,
2056
- Renegotiation : cfg .Renegotiation ,
2041
+ Rand : cfg .Rand ,
2042
+ Time : cfg .Time ,
2043
+ Certificates : cfg .Certificates ,
2044
+ NameToCertificate : cfg .NameToCertificate ,
2045
+ GetCertificate : cfg .GetCertificate ,
2046
+ RootCAs : cfg .RootCAs ,
2047
+ NextProtos : cfg .NextProtos ,
2048
+ ServerName : cfg .ServerName ,
2049
+ ClientAuth : cfg .ClientAuth ,
2050
+ ClientCAs : cfg .ClientCAs ,
2051
+ InsecureSkipVerify : cfg .InsecureSkipVerify ,
2052
+ CipherSuites : cfg .CipherSuites ,
2053
+ PreferServerCipherSuites : cfg .PreferServerCipherSuites ,
2054
+ ClientSessionCache : cfg .ClientSessionCache ,
2055
+ MinVersion : cfg .MinVersion ,
2056
+ MaxVersion : cfg .MaxVersion ,
2057
+ CurvePreferences : cfg .CurvePreferences ,
2058
+ DynamicRecordSizingDisabled : cfg .DynamicRecordSizingDisabled ,
2059
+ Renegotiation : cfg .Renegotiation ,
2057
2060
}
2058
2061
}
2059
2062
0 commit comments