Hacked By AnonymousFox
�
�܋fU# � �� � d dl mZ d dlZd dlZd dlZd dlZddlmZ ej rd dl m
Z
ddlmZm
Z
ej dd �
� � Zej eef Z ej d� � ZdZ G d
� d � � ZdS )� )�annotationsN� )�ProxySchemeUnsupported)�Literal� )�_TYPE_PEER_CERT_RET�_TYPE_PEER_CERT_RET_DICT�_SelfT�SSLTransport)�bound�_ReturnValuei @ c �� � e Zd ZdZed]d�� � Z d^d_d�Zd`d�Zdad�Zdbd�Z dcddd�Z
dedfd!�Z dgdhd&�Zdidjd)�Z
didkd*�Z dldddd+�dmd3�Zdnd4�Zdnd5�Zej dodpd:�� � Zej dqd=�� � Zdrdsd@�ZdtdA�ZdudC�ZdtdD�ZdtdE�ZdvdG�ZdtdH�ZdwdK�ZdxdL�ZdndM�ZdldydO�Zej dzdR�� � Zej d{dU�� � Zej d|dX�� � Z d}d~d\�ZdS )r aL
The SSLTransport wraps an existing socket and establishes an SSL connection.
Contrary to Python's implementation of SSLSocket, it allows you to chain
multiple TLS connections together. It's particularly useful if you need to
implement TLS within TLS.
The class supports most of the socket API operations.
�ssl_context�ssl.SSLContext�return�Nonec �D � t | d� � st d� � �dS )z�
Raises a ProxySchemeUnsupported if the provided ssl_context can't be used
for TLS in TLS.
The only requirement is that the ssl_context provides the 'wrap_bio'
methods.
�wrap_biozXTLS in TLS requires SSLContext.wrap_bio() which isn't available on non-native SSLContextN)�hasattrr )r s �P/opt/cloudlinux/venv/lib64/python3.11/site-packages/urllib3/util/ssltransport.py�$_validate_ssl_context_for_tls_in_tlsz1SSLTransport._validate_ssl_context_for_tls_in_tls"