mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-10-22 15:48:14 +00:00
21 lines
261 B
Bash
21 lines
261 B
Bash
#!/bin/sh
|
|
|
|
xcat_fips_enabled()
|
|
{
|
|
grep -q '^1$' "${1:-/proc/sys/crypto/fips_enabled}" 2>/dev/null
|
|
}
|
|
|
|
xcat_fips_state()
|
|
{
|
|
if xcat_fips_enabled "${1:-}"; then
|
|
printf '1'
|
|
else
|
|
printf '0'
|
|
fi
|
|
}
|
|
|
|
xcat_dsa_allowed()
|
|
{
|
|
[ "$1" = 0 ]
|
|
}
|