go-fips/fips_off.go

19 lines
363 B
Go
Raw Normal View History

// +build !fips
package fips
2015-03-25 19:20:40 +00:00
// Mode checks whether is FIPS mode is on
func Mode() (ONOFF, error) {
return OFF, ErrFipsDisabled
}
2015-03-25 19:20:40 +00:00
// ModeSet attempts to turn on FIPS for the context of this executable
func ModeSet(mode ONOFF) (ONOFF, error) {
return OFF, ErrFipsDisabled
}
2015-03-25 19:20:40 +00:00
// LastError is empty when fips is not built
func LastError() string {
return ""
}