mirror of
https://github.com/golang/go.git
synced 2025-05-06 08:03:03 +00:00
crypto/tls/internal/fips140tls: use crypto/fips140
There is no need for fips140tls to depend on an internal package, it can use crypto/fips140 directly. Both approaches are equivalent, but using crypto/fips140 makes us exercise a public API and sets precedence. Change-Id: I668e80ee62b711bc60821cee3a54232a33295ee1 Reviewed-on: https://go-review.googlesource.com/c/go/+/642035 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: David Chase <drchase@google.com> Reviewed-by: Filippo Valsorda <filippo@golang.org> Reviewed-by: Junyang Shao <shaojunyang@google.com>
This commit is contained in:
parent
6114b69e0c
commit
d704ef7606
@ -6,14 +6,14 @@
|
|||||||
package fips140tls
|
package fips140tls
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"crypto/internal/fips140"
|
"crypto/fips140"
|
||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
)
|
)
|
||||||
|
|
||||||
var required atomic.Bool
|
var required atomic.Bool
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
if fips140.Enabled {
|
if fips140.Enabled() {
|
||||||
Force()
|
Force()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -552,7 +552,7 @@ var depsRules = `
|
|||||||
|
|
||||||
# TLS, Prince of Dependencies.
|
# TLS, Prince of Dependencies.
|
||||||
|
|
||||||
FIPS, sync/atomic < crypto/tls/internal/fips140tls;
|
crypto/fips140, sync/atomic < crypto/tls/internal/fips140tls;
|
||||||
|
|
||||||
crypto/internal/boring/sig, crypto/tls/internal/fips140tls < crypto/tls/fipsonly;
|
crypto/internal/boring/sig, crypto/tls/internal/fips140tls < crypto/tls/fipsonly;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user