HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: xnsbb3110 (1041)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/local/CyberCP/lib/python3.10/site-packages/docker/__pycache__/tls.cpython-310.pyc
o

�h	�@s&ddlZddlmZGdd�d�ZdS)�N�)�errorsc@s.eZdZdZdZdZdZddd�Zdd�ZdS)�	TLSConfigaj
    TLS configuration.

    Args:
        client_cert (tuple of str): Path to client cert, path to client key.
        ca_cert (str): Path to CA cert file.
        verify (bool or str): This can be a bool or a path to a CA cert
            file to verify against. If ``True``, verify using ca_cert;
            if ``False`` or not specified, do not verify.
    NcCs�|r0z|\}}Wn
tyt�d�d�w|r&|r&tj�|�r&tj�|�s+t�d��||f|_||_||_|jrH|jrJtj�|j�sLt�d��dSdSdS)Nz=client_cert must be a tuple of (client certificate, key file)zRPath to a certificate and key files must be provided through the client_cert paramz.Invalid CA certificate provided for `ca_cert`.)	�
ValueErrorr�TLSParameterError�os�path�isfile�cert�verify�ca_cert)�self�client_certrr�tls_cert�tls_key�r�=/usr/local/CyberCP/lib/python3.10/site-packages/docker/tls.py�__init__s0���
��
��zTLSConfig.__init__cCs4|jr|jr|j|_n|j|_|jr|j|_dSdS)z<
        Configure a client with these TLS options.
        N)rrr
)r
�clientrrr�configure_client9s
�zTLSConfig.configure_client)NNN)	�__name__�
__module__�__qualname__�__doc__r
rrrrrrrrrs

$r)r�rrrrrr�<module>s