mirror of
https://github.com/vbatts/go-fips.git
synced 2024-12-04 22:35:39 +00:00
18 lines
363 B
Go
18 lines
363 B
Go
// +build !fips
|
|
|
|
package fips
|
|
|
|
// Mode checks whether is FIPS mode is on
|
|
func Mode() (ONOFF, error) {
|
|
return OFF, ErrFipsDisabled
|
|
}
|
|
|
|
// ModeSet attempts to turn on FIPS for the context of this executable
|
|
func ModeSet(mode ONOFF) (ONOFF, error) {
|
|
return OFF, ErrFipsDisabled
|
|
}
|
|
|
|
// LastError is empty when fips is not built
|
|
func LastError() string {
|
|
return ""
|
|
}
|