KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /proc/21585/root/usr/lib64/python2.4/site-packages/M2Crypto/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/21585/root/usr/lib64/python2.4/site-packages/M2Crypto/httpslib.pyo
mò
måìPc@s–dZdkZdkZdkZdkZdkZdkTdklZdkZde	fd„ƒYZ
defd„ƒYZde
fd	„ƒYZ
dS(
szM2Crypto support for Python 1.5.2 and Python 2.x's httplib. 

Copyright (c) 1999-2004 Ng Pheng Siong. All rights reserved.N(t*(s
HTTPS_PORTtHTTPSConnectioncBs5tZdZeZeed„Zd„Zd„ZRS(sA
    This class allows communication via SSL using M2Crypto.
    cKsè|iƒ}y|idƒWntj
onXy|idƒWntj
onXy|idƒWntj
onX|o
tƒ‚ny|d|_Wn%tj
oti	dƒ|_nXt
i||||ƒdS(Ntkey_filet	cert_filetssl_contexttsslv23(tssltkeystremovet
ValueErrortIllegalKeywordArgumenttselftssl_ctxtKeyErrortSSLtContexttHTTPConnectiont__init__thosttporttstrict(RRRRRR((t7/usr/lib64/python2.4/site-packages/M2Crypto/httpslib.pyRs*

cCsúd}xÊti|i|idtiƒD]§\}}}}}d}zmyHti|i
d|ƒ}|i|i|ifƒ||_
d}dSWntij
o}|}nXWd|dj	o|iƒnXq(W|djotdƒ‚n|‚dS(Nitfamilys"Empty list returned by getaddrinfo(tNoneterrortsockettgetaddrinfoRRRtSOCK_STREAMRt_tsockRt
ConnectionRtconnecttetclosetAssertionError(RR RRRR((RR-s&"	

cCsdS(N((R((RR!Hs(	t__name__t
__module__t__doc__t
HTTPS_PORTtdefault_portRRRR!(((RRs
	tHTTPScBs tZeZdddd„ZRS(NtcKsbti||||ƒy|d|_Wn%tj
ot	i
dƒ|_nX|i|i_dS(NRR(tHTTPRRRRRRRR
RRt_conn(RRRRR((RR^s(R#R$Rt_connection_classRR(((RR(ZstProxyHTTPSConnectioncBsŒtZdZhdd<dd<ZdZdZeeeed„Zddd	„Zd
„Z	d„Z
d„Zd
„Zd„Z
d„ZRS(s 
    An HTTPS Connection that uses a proxy and the CONNECT request.

    When the connection is initiated, CONNECT is first sent to the proxy (along
    with authorization headers, if supplied). If successful, an SSL connection
    will be established over the socket through the proxy and to the target
    host.

    Finally, the actual request is sent over the SSL connection tunneling
    through the proxy.
    thttpiPthttpsi»sProxy-Authorizations
User-AgentcKsAti|||||||_||_
d|_d|_
dS(s†
        Create the ProxyHTTPSConnection object.

        host and port are the hostname and port number of the proxy server.
        N(RRRRRRRtusernamet	_usernametpasswordt	_passwordRt_proxy_autht	_proxy_UA(RRRRR0R2R((RRzs			ic	CsÑti|ƒ\}}|djotd|‚nti|ƒ\}}ti	|ƒ\}}|djo8y|i|}Wq¢t
j
otd|‚q¢Xn||_||_ti|||||ƒdS(Nsunknown URL type: %ssunknown protocol for: %s(turllibt	splittypeturltprototrestRR	t	splithostRt	splitportRRt_portsR
t
_real_hostt
_real_portRt
putrequesttmethodt	skip_hosttskip_accept_encoding(	RRAR8RBRCR9R:RR((RR@ˆs

		cCsi|iƒ|iiƒjo
||_n|iƒ|iiƒjo
||_nti	|||ƒdS(N(
theadertlowerRt
_UA_HEADERtvalueR5t_AUTH_HEADERR4Rt	putheader(RRDRG((RRIœs


cCs.|ip|iƒ|_nti|ƒdS(N(RR4t_encode_authRt
endheaders(R((RRK¥s
cCs~ti|ƒ|ii|iƒƒt|iƒ}|iƒ|i	}|djo|iƒti
d|‚n|iƒdS(NiÈsProxy connection failed: %d(RRRRtsendallt_get_connect_msgtHTTPResponsetresponsetbegintstatustcodeR!RRt
_start_ssl(RRRRO((RR®s

	

cCsŽd|i|if}|d|i|if}|io|d|i|if}n|io|d|i|if}n|d}|S(s6 Return an HTTP CONNECT request to send to the proxy. sCONNECT %s:%d HTTP/1.1
s
Host: %s:%d
s%s: %s
s
N(RR>R?tmsgR5RFR4RH(RRT((RRM¾s


cCsFti|i|iƒ|_|iiƒ|iiƒ|iiƒdS(s* Make this connection's socket SSL-aware. N(RRRRRt	setup_ssltset_connect_statetconnect_ssl(R((RRSÉs


cCsU|io|ipdSnd|i|if}ti|ƒiddƒ}d|S(s> Encode the username and password for use in the auth header. s%s:%ss
R)sBasic %sN(	RR1R3Rtuserpasstbase64tencodestringtreplacetenc_userpass(RRXR\((RRJÐs(R#R$R%R=RHRFRRR@RIRKRRMRSRJ(((RR-hs							(R%tstringtsysRR6RYthttplibR&RRRR*R(R-(
R&R-R(RYR6R^RRRR]((Rt?s			
	L

Anon7 - 2021