관리-도구
편집 파일: _openssl.cpython-312.pyc
� G��e � � � 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�Zy)� 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 # �4 K � t j � }|j s!|j r&t |j � r| j � n>t D ]5 }t j j |� s�#| j |�� n d �� y �w)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 ��/builddir/build/BUILDROOT/alt-python312-pip-23.3.1-1.el8.x86_64/opt/alt/python312/lib/python3.12/site-packages/pip/_vendor/truststore/_openssl.py�_configure_contextr su � �� � �+�+�-�H����8�?�?�/E�h�o�o�/V��$�$�&� *� �F��w�w�~�~�f�%��)�)��)�8�� � �s �A;B�>Br c � � t j j | � syt j | � D ] }t j |� s� y y)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 sC � � �7�7�=�=�� ��� � �6�"� ��#�)�)�$�/��� � �ssl_context� cert_chain�server_hostnamec � � y �N� )r r r s r �_verify_peercerts_implr! ; s � � r r )� contextlibr �rer �typingr �compiler �contextmanager� SSLContext�Iteratorr �str�boolr �list�bytesr! r r r �<module>r- s� �� � � � � � � � &�2�:�:�&@�A� � ��� �C�N�N� �v���t�/D� � � �4�3� �4� � #'� ���� ��U�� � �4�Z� � � r