(info_add)
| 978 | |
| 979 | |
| 980 | def collect_fips(info_add): |
| 981 | try: |
| 982 | import _hashlib |
| 983 | except ImportError: |
| 984 | _hashlib = None |
| 985 | |
| 986 | if _hashlib is not None: |
| 987 | call_func(info_add, 'fips.openssl_fips_mode', _hashlib, 'get_fips_mode') |
| 988 | |
| 989 | try: |
| 990 | with open("/proc/sys/crypto/fips_enabled", encoding="utf-8") as fp: |
| 991 | line = fp.readline().rstrip() |
| 992 | |
| 993 | if line: |
| 994 | info_add('fips.linux_crypto_fips_enabled', line) |
| 995 | except OSError: |
| 996 | pass |
| 997 | |
| 998 | |
| 999 | def collect_tempfile(info_add): |