mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-03 20:26:22 +00:00
That entailed a few other fixes, eg small Notary API changes. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
14 lines
336 B
Go
14 lines
336 B
Go
package notary
|
|
|
|
import "os"
|
|
|
|
// FIPSEnvVar is the name of the environment variable that is being used to switch
|
|
// between FIPS and non-FIPS mode
|
|
const FIPSEnvVar = "GOFIPS"
|
|
|
|
// FIPSEnabled returns true if environment variable `GOFIPS` has been set to enable
|
|
// FIPS mode
|
|
func FIPSEnabled() bool {
|
|
return os.Getenv(FIPSEnvVar) != ""
|
|
}
|