관리-도구
편집 파일: _openssl.cpython-311.pyc
� �܋f � �� � d dl Z d dlZd dlZd dlZd dlZg d�Z ej d� � Ze j dej dej d fd�� � Zdede fd�Z d d ej d ee dedz ddfd�ZdS )� N)z/etc/ssl/cert.pemz/etc/pki/tls/cert.pemz"/etc/ssl/certs/ca-certificates.crtz/etc/ssl/ca-bundle.pemz^[0-9a-fA-F]{8}\.[0-9]$�ctx�returnc # �( K � t j � � }|j s|j r)t |j � � r| � � � nAt D ]9}t j � |� � r| � |�� � n�:d V � d S )N)�cafile)�ssl�get_default_verify_pathsr �capath�_capath_contains_certs�set_default_verify_paths�_CA_FILE_CANDIDATES�os�path�isfile�load_verify_locations)r �defaultsr s �p/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/pip/_vendor/truststore/_openssl.py�_configure_contextr s� � � � � �+�-�-�H��� �8�?� �/E�h�o�/V�/V� ��$�$�&�&�&�&� *� � �F��w�~�~�f�%�%� ��)�)��)�8�8�8��� � �E�E�E�E�E� r c � � t j � | � � sdS t j | � � D ]}t � |� � r dS � dS )zFCheck whether capath exists and contains certs in the expected format.FT)r r �isdir�listdir�_HASHED_CERT_FILENAME_RE�match)r �names r r r 1 s] � � �7�=�=�� � � ��u�� �6�"�"� � ��#�)�)�$�/�/� ��4�4� ��5r �ssl_context� cert_chain�server_hostnamec � � d S �N� )r r r s r �_verify_peercerts_implr! ; s � � �Dr r )� contextlibr �rer �typingr �compiler �contextmanager� SSLContext�Iteratorr �str�boolr �list�bytesr! r r r �<module>r- s �� � � � � � � � � � � � � � � � � � � � � � � � � &�2�:�&@�A�A� � �� �C�N� �v��t�/D� � � � �� �4�3� �4� � � � � #'� � ��� ��U�� � �4�Z� � � � � � � � r