diff options
Diffstat (limited to 'ipapython')
| -rw-r--r-- | ipapython/ipautil.py | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/ipapython/ipautil.py b/ipapython/ipautil.py index 9384057bf..931f13535 100644 --- a/ipapython/ipautil.py +++ b/ipapython/ipautil.py @@ -1467,25 +1467,6 @@ else: fsdecode = os.fsdecode #pylint: disable=no-member -def is_fips_enabled(): - """ - Checks whether this host is FIPS-enabled. - - Returns a boolean indicating if the host is FIPS-enabled, i.e. if the - file /proc/sys/crypto/fips_enabled contains a non-0 value. Otherwise, - or if the file /proc/sys/crypto/fips_enabled does not exist, - the function returns False. - """ - try: - with open(paths.PROC_FIPS_ENABLED, 'r') as f: - if f.read().strip() != '0': - return True - except IOError: - # Consider that the host is not fips-enabled if the file does not exist - pass - return False - - def unescape_seq(seq, *args): """ unescape (remove '\\') all occurences of sequence in input strings. |
