mirror of
https://github.com/refraction-networking/utls.git
synced 2025-04-03 20:17:36 +03:00
This API was added only for BoringCrypto, never shipped in standard Go. This API is also not compatible with the expected future evolution of crypto/x509, as we move closer to host verifiers on macOS and Windows. If we want to merge BoringCrypto into the main tree, it is best not to have differing API. So instead of a hook set by crypto/tls, move the actual check directly into crypto/x509, eliminating the need for exposed API. For #51940. Change-Id: Ia2ae98c745de818d39501777014ea8166cab0b03 Reviewed-on: https://go-review.googlesource.com/c/go/+/395878 TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Russ Cox <rsc@golang.org> Reviewed-by: Roland Shoemaker <roland@golang.org>
20 lines
705 B
Go
20 lines
705 B
Go
// Copyright 2022 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
//go:build !boringcrypto
|
|
|
|
package tls
|
|
|
|
func needFIPS() bool { return false }
|
|
|
|
func supportedSignatureAlgorithms() []SignatureScheme {
|
|
return defaultSupportedSignatureAlgorithms
|
|
}
|
|
|
|
func fipsMinVersion(c *Config) uint16 { panic("fipsMinVersion") }
|
|
func fipsMaxVersion(c *Config) uint16 { panic("fipsMaxVersion") }
|
|
func fipsCurvePreferences(c *Config) []CurveID { panic("fipsCurvePreferences") }
|
|
func fipsCipherSuites(c *Config) []uint16 { panic("fipsCipherSuites") }
|
|
|
|
var fipsSupportedSignatureAlgorithms []SignatureScheme
|