o
    i©¹dÄ  ã                   @   sR   d dl mZmZmZmZ G dd„ deƒZG dd„ deeƒZG dd„ deeeƒZdS )	é    )ÚPluginÚRedHatPluginÚDebianPluginÚUbuntuPluginc                   @   s(   e Zd ZdZdZdZdZdZdd„ ZdS )	ÚOpenSSLzOpenSSL configurationÚopenssl)ÚnetworkÚsecurity)r   )z	openssl.*c                 C   s(   g d¢}dd  |¡ }|  d|d¡ d S )N)Úinput_passwordÚoutput_passwordÚchallengePasswordz^(\s*#?\s*(%s).*=)(.*)ú|ú/etc/ssl/openssl.cnfz	\1 ******)ÚjoinÚdo_file_sub)ÚselfÚprotect_keysÚregexp© r   ú</usr/lib/python3/dist-packages/sos/report/plugins/openssl.pyÚpostproc   s   ýzOpenSSL.postprocN)	Ú__name__Ú
__module__Ú__qualname__Ú
short_descÚplugin_nameÚprofilesÚpackagesÚverify_packagesr   r   r   r   r   r      s    r   c                       ó    e Zd ZdZ‡ fdd„Z‡  ZS )ÚRedHatOpenSSL)ú/etc/pki/tls/openssl.cnfc                    ó   t t| ƒ ¡  |  d¡ d S )Nr!   )Úsuperr    ÚsetupÚadd_copy_spec©r   ©Ú	__class__r   r   r$   +   ó   zRedHatOpenSSL.setup©r   r   r   Úfilesr$   Ú__classcell__r   r   r'   r   r    '   ó    r    c                       r   )ÚDebianOpenSSL)r   c                    r"   )Nr   )r#   r.   r$   r%   r&   r'   r   r   r$   4   r)   zDebianOpenSSL.setupr*   r   r   r'   r   r.   0   r-   r.   N)Úsos.report.pluginsr   r   r   r   r   r    r.   r   r   r   r   Ú<module>   s   
	