We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01887cf commit c41bd3eCopy full SHA for c41bd3e
tlz/fips.go
@@ -1,10 +1,13 @@
1
-//go:build goexperiment.opensslcrypto
+//go:build goexperiment.opensslcrypto && requirefips
2
3
package tlz
4
5
-import "crypto/boring"
+import (
6
+ "crypto/boring"
7
+ _ "crypto/tls/fipsonly"
8
+)
9
-// returns true if the binary was built with FIPS mode enabled
10
+// returns true if the OpenSSL FIPS provider is active at runtime
11
func FipsEnabled() bool {
12
return boring.Enabled()
13
}
tlz/nofips.go
@@ -1,4 +1,4 @@
-//go:build !goexperiment.opensslcrypto
+//go:build !goexperiment.opensslcrypto && !requirefips
0 commit comments