mirror of
https://github.com/minio/minio.git
synced 2025-11-07 21:02:58 -05:00
disable builds for go1.18 (#16332)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -15,9 +15,9 @@
|
||||
// You should have received a copy of the GNU Affero General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
//go:build go1.18
|
||||
// +build go1.18
|
||||
//go:build go1.19
|
||||
// +build go1.19
|
||||
|
||||
package fips
|
||||
|
||||
const go18 = true
|
||||
const go19 = true
|
||||
@@ -15,9 +15,9 @@
|
||||
// You should have received a copy of the GNU Affero General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
//go:build !go1.18
|
||||
// +build !go1.18
|
||||
//go:build !go1.19
|
||||
// +build !go1.19
|
||||
|
||||
package fips
|
||||
|
||||
const go18 = false
|
||||
const go19 = false
|
||||
Reference in New Issue
Block a user