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 :  /usr/lib64/python2.4/site-packages/M2Crypto/SSL/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib64/python2.4/site-packages/M2Crypto/SSL/Connection.pyo
mò
måìPc@s‡dZdkZdklZlZdklZdklZlZlZdk	Z	dk
Z
dklZd„Z
dfd„ƒYZdS(	sUM2Crypto.SSL.Connection

Copyright (c) 1999-2004 Ng Pheng Siong. All rights reserved.N(sCiphersCipher_Stack(sSession(sBIOsX509sm2(sSSLErrorcOsdS(Ni((targstkw((t=/usr/lib64/python2.4/site-packages/M2Crypto/SSL/Connection.pyt_serverPostConnectionCheckst
ConnectioncBs…tZdZeiƒZeZeiZ	ei
Zee
id„Zd„Zd„Zd„Zd„Zd„Zd„Zdd	„Zd
„Zd„Zd„Zd
„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z!d„Z"d„Z#d„Z$d„Z%d„Z&d„Z'd„Z(d„Z)dd„Z*dd„Z+d „Z,e,Z-Z.dd!„Z/e/Z0d"„Z1d#„Z2d$„Z3d%„Z4d&„Z5d'„Z6d(„Z7d)„Z8d*„Z9d+„Z:d,„Z;d-„Z<d.„Z=d/„Z>d0„Z?d1d2„Z@d3„ZAd4d5d6„ZBd7„ZCd8„ZDd9„ZEd:„ZFd;„ZGd<„ZHd=„ZId>„ZJd?„ZKd@„ZLdA„ZMdB„ZNRS(CsAn SSL connection.cCsê||_ti|iiƒ|_|dj	o
||_n5ti|ti	ƒ|_|ii
titidƒ|ii
ƒ|_|iiƒ|_|idjo
d|_nti|_|iidj	o|i|iiƒndS(Nif-1.0(tctxtselftm2tssl_newtssltsocktNonetsockettfamilytSOCK_STREAMt
setsockoptt
SOL_SOCKETtSO_REUSEADDRtfilenot_filenot
gettimeoutt_timeouttbio_noclosetssl_close_flagtpost_connection_checkt"set_post_connection_check_callback(RRR
R
((Rt__init__s	


cCs™t|ddƒo|i|iƒnt|ddƒo|i|iƒn|itijo't|ddƒo|i	|i
ƒn|iiƒdS(NtsslbiotsockbioR	(
tgetattrRRtm2_bio_freeRRRRRtm2_ssl_freeR	Rtclose(R((Rt__del__3s&cCsti|iƒdS(N(Rtssl_shutdownRR	(R((RR <scCsti|iƒS(s§
        If there were errors in this connection, call clear() rather
        than close() to end it, so that bad sessions will be cleared
        from cache.
        N(Rt	ssl_clearRR	(R((Rtclear?scCsti|i|ƒdS(N(Rtssl_set_shutdown1RR	tmode(RR&((Rtset_shutdownGscCsti|iƒS(N(Rtssl_get_shutdownRR	(R((Rtget_shutdownJscCs|ii|ƒdS(N(RRtbindtaddr(RR+((RR*MsicCs|ii|ƒdS(N(RRtlistentqlen(RR-((RR,PscCsti|i|ƒS(N(Rt
ssl_get_errorRR	tret(RR/((RR.SscCs&ti|i|iƒ|iƒƒdS(s4
        Explicitly set read and write bios
        N(Rtssl_set_bioRR	treadbiot_ptrtwritebio(RR1R3((Rtset_bioVscCsti|i|ƒdS(s
        Set the acceptable client CA list. If the client
        returns a certificate, it must have been issued by
        one of the CAs listed in cafile.
        
        Makes sense only for servers.
        
        @param cafile: Filename from which to load the CA list.
        N(Rt ssl_set_client_CA_list_from_fileRR	tcafile(RR6((Rtset_client_CA_list_from_file\s	cCsti|i|iiƒdS(sÖ
        Set the acceptable client CA list. If the client
        returns a certificate, it must have been issued by
        one of the CAs listed in context.
        
        Makes sense only for servers.
        N(Rt#ssl_set_client_CA_list_from_contextRR	R(R((Rtset_client_CA_list_from_contexthscCs
||_dS(N(R+R(RR+((Rt
setup_addrrscCs6|titifjotdƒ‚n||_dS(s{
        By default, SSL struct will be freed in __del__. Call with
        m2.bio_close to override this default.
        s+flag must be m2.bio_close or m2.bio_nocloseN(tflagRt	bio_closeRt
ValueErrorRR(RR;((Rtset_ssl_close_flaguscCsrti|iiƒdƒ|_ti|i|i|iƒtiti	ƒƒ|_
ti|i
|itiƒdS(Ni(
Rtbio_new_socketRRRRR0R	tbio_newt	bio_f_sslRtbio_set_sslR(R((Rt	setup_ssl~scCs|i|ƒ|iƒdS(t
DeprecatedN(RR:R+RC(RR+((Rt
_setup_sslˆs
cCsti|iƒdS(N(Rtssl_set_accept_stateRR	(R((Rtset_accept_statescCsti|i|iƒS(N(Rt
ssl_acceptRR	R(R((Rt
accept_sslscCs«|iiƒ\}}t|i|ƒ}||_|iƒ|i	ƒ|i
ƒt|d|iƒ}|dj	o1||iƒ|idƒptid‚q¡n||fS(sÃAccept an SSL connection. The return value is a pair (ssl, addr) where
        ssl is a new SSL connection object and addr is the address bound to the
        the other end of the SSL connection.tpostConnectionCheckispost connection check failedN(RRtacceptR
R+RRR	RCRGRIRtserverPostConnectionChecktcheckRt
get_peer_certtCheckertSSLVerificationError(RR+R
R	RM((RRK“s	



cCsti|iƒdS(N(Rtssl_set_connect_stateRR	(R((Rtset_connect_state£scCsti|i|iƒS(N(Rtssl_connectRR	R(R((Rtconnect_ssl¦scCs|ii|ƒ||_|iƒ|iƒ|iƒ}t|d|i	ƒ}|dj	o1||iƒ|idƒpt
id‚qŒn|S(NRJispost connection check failed(RRtconnectR+RCRRRTR/RtclientPostConnectionCheckRMRRNRORP(RR+R/RM((RRU©s	


cCsti|i|ƒdS(N(Rtssl_set_shutdownRR	thow(RRX((RtshutdownµscCsti|iƒS(s-Renegotiate this connection's SSL parameters.N(Rtssl_renegotiateRR	(R((Rtrenegotiate¸scCsti|iƒS(sKReturn the numbers of octets that can be read from the 
        connection.N(Rtssl_pendingRR	(R((Rtpending¼scCsti|i||iƒS(N(Rt	ssl_writeRR	tdataR(RR_((Rt
_write_bioÁscCsti|i|ƒS(N(Rtssl_write_nbioRR	R_(RR_((Rt_write_nbioÄsicCs3|djo
td‚nti|i||iƒS(Nis	size <= 0(tsizeR=Rtssl_readRR	R(RRc((Rt	_read_bioÇs

cCs-|djo
td‚nti|i|ƒS(Nis	size <= 0(RcR=Rt
ssl_read_nbioRR	(RRc((Rt
_read_nbioÌs

cCs.|idjo|i|ƒSn|i|ƒS(Nf0.0(RRR`R_Rb(RR_((RtwriteÑscCs.|idjo|i|ƒSn|i|ƒS(Nf0.0(RRReRcRg(RRc((Rtread×scCs1|ii|ƒ|o
d|_n
d|_dS(s2Set this connection's underlying socket to _mode_.f-1.0f0.0N(RRtsetblockingR&R(RR&((RRjÝs

cCs:|ii|ƒ||_|idjo
d|_ndS(s?Set this connection's underlying socket's timeout to _timeout_.f-1.0N(RRt
settimeoutttimeoutRR(RRl((RRkås
	cCs
|iiƒS(N(RRR(R((RRìscGst|ii|ƒS(N(tapplyRRt
getsockoptR(RR((RRnïscGst|ii|ƒS(N(RmRRRR(RR((RRòscCsti|iƒS(sGReturn the SSL.Context object associated with this 
        connection.N(Rtssl_get_ssl_ctxRR	(R((Rtget_contextõscCsti|iƒS(s(Return the SSL state of this connection.N(Rt
ssl_get_stateRR	(R((Rt	get_stateúscCsti|iƒtijS(N(Rtssl_get_verify_resultRR	t	X509_V_OK(R((Rt	verify_okþscCsti|iƒS(s.Return the peer certificate verification mode.N(Rtssl_get_verify_modeRR	(R((Rtget_verify_modescCsti|iƒS(s/Return the peer certificate verification depth.N(Rtssl_get_verify_depthRR	(R((Rtget_verify_depthscCsti|iƒS(s0Return the peer certificate verification result.N(RRsRR	(R((Rtget_verify_result	scCs7ti|iƒ}|djodSnti|dƒS(s]Return the peer certificate; if the peer did not provide 
        a certificate, return None.iN(Rtssl_get_peer_certRR	tcRtX509(RR|((RRN
s

cCs4ti|iƒ}|djodSnti|ƒS(siReturn the peer certificate chain; if the peer did not provide 
        a certificate chain, return None.N(Rtssl_get_peer_cert_chainRR	R|RR}t
X509_Stack(RR|((Rtget_peer_cert_chains

cCs1ti|iƒ}|djodSnt|ƒS(sReturn an M2Crypto.SSL.Cipher object for this connection; if the 
        connection has not been initialised with a cipher suite, return None.N(Rtssl_get_current_cipherRR	R|RtCipher(RR|((Rt
get_ciphers

cCs1ti|iƒ}|djodSnt|ƒS(s“Return an M2Crypto.SSL.Cipher_Stack object for this connection; if the
        connection has not been initialised with cipher suites, return None.N(Rtssl_get_ciphersRR	R|RtCipher_Stack(RR|((Rtget_ciphers(s

icCsti|i|ƒS(s@Return the cipher suites for this connection as a string object.N(Rtssl_get_cipher_listRR	tidx(RRˆ((Rtget_cipher_list1scCsti|i|ƒS(s*Set the cipher suites for this connection.N(Rtssl_set_cipher_listRR	tcipher_list(RR‹((Rtset_cipher_list5strbiÿÿÿÿcCsti|||ƒS(N(Rt_fileobjectRR&tbufsize(RR&R((Rtmakefile9scCs
|iiƒS(N(RRtgetsockname(R((RR‘<scCs
|iiƒS(N(RRtgetpeername(R((RR’?scCs?ti|i|ƒ}|pttitiƒƒƒ‚ndS(N(	Rtssl_set_session_id_contextRR	tidR/tSSLErrorterr_reason_error_stringt
err_get_error(RR”R/((Rtset_session_id_ctxBscCsti|iƒ}t|ƒS(N(Rtssl_get_sessionRR	tsesstSession(RRš((Rtget_sessionGscCsti|i|iƒƒdS(N(Rtssl_set_sessionRR	tsessionR2(RRž((Rtset_sessionKscCsti|iƒS(N(Rtssl_get_default_session_timeoutRR	(R((Rtget_default_session_timeoutNscCs%ti|iititidƒƒS(Ni(Rltstruct_to_timeoutRRRnRtSO_RCVTIMEO(R((Rtget_socket_read_timeoutQscCs%ti|iititidƒƒS(Ni(RlR¢RRRnRtSO_SNDTIMEO(R((Rtget_socket_write_timeoutTscCs&|iititi|iƒƒdS(N(RRRRR£ttimeotpack(RR§((Rtset_socket_read_timeoutWscCs&|iititi|iƒƒdS(N(RRRRR¥R§R¨(RR§((Rtset_socket_write_timeout[scCsti|iƒS(s8Return the TLS/SSL protocol version for this connection.N(Rtssl_get_versionRR	(R((Rtget_version_scCs
||_dS(N(RJR(RRJ((RRcs(Ot__name__t
__module__t__doc__RORVRRLRtbio_freeRtssl_freeRRRtAF_INETRR!R R$R'R)R*R,R.R4R7R9R:R>RCRERGRIRKRRRTRURYR[R]R`RbReRgRhtsendalltsendRitrecvRjRkRRnRRpRrRuRwRyRzRNR€RƒR†R‰RŒRR‘R’R˜RœRŸR¡R¤R¦R©RªR¬R(((RRsˆ													
				
													
																															(R¯RR‚R…R›tM2CryptotBIOR}RRlROtM2Crypto.SSLR•RR(R·RR›R}RRROR‚R…RlRR•((Rt?s	
		
	

Anon7 - 2021