ÿØÿàJFIFÿþ ÿÛC       ÿÛC ÿÀÿÄÿÄ"#QrÿÄÿÄ&1!A"2qQaáÿÚ ?Øy,æ/3JæÝ¹È߲؋5êXw²±ÉyˆR”¾I0ó2—PI¾IÌÚiMö¯–þrìN&"KgX:Šíµ•nTJnLK„…@!‰-ý ùúmë;ºgµŒ&ó±hw’¯Õ@”Ü— 9ñ-ë.²1<yà‚¹ïQÐU„ہ?.’¦èûbß±©Ö«Âw*VŒ) `$‰bØÔŸ’ëXÖ-ËTÜíGÚ3ð«g Ÿ§¯—Jx„–’U/ÂÅv_s(Hÿ@TñJÑãõçn­‚!ÈgfbÓc­:él[ðQe 9ÀPLbÃãCµm[5¿ç'ªjglå‡Ûí_§Úõl-;"PkÞÞÁQâ¼_Ñ^¢SŸx?"¸¦ùY騐ÒOÈ q’`~~ÚtËU¹CڒêV  I1Áß_ÿÙ [c@@s\ddlmZddlZddlZddlZddlZddlZddlmZm Z ddl Z ddl m Z ddlmZddlmZyddlZejZWn3eefk rdZdefd YZnXy eZWn'ek r d efd YZnXdd lmZmZmZm Z dd l!m"Z"m#Z#ddl$m%Z%m&Z&m'Z'm(Z(m)Z)ddl*m+Z+ddl,m-Z-ej.e/Z0idd6dd6Z1ej2dddZ3de4fdYZ5dee4fdYZdefdYZ6de6fdYZ7d Z8erRe6Z9e7Z6ne5Z6dS(!i(tabsolute_importN(terrorttimeouti(tsix(tHTTPConnection(t HTTPExceptiont BaseSSLErrorcB@seZRS((t__name__t __module__(((sC/opt/alt/python27/lib/python2.7/site-packages/urllib3/connection.pyRstConnectionErrorcB@seZRS((RR(((sC/opt/alt/python27/lib/python2.7/site-packages/urllib3/connection.pyR s(tNewConnectionErrortConnectTimeoutErrortSubjectAltNameWarningtSystemTimeWarning(tmatch_hostnametCertificateError(tresolve_cert_reqstresolve_ssl_versiontassert_fingerprinttcreate_urllib3_contexttssl_wrap_socket(t connection(tHTTPHeaderDictiPthttpithttpsiiitDummyConnectioncB@seZdZRS(s-Used to detect a failed ConnectionCls import.(RRt__doc__(((sC/opt/alt/python27/lib/python2.7/site-packages/urllib3/connection.pyRBsRcB@seZdZedZejejdfgZe Z dZ e dZ e jdZ dZdZdZd d d ZRS( s{ Based on httplib.HTTPConnection but provides an extra constructor backwards-compatibility layer between older and newer Pythons. Additional keyword parameters are used to configure attributes of the connection. Accepted parameters include: - ``strict``: See the documentation on :class:`urllib3.connectionpool.HTTPConnectionPool` - ``source_address``: Set the source address for the current connection. .. note:: This is ignored for Python 2.6. It is only applied for 2.7 and 3.x - ``socket_options``: Set specific options on the underlying socket. If not specified, then defaults are loaded from ``HTTPConnection.default_socket_options`` which includes disabling Nagle's algorithm (sets TCP_NODELAY to 1) unless the connection is behind a proxy. For example, if you wish to enable TCP Keep Alive in addition to the defaults, you might pass:: HTTPConnection.default_socket_options + [ (socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1), ] Or you may want to disable the defaults by passing an empty list (e.g., ``[]``). RicO@stjr|jddn|jd|_tjdkrP|jddn|jd|j|_ t j |||dS(Ntstricttsource_addressiitsocket_options(ii( RtPY3tpoptNonetgetRtsyst version_infotdefault_socket_optionsRt_HTTPConnectiont__init__(tselftargstkw((sC/opt/alt/python27/lib/python2.7/site-packages/urllib3/connection.pyR&ks cC@s|jjdS(s Getter method to remove any trailing dots that indicate the hostname is an FQDN. In general, SSL certificates don't include the trailing dot indicating a fully-qualified domain name, and thus, they don't validate properly when checked against a domain name that includes the dot. In addition, some servers may not expect to receive the trailing dot when provided. However, the hostname with trailing dot is critical to DNS resolution; doing a lookup with the trailing dot will properly only resolve the appropriate FQDN, whereas a lookup without a trailing dot will search the system's search domain list. Thus, it's important to keep the original host around for use only in those cases where it's appropriate (i.e., when doing DNS lookup to establish the actual TCP connection across which we're going to send HTTP requests). t.(t _dns_hosttrstrip(R'((sC/opt/alt/python27/lib/python2.7/site-packages/urllib3/connection.pythostscC@s ||_dS(s Setter for the `host` property. We assume that only urllib3 uses the _dns_host attribute; httplib itself only uses `host`, and it seems reasonable that other libraries follow suit. N(R+(R'tvalue((sC/opt/alt/python27/lib/python2.7/site-packages/urllib3/connection.pyR-scC@si}|jr|j|dR?theaderR.tstringish_typestchunktlen_str((sC/opt/alt/python27/lib/python2.7/site-packages/urllib3/connection.pytrequest_chunkeds8         N(RRRtport_by_schemet default_porttsockett IPPROTO_TCPt TCP_NODELAYR$tFalset is_verifiedR&tpropertyR-tsetterR6R<R=R RU(((sC/opt/alt/python27/lib/python2.7/site-packages/urllib3/connection.pyRGs    tHTTPSConnectioncB@s?eZedZdZddddejddZdZ RS(Rc K@sJtj|||d|d||||_||_||_d|_dS(NRRR(RR&tkey_filet cert_filet ssl_contextt _protocol( R'R-R0R`RaRRRbR)((sC/opt/alt/python27/lib/python2.7/site-packages/urllib3/connection.pyR&s     c C@s|j}|j||jdkrOtdtddtd|_ntd|d|jd|j d|j|_ dS(Nt ssl_versiont cert_reqsR8tkeyfiletcertfileRb( R6R<RbR RRRRR`RaR8(R'R4((sC/opt/alt/python27/lib/python2.7/site-packages/urllib3/connection.pyR=s     N( RRRVRWR RdRXt_GLOBAL_DEFAULT_TIMEOUTR&R=(((sC/opt/alt/python27/lib/python2.7/site-packages/urllib3/connection.pyR_s     tVerifiedHTTPSConnectioncB@sSeZdZdZdZdZdZdZddddddddZ dZ RS(s[ Based on httplib.HTTPSConnection but wraps the socket with SSL certification. cC@s|dkrB|s|r!d}qB|jdk rB|jj}qBn||_||_||_||_||_|otj j ||_ |otj j ||_ dS(sX This method should only be called once, before the connection is used. t CERT_REQUIREDN( R Rbt verify_modeR`RaRetassert_hostnameRtostpatht expandusertca_certst ca_cert_dir(R'R`RaReRpRlRRq((sC/opt/alt/python27/lib/python2.7/site-packages/urllib3/connection.pytset_certs        cC@s|j}|j}t|ddrO||_|jd|_|j}ntj j t k}|rt j djt tn|jdkrtdt|jdt|j|_n|j}t|j|_td|d|jd|jd |jd |jd |d ||_|jrJt|jjd t|jn|jtj krt|dt! r|j"t!k r|jj}|j#ddst j dj|t$nt%||j"p|n|jtj&kp|jdk |_'dS(NR7isWSystem time is way off (before {0}). This will probably lead to SSL verification errorsRdReR8RfRgRpRqtserver_hostnameRbt binary_formtcheck_hostnametsubjectAltNamesCertificate for {0} has no `subjectAltName`, falling back to check for a `commonName` for now. This feature is being removed by major browsers and deprecated by RFC 2818. (See https://github.com/shazow/urllib3/issues/497 for details.)(((R6R-R9R R8R:R;R7tdatetimetdatettodayt RECENT_DATEtwarningstwarntformatR RbRRRdRReRkRR`RaRpRqRt getpeercerttTruetsslt CERT_NONER[RlR!R t_match_hostnameRjR\(R'R4thostnamet is_time_offtcontexttcert((sC/opt/alt/python27/lib/python2.7/site-packages/urllib3/connection.pyR=8sT                N( RRRR ReRpRqRdRRrR=(((sC/opt/alt/python27/lib/python2.7/site-packages/urllib3/connection.pyRis cC@sJyt||Wn2tk rE}tjd||||_nXdS(Ns@Certificate did not match expected hostname: %s. Certificate: %s(RRtlogRt _peer_cert(Rtasserted_hostnameR5((sC/opt/alt/python27/lib/python2.7/site-packages/urllib3/connection.pyRs  (:t __future__RRwtloggingRmR"RXRR2RR1R{tpackagesRtpackages.six.moves.http_clientRR%RRtSSLErrorRt ImportErrortAttributeErrorR t BaseExceptionR t NameErrort Exceptiont exceptionsR R R R tpackages.ssl_match_hostnameRRt util.ssl_RRRRRtutilRt _collectionsRt getLoggerRRRVRxRztobjectRR_RiRtUnverifiedHTTPSConnection(((sC/opt/alt/python27/lib/python2.7/site-packages/urllib3/connection.pytsN          "(  &l