summaryrefslogtreecommitdiff
path: root/tests/fips.py
blob: 6b2ba3ef94e271c01357c44c31889498d1360f38 (plain)
1
2
3
4
5
try:
    with open('/proc/sys/crypto/fips_enabled') as f:
        fips_mode = int(f.read())
except (IOError, OSError):
    fips_mode = 0