fips only build stuff for cli
Signed-off-by: Margo Crawford <margaretc@vmware.com>
This commit is contained in:
parent
fb93620981
commit
f032bc54c4
17
cmd/pinniped/fips_strict.go
Normal file
17
cmd/pinniped/fips_strict.go
Normal file
@ -0,0 +1,17 @@
|
||||
//go:build fips_strict
|
||||
// +build fips_strict
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
_ "crypto/tls/fipsonly" // restricts all TLS configuration to FIPS-approved settings.
|
||||
"log"
|
||||
"time"
|
||||
)
|
||||
|
||||
func init() {
|
||||
go func() {
|
||||
time.Sleep(5 * time.Second)
|
||||
log.Println("using boringcrypto in fipsonly mode")
|
||||
}()
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user