disable builds for go1.18 (#16332)

This commit is contained in:
Harshavardhana
2022-12-30 11:37:07 -08:00
committed by GitHub
parent b67d97b1ba
commit 75faef888e
6 changed files with 13 additions and 12 deletions

View File

@@ -139,8 +139,8 @@ func TLSCurveIDs() []tls.CurveID {
curves = append(curves, tls.X25519) // Only enable X25519 in non-FIPS mode
}
curves = append(curves, tls.CurveP256)
if go18 {
// With go1.18 enable P384, P521 newer constant time implementations.
if go19 {
// With go1.19 enable P384, P521 newer constant time implementations.
curves = append(curves, tls.CurveP384, tls.CurveP521)
}
return curves