ruạṛ
a ���f� � @ s d dl mZ dd� ZdS )� )�absolute_importc C s� ddl }t|d�s*| �d� | �d� dS |�� dkrN| �d� | �d� dS | �d � z0ddl}|�� }|� | �d � | �d� W dS | �d� Y n0 | �d� d S )zZ Verify that ssl.FIPS_mode() returns 1 and that using md5 raises an exception r N� FIPS_modez%SSL does not have FIPS_mode attributezFIPS is not enabledF� zSSL FIPS_mode is not setz$OpenSSL has FIPS_mode and is active.z)openssl_md5 accessible. FIPS mode not setz!MD5 not active. This is expected.z'FIPS checks completed. FIPS is enabled.T)�ssl�hasattr�debug�infor �_hashlib�openssl_md5)�loggerr r �func� r �I/sparta/input/python_modules/oci_agent_utils/oci_agent_utils/fips/fips.py�is_fips_enabled s* r N)� __future__r r r r r r �<module> s
cải xoăn