| Server IP : 46.17.175.229 / Your IP : 216.73.216.177 Web Server : LiteSpeed System : Linux lt-bnk-web1163.main-hosting.eu 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64 User : u528038015 ( 528038015) PHP Version : 8.2.33 Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python37/lib/python3.7/site-packages/setuptools/__pycache__/ |
Upload File : |
B
?�me-! � @ s� d dl Z d dlZd dlZd dlZd dlZd dlmZmZmZm Z d dl
mZmZ yd dl
Z
W n ek
rt dZ
Y nX dddddgZd �� �� ZyejjZejZW n ek
r� e ZZY nX e
dk o�eeefkZyd d
l
mZmZ W nR ek
�r: yd dlmZ d dlmZ W n ek
�r4 dZdZY nX Y nX e�sRG d
d� de�Ze�sjddd�Zdd� ZG dd� de�ZG dd� de�Zd dd�Z dd� Z!e!dd� �Z"dd� Z#dd� Z$dS )!� N)�urllib�http_client�map�filter)�ResolutionError�ExtractionError�VerifyingHTTPSHandler�find_ca_bundle�is_available�
cert_paths�
opener_fora
/etc/pki/tls/certs/ca-bundle.crt
/etc/ssl/certs/ca-certificates.crt
/usr/share/ssl/certs/ca-bundle.crt
/usr/local/share/certs/ca-root.crt
/etc/ssl/cert.pem
/System/Library/OpenSSL/certs/cert.pem
/usr/local/share/certs/ca-root-nss.crt
/etc/ssl/ca-bundle.pem
)�CertificateError�match_hostname)r
)r c @ s e Zd ZdS )r
N)�__name__�
__module__�__qualname__� r r �G/opt/alt/python37/lib/python3.7/site-packages/setuptools/ssl_support.pyr
5 s r
� c
C s� g }| sdS | � d�}|d }|dd� }|�d�}||krLtdt| � ��|s`| �� |�� kS |dkrt|�d� n>|�d �s�|�d �r�|�t�|�� n|�t�|�� d
d�� x|D ]}|�t�|�� q�W t�
dd
�|� d tj�} | �
|�S )zqMatching according to RFC 6125, section 6.4.3
https://tools.ietf.org/html/rfc6125#section-6.4.3
F�.r r N�*z,too many wildcards in certificate DNS name: z[^.]+zxn--z\*z[^.]*z\Az\.z\Z)�split�countr
�repr�lower�append�
startswith�re�escape�replace�compile�join�
IGNORECASE�match)
�dn�hostname�
max_wildcards�pats�parts�leftmost� remainder� wildcards�frag�patr r r �_dnsname_match; s*
r. c C s� | st d��g }| �dd�}x0|D ](\}}|dkr"t||�r@dS |�|� q"W |s�xF| �dd�D ]6}x0|D ](\}}|dkrjt||�r�dS |�|� qjW q`W t|�dkr�td |d
�tt|��f ��n*t|�dkr�td||d f ��ntd
��dS )a= Verify that *cert* (in decoded format as returned by
SSLSocket.getpeercert()) matches the *hostname*. RFC 2818 and RFC 6125
rules are followed, but IP addresses are not accepted for *hostname*.
CertificateError is raised on failure. On success, the function
returns nothing.
zempty or no certificate�subjectAltNamer �DNSN�subject�
commonNamer z&hostname %r doesn't match either of %sz, zhostname %r doesn't match %rr z=no appropriate commonName or subjectAltName fields were found) �
ValueError�getr. r �lenr
r! r r )�certr% �dnsnames�san�key�value�subr r r r o s.
r c @ s e Zd ZdZdd� Zdd� ZdS )r z=Simple verifying handler: no auth, subclasses, timeouts, etc.c C s || _ t�| � d S )N)� ca_bundle�HTTPSHandler�__init__)�selfr<