
    <6hE                     ,    d dl mZmZmZ 	 ddZ	 ddZy)   )create_urllib3_contextresolve_cert_reqsresolve_ssl_versionNc                 R    | y|dk(  ry| j                   dk(  r|r|j                  ryy)a?  
    Returns True if the connection requires an HTTP CONNECT through the proxy.

    :param URL proxy_url:
        URL of the proxy.
    :param ProxyConfig proxy_config:
        Proxy configuration from poolmanager.py
    :param str destination_scheme:
        The scheme of the destination. (i.e https, http, etc)
    FhttphttpsT)schemeuse_forwarding_for_https)	proxy_urlproxy_configdestination_schemes      c/var/www/panel.atabookie.online/venv/lib/python3.12/site-packages/pip/_vendor/urllib3/util/proxy.pyconnection_requires_http_tunnelr      s>      V# 	G#11     c                     t        t        |       t        |            }|s |s|st        |d      r|j	                          |S )z\
    Generates a default proxy ssl context if one hasn't been provided by the
    user.
    )ssl_version	cert_reqsload_default_certs)r   r   r   hasattrr   )r   r   ca_certsca_cert_dirca_cert_datassl_contexts         r   create_proxy_ssl_contextr   %   sF     )'4#I.K K!56&&(r   )NNN)ssl_r   r   r   r   r    r   r   <module>r      s"    P P ;?D KOr   