(info_add)
| 1007 | |
| 1008 | |
| 1009 | def collect_fips(info_add): |
| 1010 | try: |
| 1011 | import _hashlib |
| 1012 | except ImportError: |
| 1013 | _hashlib = None |
| 1014 | |
| 1015 | if _hashlib is not None: |
| 1016 | call_func(info_add, 'fips.openssl_fips_mode', _hashlib, 'get_fips_mode') |
| 1017 | |
| 1018 | try: |
| 1019 | with open("/proc/sys/crypto/fips_enabled", encoding="utf-8") as fp: |
| 1020 | line = fp.readline().rstrip() |
| 1021 | |
| 1022 | if line: |
| 1023 | info_add('fips.linux_crypto_fips_enabled', line) |
| 1024 | except OSError: |
| 1025 | pass |
| 1026 | |
| 1027 | |
| 1028 | def collect_tempfile(info_add): |