mirror of
https://github.com/slackhq/nebula.git
synced 2026-05-16 12:57:38 +02:00
18 lines
291 B
Go
18 lines
291 B
Go
package nebula
|
|
|
|
import (
|
|
"crypto/fips140"
|
|
"fmt"
|
|
)
|
|
|
|
func fips140version() string {
|
|
switch {
|
|
case fips140.Enforced():
|
|
return fmt.Sprintf("only,version=%s", fips140.Version())
|
|
case fips140.Enabled():
|
|
return fmt.Sprintf("on,version=%s", fips140.Version())
|
|
default:
|
|
return "off"
|
|
}
|
|
}
|