ó
h#ñ]c        !   @@  s×  d  Z  d d l m Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l	 Z	 d d l
 Z
 d d l Z d d l Z d d l m Z d d l m Z m Z m Z d d l m Z m Z m Z m Z y d d	 l	 m Z Wn' e k
 re Z d d
 l m Z n Xd d g Z e Z e j Z  e j! j" Z# e j$ ƒ  Z% e j& ƒ  Z' d Z( e j) e j* e j+ e j, e j- e j. e j/ e j0 e j1 e j2 e j3 e j4 e j5 e j6 e j7 e j8 e j9 e j: e j; e j< e j= e j> e j? e j@ e jA e jB e jC e jD e jE e jF e jG e jH e jI g! ZJ i e jK e jL f e
 jM 6ZN eO e
 d ƒ rfe jP e jP f eN e
 jQ <n  eO e
 d ƒ r‘e jR e jR f eN e
 jS <n  eO e
 d ƒ r¼e jK e jK f eN e
 jT <n  eO e
 d ƒ rçe jU e jU f eN e
 jV <n  eO e
 d ƒ re jL e jL f eN e
 jW <n  eO e
 d ƒ r8eN e
 jM eN e
 jX <n  d „  ZY d „  ZZ d „  Z[ d „  Z\ e j] e[ ƒ Z^ e j_ e\ ƒ Z` d ea f d „  ƒ  YZb e r¥d d „ Zc n d e d „ Zc ec eb _c d ea f d „  ƒ  YZd d S(    sU  
SecureTranport support for urllib3 via ctypes.

This makes platform-native TLS available to urllib3 users on macOS without the
use of a compiler. This is an important feature because the Python Package
Index is moving to become a TLSv1.2-or-higher server, and the default OpenSSL
that ships with macOS is not capable of doing TLSv1.2. The only way to resolve
this is to give macOS users an alternative solution to the problem, and that
solution is to use SecureTransport.

We use ctypes here because this solution must not require a compiler. That's
because pip is not allowed to require a compiler either.

This is not intended to be a seriously long-term solution to this problem.
The hope is that PEP 543 will eventually solve this issue for us, at which
point we can retire this contrib module. But in the short term, we need to
solve the impending tire fire that is Python on Mac without this kind of
contrib module. So...here we are.

To use this module, simply import and inject it::

    import urllib3.contrib.securetransport
    urllib3.contrib.securetransport.inject_into_urllib3()

Happy TLSing!
i    (   t   absolute_importNi   (   t   utili   (   t   Securityt   SecurityConstt   CoreFoundation(   t   _assert_no_errort   _cert_array_from_pemt   _temporary_keychaint   _load_client_cert_chain(   t   _fileobject(   t   backport_makefilet   inject_into_urllib3t   extract_from_urllib3i @  t   PROTOCOL_SSLv2t   PROTOCOL_SSLv3t   PROTOCOL_TLSv1t   PROTOCOL_TLSv1_1t   PROTOCOL_TLSv1_2t   PROTOCOL_TLSc           C@  s:   t  t j _ t t _ t t j _ t t _ t t j _ d S(   sG   
    Monkey-patch urllib3 with SecureTransport-backed SSL-support.
    N(   t   SecureTransportContextR   t   ssl_t
   SSLContextt   HAS_SNIt   Truet   IS_SECURETRANSPORT(    (    (    sT   /data/av2000/b2b/venv/lib/python2.7/site-packages/urllib3/contrib/securetransport.pyR   š   s
    		c           C@  s:   t  t j _ t t _ t t j _ t t _ t t j _ d S(   s>   
    Undo monkey-patching by :func:`inject_into_urllib3`.
    N(   t   orig_util_SSLContextR   R   R   t   orig_util_HAS_SNIR   t   FalseR   (    (    (    sT   /data/av2000/b2b/venv/lib/python2.7/site-packages/urllib3/contrib/securetransport.pyR   ¥   s
    		c         C@  sÓ  d } y—t j |  ƒ } | d k r+ t j S| j } | d } | j ƒ  } d } d } y³ x¬ | | k  r| d k s€ | d k r­ t j | | ƒ s­ t j	 t
 j d ƒ ‚ q­ n  | | }	 t j |	 j | | ƒ }
 | j |
 |	 ƒ } | | 7} | s\ | s t j SPq\ q\ WWno t j	 k
 rz} | j
 } | d k	 r{| t
 j k r{| | d <| t
 j k sj| t
 j k rqt j S‚  q{n X| | d <| | k r˜t j Sd SWn/ t k
 rÎ} | d k	 rÇ| | _ n  t j SXd S(   ss   
    SecureTransport read callback. This is called by ST to request that data
    be returned from the socket.
    i    s	   timed outN(   t   Nonet   _connection_refst   getR   t   errSSLInternalt   sockett
   gettimeoutR   t   wait_for_readt   errort   errnot   EAGAINt   ctypest   c_chart   from_addresst	   recv_intot   errSSLClosedGracefult
   ECONNRESETt   EPIPEt   errSSLClosedAbortt   errSSLWouldBlockt	   Exceptiont
   _exception(   t   connection_idt   data_buffert   data_length_pointert   wrapped_sockett   base_sockett   requested_lengtht   timeoutR#   t
   read_countt	   remainingt   buffert
   chunk_sizet   e(    (    sT   /data/av2000/b2b/venv/lib/python2.7/site-packages/urllib3/contrib/securetransport.pyt   _read_callback°   sN    	


	


c         C@  s±  d } yut j |  ƒ } | d k r+ t j S| j } | d } t j | | ƒ } | j ƒ  } d } d }	 y xx |	 | k  rå | d k s’ | d k r¿ t	 j
 | | ƒ s¿ t j t j d ƒ ‚ q¿ n  | j | ƒ }
 |	 |
 7}	 | |
 } qn WWno t j k
 rX} | j } | d k	 rY| t j k rY|	 | d <| t j k sH| t j k rOt j S‚  qYn X|	 | d <|	 | k rvt j Sd SWn/ t k
 r¬} | d k	 r¥| | _ n  t j SXd S(   sx   
    SecureTransport write callback. This is called by ST to request that data
    actually be sent on the network.
    i    s	   timed outN(   R   R   R   R   R   R    R&   t	   string_atR!   R   t   wait_for_writeR#   R$   R%   t   sendR+   R,   R-   R.   R/   R0   (   R1   R2   R3   R4   R5   t   bytes_to_writet   dataR7   R#   t   sentt
   chunk_sentR<   (    (    sT   /data/av2000/b2b/venv/lib/python2.7/site-packages/urllib3/contrib/securetransport.pyt   _write_callbackç   sD    	

	


t   WrappedSocketc           B@  s¿   e  Z d  Z d „  Z e j d „  ƒ Z d „  Z d „  Z d „  Z	 d „  Z
 d „  Z d „  Z d d	 „ Z d
 „  Z d „  Z d „  Z d „  Z d „  Z d „  Z e d „ Z d „  Z d „  Z RS(   s²   
    API-compatibility wrapper for Python's OpenSSL wrapped socket object.

    Note: _makefile_refs, _drop(), and _reuse() are needed for the garbage
    collector of PyPy.
    c         C@  sn   | |  _  d  |  _ d |  _ t |  _ d  |  _ d  |  _ d  |  _ d  |  _	 |  j  j
 ƒ  |  _ |  j  j d ƒ d  S(   Ni    (   R    R   t   contextt   _makefile_refsR   t   _closedR0   t	   _keychaint   _keychain_dirt   _client_cert_chainR!   t   _timeoutt
   settimeout(   t   selfR    (    (    sT   /data/av2000/b2b/venv/lib/python2.7/site-packages/urllib3/contrib/securetransport.pyt   __init__(  s    								c         c@  sG   d |  _ d V|  j d k	 rC |  j d } |  _ |  j ƒ  | ‚ n  d S(   s]  
        A context manager that can be used to wrap calls that do I/O from
        SecureTransport. If any of the I/O callbacks hit an exception, this
        context manager will correctly propagate the exception after the fact.
        This avoids silently swallowing those exceptions.

        It also correctly forces the socket closed.
        N(   R   R0   t   close(   RO   t	   exception(    (    sT   /data/av2000/b2b/venv/lib/python2.7/site-packages/urllib3/contrib/securetransport.pyt   _raise_on_error:  s    
	
c         C@  sE   t  j t t ƒ t Œ  } t  j |  j | t t ƒ ƒ } t | ƒ d S(   s4  
        Sets up the allowed ciphers. By default this matches the set in
        util.ssl_.DEFAULT_CIPHERS, at least as supported by macOS. This is done
        custom and doesn't allow changing at this time, mostly because parsing
        OpenSSL cipher strings is going to be a freaking nightmare.
        N(   R   t   SSLCipherSuitet   lent   CIPHER_SUITESt   SSLSetEnabledCiphersRG   R   (   RO   t   cipherst   result(    (    sT   /data/av2000/b2b/venv/lib/python2.7/site-packages/urllib3/contrib/securetransport.pyt   _set_ciphersO  s    c   	      C@  s‚  | s
 d St  j j | ƒ rC t | d ƒ  } | j ƒ  } Wd QXn  d } t j ƒ  } z¹ t | ƒ } t j	 |  j
 t j | ƒ ƒ } t | ƒ | s¤ t j d ƒ ‚ n  t j | | ƒ } t | ƒ t j | t ƒ } t | ƒ t j ƒ  } t j | t j | ƒ ƒ } t | ƒ Wd | r't j | ƒ n  | d k	 rCt j | ƒ n  Xt j t j f } | j | k r~t j d | j ƒ ‚ n  d S(   sÁ   
        Called when we have set custom validation. We do this in two cases:
        first, when cert validation is entirely disabled; and second, when
        using a custom trust DB.
        Nt   rbs   Failed to copy trust references)   certificate verify failed, error code: %d(   t   ost   patht   isfilet   opent   readR   R   t   SecTrustRefR   t   SSLCopyPeerTrustRG   R&   t   byrefR   t   sslt   SSLErrort   SecTrustSetAnchorCertificatest!   SecTrustSetAnchorCertificatesOnlyR   t   SecTrustResultTypet   SecTrustEvaluateR   t	   CFReleaseR   t   kSecTrustResultUnspecifiedt   kSecTrustResultProceedt   value(	   RO   t   verifyt   trust_bundlet   ft
   cert_arrayt   trustRY   t   trust_resultt	   successes(    (    sT   /data/av2000/b2b/venv/lib/python2.7/site-packages/urllib3/contrib/securetransport.pyt   _custom_validate\  s@    


c	      	   C@  s[  t  j d t j t j ƒ |  _ t  j |  j t t	 ƒ }	 t
 |	 ƒ t @ t |  ƒ d }
 x |
 t k rw |
 d d }
 qZ W|  t |
 <Wd QXt  j |  j |
 ƒ }	 t
 |	 ƒ | rù t | t ƒ sÎ | j d ƒ } n  t  j |  j | t | ƒ ƒ }	 t
 |	 ƒ n  |  j ƒ  t  j |  j | ƒ }	 t
 |	 ƒ t  j |  j | ƒ }	 t
 |	 ƒ | sT| d k	 r|t  j |  j t j t ƒ }	 t
 |	 ƒ n  | rÔt ƒ  \ |  _ |  _ t |  j | | ƒ |  _ t  j |  j |  j ƒ }	 t
 |	 ƒ n  x€ t rV|  j  ƒ  h t  j! |  j ƒ }	 |	 t j" k rt# j$ d ƒ ‚ n0 |	 t j% k rB|  j& | | ƒ w×n t
 |	 ƒ PWd QXq×Wd S(   s‘   
        Actually performs the TLS handshake. This is run automatically by
        wrapped socket, and shouldn't be needed in user code.
        iÿÿÿi   Ns   utf-8s   handshake timed out('   R   t   SSLCreateContextR   R   t   kSSLClientSidet   kSSLStreamTypeRG   t   SSLSetIOFuncst   _read_callback_pointert   _write_callback_pointerR   t   _connection_ref_lockt   idR   t   SSLSetConnectiont
   isinstancet   bytest   encodet   SSLSetPeerDomainNameRU   RZ   t   SSLSetProtocolVersionMint   SSLSetProtocolVersionMaxt   SSLSetSessionOptiont"   kSSLSessionOptionBreakOnServerAuthR   R   RJ   RK   R   RL   t   SSLSetCertificateRS   t   SSLHandshakeR.   R    R7   t   errSSLServerAuthCompletedRu   (   RO   t   server_hostnameRn   Ro   t   min_versiont   max_versiont   client_certt
   client_keyt   client_key_passphraseRY   t   handle(    (    sT   /data/av2000/b2b/venv/lib/python2.7/site-packages/urllib3/contrib/securetransport.pyt	   handshakeš  s\    




		
c         C@  s   |  j  j ƒ  S(   N(   R    t   fileno(   RO   (    (    sT   /data/av2000/b2b/venv/lib/python2.7/site-packages/urllib3/contrib/securetransport.pyR’   ô  s    c         C@  s;   |  j  d k r! |  j  d 8_  n  |  j r7 |  j ƒ  n  d  S(   Ni    i   (   RH   RI   RQ   (   RO   (    (    sT   /data/av2000/b2b/venv/lib/python2.7/site-packages/urllib3/contrib/securetransport.pyt   _decref_socketiosø  s    	c         C@  s/   t  j | ƒ } |  j | | ƒ } | |  } | S(   N(   R&   t   create_string_bufferR)   (   RO   t   bufsizR:   t
   bytes_readRB   (    (    sT   /data/av2000/b2b/venv/lib/python2.7/site-packages/urllib3/contrib/securetransport.pyt   recvþ  s    
c      
   C@  sí   |  j  r d S| d  k r( t | ƒ } n  t j | j | ƒ } t j d ƒ } |  j ƒ  ) t j	 |  j
 | | t j | ƒ ƒ } Wd  QX| t j k r· | j d k ræ t j d ƒ ‚ qæ n/ | t j t j f k rÜ |  j ƒ  n
 t | ƒ | j S(   Ni    s   recv timed out(   RI   R   RU   R&   R'   t   from_buffert   c_size_tRS   R   t   SSLReadRG   Rc   R   R.   Rm   R    R7   R*   t   errSSLClosedNoNotifyRQ   R   (   RO   R:   t   nbytest   processed_bytesRY   (    (    sT   /data/av2000/b2b/venv/lib/python2.7/site-packages/urllib3/contrib/securetransport.pyR)     s     	$
c         C@  s   | |  _  d  S(   N(   RM   (   RO   R7   (    (    sT   /data/av2000/b2b/venv/lib/python2.7/site-packages/urllib3/contrib/securetransport.pyRN   ,  s    c         C@  s   |  j  S(   N(   RM   (   RO   (    (    sT   /data/av2000/b2b/venv/lib/python2.7/site-packages/urllib3/contrib/securetransport.pyR!   /  s    c      
   C@  s   t  j d ƒ } |  j ƒ  / t j |  j | t | ƒ t  j | ƒ ƒ } Wd  QX| t j	 k r| | j
 d k r| t j d ƒ ‚ n
 t | ƒ | j
 S(   Ni    s   send timed out(   R&   R™   RS   R   t   SSLWriteRG   RU   Rc   R   R.   Rm   R    R7   R   (   RO   RB   R   RY   (    (    sT   /data/av2000/b2b/venv/lib/python2.7/site-packages/urllib3/contrib/securetransport.pyR@   2  s    *
c         C@  sG   d } x: | t  | ƒ k  rB |  j | | | t !ƒ } | | 7} q	 Wd  S(   Ni    (   RU   R@   t   SSL_WRITE_BLOCKSIZE(   RO   RB   t
   total_sentRC   (    (    sT   /data/av2000/b2b/venv/lib/python2.7/site-packages/urllib3/contrib/securetransport.pyt   sendallC  s    c         C@  s'   |  j  ƒ   t j |  j ƒ Wd  QXd  S(   N(   RS   R   t   SSLCloseRG   (   RO   (    (    sT   /data/av2000/b2b/venv/lib/python2.7/site-packages/urllib3/contrib/securetransport.pyt   shutdownI  s    c         C@  sÎ   |  j  d k  r» t |  _ |  j r= t j |  j ƒ d  |  _ n  |  j rb t j |  j ƒ d  |  _ n  |  j r® t	 j
 |  j ƒ t j |  j ƒ t j |  j ƒ d  |  _ |  _ n  |  j j ƒ  S|  j  d 8_  d  S(   Ni   (   RH   R   RI   RG   R   Rj   R   RL   RJ   R   t   SecKeychainDeletet   shutilt   rmtreeRK   R    RQ   (   RO   (    (    sT   /data/av2000/b2b/venv/lib/python2.7/site-packages/urllib3/contrib/securetransport.pyRQ   M  s    				c   
      C@  s  | s t  d ƒ ‚ n  t j ƒ  } d  } d  } z¸ t j |  j t j | ƒ ƒ } t | ƒ | sb d  St j	 | ƒ } | s{ d  St j
 | d ƒ } | s™ t ‚ t j | ƒ } | s´ t ‚ t j | ƒ } t j | ƒ }	 t j |	 | ƒ } Wd  | rþ t j | ƒ n  | rt j | ƒ n  X| S(   Ns2   SecureTransport only supports dumping binary certsi    (   t
   ValueErrorR   Ra   R   Rb   RG   R&   Rc   R   t   SecTrustGetCertificateCountt   SecTrustGetCertificateAtIndext   AssertionErrort   SecCertificateCopyDataR   t   CFDataGetLengtht   CFDataGetBytePtrR>   Rj   (
   RO   t   binary_formRr   t   certdatat	   der_bytesRY   t
   cert_countt   leaft   data_lengthR2   (    (    sT   /data/av2000/b2b/venv/lib/python2.7/site-packages/urllib3/contrib/securetransport.pyt   getpeercert`  s6    
c         C@  s   |  j  d 7_  d  S(   Ni   (   RH   (   RO   (    (    sT   /data/av2000/b2b/venv/lib/python2.7/site-packages/urllib3/contrib/securetransport.pyt   _reusež  s    c         C@  s/   |  j  d k  r |  j ƒ  n |  j  d 8_  d  S(   Ni   (   RH   RQ   (   RO   (    (    sT   /data/av2000/b2b/venv/lib/python2.7/site-packages/urllib3/contrib/securetransport.pyt   _drop¡  s    N(   t   __name__t
   __module__t   __doc__RP   t
   contextlibt   contextmanagerRS   RZ   Ru   R‘   R’   R“   R—   R   R)   RN   R!   R@   R¡   R£   RQ   R   R´   Rµ   R¶   (    (    (    sT   /data/av2000/b2b/venv/lib/python2.7/site-packages/urllib3/contrib/securetransport.pyRF   !  s&   			>	Z			(						>	iÿÿÿÿc         C@  s%   |  j  d 7_  t |  | | d t ƒS(   Ni   RQ   (   RH   R	   R   (   RO   t   modet   bufsize(    (    sT   /data/av2000/b2b/venv/lib/python2.7/site-packages/urllib3/contrib/securetransport.pyt   makefile©  s    t   rc         O@  s   d } t  |  | | | | Ž S(   Ni    (   R
   (   RO   R¼   t	   bufferingt   argst   kwargs(    (    sT   /data/av2000/b2b/venv/lib/python2.7/site-packages/urllib3/contrib/securetransport.pyR¾   ­  s    R   c           B@  sË   e  Z d  Z d „  Z e d „  ƒ Z e j d „  ƒ Z e d „  ƒ Z e j d „  ƒ Z e d „  ƒ Z e j d „  ƒ Z d „  Z	 d	 „  Z
 d
 „  Z d d d d „ Z d d d „ Z e e e d d „ Z RS(   s¯   
    I am a wrapper class for the SecureTransport library, to translate the
    interface of the standard library ``SSLContext`` object to calls into
    SecureTransport.
    c         C@  sP   t  | \ |  _ |  _ d |  _ t |  _ d  |  _ d  |  _ d  |  _	 d  |  _
 d  S(   Ni    (   t   _protocol_to_min_maxt   _min_versiont   _max_versiont   _optionsR   t   _verifyR   t   _trust_bundlet   _client_certt   _client_keyt   _client_key_passphrase(   RO   t   protocol(    (    sT   /data/av2000/b2b/venv/lib/python2.7/site-packages/urllib3/contrib/securetransport.pyRP   ¼  s    					c         C@  s   t  S(   sŽ   
        SecureTransport cannot have its hostname checking disabled. For more,
        see the comment on getpeercert() in this file.
        (   R   (   RO   (    (    sT   /data/av2000/b2b/venv/lib/python2.7/site-packages/urllib3/contrib/securetransport.pyt   check_hostnameÅ  s    c         C@  s   d S(   sŽ   
        SecureTransport cannot have its hostname checking disabled. For more,
        see the comment on getpeercert() in this file.
        N(    (   RO   Rm   (    (    sT   /data/av2000/b2b/venv/lib/python2.7/site-packages/urllib3/contrib/securetransport.pyRÍ   Í  s    c         C@  s   |  j  S(   N(   RÆ   (   RO   (    (    sT   /data/av2000/b2b/venv/lib/python2.7/site-packages/urllib3/contrib/securetransport.pyt   optionsÕ  s    c         C@  s   | |  _  d  S(   N(   RÆ   (   RO   Rm   (    (    sT   /data/av2000/b2b/venv/lib/python2.7/site-packages/urllib3/contrib/securetransport.pyRÎ   ß  s    c         C@  s   |  j  r t j St j S(   N(   RÇ   Rd   t   CERT_REQUIREDt	   CERT_NONE(   RO   (    (    sT   /data/av2000/b2b/venv/lib/python2.7/site-packages/urllib3/contrib/securetransport.pyt   verify_modeä  s    c         C@  s"   | t  j k r t n t |  _ d  S(   N(   Rd   RÏ   R   R   RÇ   (   RO   Rm   (    (    sT   /data/av2000/b2b/venv/lib/python2.7/site-packages/urllib3/contrib/securetransport.pyRÑ   è  s    c         C@  s   d  S(   N(    (   RO   (    (    sT   /data/av2000/b2b/venv/lib/python2.7/site-packages/urllib3/contrib/securetransport.pyt   set_default_verify_pathsì  s    
c         C@  s
   |  j  ƒ  S(   N(   RÒ   (   RO   (    (    sT   /data/av2000/b2b/venv/lib/python2.7/site-packages/urllib3/contrib/securetransport.pyt   load_default_certsø  s    c         C@  s%   | t  j j k r! t d ƒ ‚ n  d  S(   Ns5   SecureTransport doesn't support custom cipher strings(   R   R   t   DEFAULT_CIPHERSR§   (   RO   RX   (    (    sT   /data/av2000/b2b/venv/lib/python2.7/site-packages/urllib3/contrib/securetransport.pyt   set_ciphersû  s    c         C@  s.   | d  k	 r t d ƒ ‚ n  | p$ | |  _ d  S(   Ns1   SecureTransport does not support cert directories(   R   R§   RÈ   (   RO   t   cafilet   capatht   cadata(    (    sT   /data/av2000/b2b/venv/lib/python2.7/site-packages/urllib3/contrib/securetransport.pyt   load_verify_locations  s    c         C@  s   | |  _  | |  _ | |  _ d  S(   N(   RÉ   RÊ   t   _client_cert_passphrase(   RO   t   certfilet   keyfilet   password(    (    sT   /data/av2000/b2b/venv/lib/python2.7/site-packages/urllib3/contrib/securetransport.pyt   load_cert_chain  s    		c      	   C@  sl   | s t  ‚ | s t  ‚ | s% t  ‚ t | ƒ } | j | |  j |  j |  j |  j |  j |  j |  j	 ƒ | S(   N(
   Rª   RF   R‘   RÇ   RÈ   RÄ   RÅ   RÉ   RÊ   RË   (   RO   t   sockt   server_sidet   do_handshake_on_connectt   suppress_ragged_eofsRŠ   R4   (    (    sT   /data/av2000/b2b/venv/lib/python2.7/site-packages/urllib3/contrib/securetransport.pyt   wrap_socket  s    N(   R·   R¸   R¹   RP   t   propertyRÍ   t   setterRÎ   RÑ   RÒ   RÓ   RÕ   R   RÙ   RÞ   R   R   Rã   (    (    (    sT   /data/av2000/b2b/venv/lib/python2.7/site-packages/urllib3/contrib/securetransport.pyR   ¶  s    		
				(e   R¹   t
   __future__R    Rº   R&   R$   t   os.pathR\   R¥   R    Rd   t	   threadingt   weakreft    R   t   _securetransport.bindingsR   R   R   t   _securetransport.low_levelR   R   R   R   R	   t   ImportErrorR   t   packages.backports.makefileR
   t   __all__R   R   R   R   R   R   t   WeakValueDictionaryR   t   LockR|   RŸ   t   TLS_AES_256_GCM_SHA384t   TLS_CHACHA20_POLY1305_SHA256t   TLS_AES_128_GCM_SHA256t'   TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384t%   TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384t'   TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256t%   TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256t#   TLS_DHE_DSS_WITH_AES_256_GCM_SHA384t#   TLS_DHE_RSA_WITH_AES_256_GCM_SHA384t#   TLS_DHE_DSS_WITH_AES_128_GCM_SHA256t#   TLS_DHE_RSA_WITH_AES_128_GCM_SHA256t'   TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384t%   TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384t$   TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHAt"   TLS_ECDHE_RSA_WITH_AES_256_CBC_SHAt#   TLS_DHE_RSA_WITH_AES_256_CBC_SHA256t#   TLS_DHE_DSS_WITH_AES_256_CBC_SHA256t    TLS_DHE_RSA_WITH_AES_256_CBC_SHAt    TLS_DHE_DSS_WITH_AES_256_CBC_SHAt'   TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256t%   TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256t$   TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHAt"   TLS_ECDHE_RSA_WITH_AES_128_CBC_SHAt#   TLS_DHE_RSA_WITH_AES_128_CBC_SHA256t#   TLS_DHE_DSS_WITH_AES_128_CBC_SHA256t    TLS_DHE_RSA_WITH_AES_128_CBC_SHAt    TLS_DHE_DSS_WITH_AES_128_CBC_SHAt   TLS_RSA_WITH_AES_256_GCM_SHA384t   TLS_RSA_WITH_AES_128_GCM_SHA256t   TLS_RSA_WITH_AES_256_CBC_SHA256t   TLS_RSA_WITH_AES_128_CBC_SHA256t   TLS_RSA_WITH_AES_256_CBC_SHAt   TLS_RSA_WITH_AES_128_CBC_SHARV   t   kTLSProtocol1t   kTLSProtocol12t   PROTOCOL_SSLv23RÃ   t   hasattrt   kSSLProtocol2R   t   kSSLProtocol3R   R   t   kTLSProtocol11R   R   R   R   R   R=   RE   t   SSLReadFuncRz   t   SSLWriteFuncR{   t   objectRF   R¾   R   (    (    (    sT   /data/av2000/b2b/venv/lib/python2.7/site-packages/urllib3/contrib/securetransport.pyt   <module>   sª   "				7	6ÿ ˆ	