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/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib64/python2.4/site-packages/M2Crypto/BIO.pyo
mò
låìPc@sÝdZdkZdklZdklZdefd„ƒYZeieƒdfd„ƒYZ	de	fd	„ƒYZ
d
e	fd„ƒYZdd
„Zde	fd„ƒYZ
de	fd„ƒYZde	fd„ƒYZdS(scM2Crypto wrapper for OpenSSL BIO API.

Copyright (c) 1999-2004 Ng Pheng Siong. All rights reserved.N(sbio_do_handshake(sStringIOtBIOErrorcBstZRS(N(t__name__t
__module__(((t2/usr/lib64/python2.4/site-packages/M2Crypto/BIO.pyRstBIOcBsÈtZdZeiZeded„Zd„Zd„Z	e	Z
d„Zd„Zed„Z
dd	„Zd
d„Zd„Zd
„Zd„Zd„Zd„Zd„Zd„Zd„Zd„ZRS(s)Abstract object interface to the BIO API.icCs1||_||_||_d|_d|_dS(Ni(tbiotselft_pyfreet	_close_cbtclosedtwrite_closed(RRRR((Rt__init__s
				cCs"|io|i|iƒndS(N(RRtm2_bio_freeR(R((Rt__del__s
cCs|iS(N(RR(R((Rt_ptr!scCsti|iƒS(N(tm2t
bio_get_fdRR(R((Rtfileno'scCs|iS(N(RR	(R((Rtreadable*scCsº|iƒp
td‚n|djoMtƒ}x3ti|i	dƒ}|pPn|i|ƒq3W|iƒSnC|djodSn.|djo
t
d‚nti|i	|ƒSdS(Nscannot readiiitsread count is negative(RRtIOErrortsizetNonetStringIOtbufRtbio_readRtdatatwritetgetvaluet
ValueError(RRRR((Rtread-s 


	


icCs3|iƒp
td‚nti|i|ƒ}|S(Nscannot read(RRRRtbio_getsRRR(RRR((Rtreadline>s

tignoredcCs`|iƒp
td‚ng}x9ti|idƒ}|djoPn|i	|ƒq#W|S(Nscannot readii(
RRRtlinesRRRRRtappend(RtsizehintR"R((Rt	readlinesDs


cCs|io|iS(N(RR	R
(R((Rt	writeableOscCs-|iƒp
td‚nti|i|ƒS(Nscannot write(RR&RRt	bio_writeRR(RR((RRRs

cCs
d|_dS(Ni(RR
(R((Rtwrite_closeWscCsti|iƒdS(N(Rt	bio_flushRR(R((RtflushZscCsti|iƒS(s3
        Sets the bio to its initial state
        N(Rt	bio_resetRR(R((Rtreset]scCs%d|_|io|iƒndS(Ni(RR	R(R((Rtclosecs	
cCsti|iƒS(si
        Can the call be attempted again, or was there an error
        ie do_handshake 
       
        N(Rtbio_should_retryRR(R((Rtshould_retryhscCsti|iƒS(se
        Returns whether the cause of the condition is the bio
        should read more data
        N(Rtbio_should_readRR(R((Rtshould_readpscCsti|iƒS(sf
        Returns whether the cause of the condition is the bio
        should write more data
        N(Rtbio_should_writeRR(R((Rtshould_writews(RRt__doc__Rtbio_freeRRRR
Rtbio_ptrRRRR R%R&RR(R*R,R-R/R1R3(((RRs(													tMemoryBuffercBsHtZdZed„Zd„Zdd„ZeZZd„Z	e	Z
RS(sw
    Object interface to BIO_s_mem. 
    
    Empirical testing suggests that this class performs less well than cStringIO, 
    because cStringIO is implemented in C, whereas this class is implemented in 
    Python. Thus, the recommended practice is to use cStringIO for regular work and 
    convert said cStringIO object to a MemoryBuffer object only when necessary.
    cCsVti|ƒtitiƒƒ|_d|_|dj	oti
|i|ƒndS(Ni(RRRRtbio_newt	bio_s_memRRRRR'(RR((RR‰s

	
cCsti|iƒS(N(Rtbio_ctrl_pendingRR(R((Rt__len__sicCs[|iƒp
td‚n|oti|i|ƒSn ti|iti|iƒƒSdS(Nscannot read(RRRRRRRR:(RR((RR“s


cCs d|_ti|idƒdS(Nii(RR
Rtbio_set_mem_eof_returnR(R((RR(žs	(RRR4RRR;RRtread_allR(R-(((RR7~s			
	tFilecBs#tZdZdd„Zd„ZRS(sÅ
    Object interface to BIO_s_fp. 
    
    This class interfaces Python to OpenSSL functions that expect BIO *. For
    general file manipulation in Python, use Python's builtin file object.
    icCs>ti|ddƒ||_||_ti|dƒ|_dS(NRii(RRRtpyfiletclose_pyfileRt
bio_new_fpR(RR?R@((RR®s		cCs(d|_|io|iiƒndS(Ni(RR	R@R?R-(R((RR-´s	
(RRR4RR-(((RR>¥strbcCstt||ƒƒS(N(R>topentfilenametmode(RDRE((Rtopenfile¹stIOBuffercBsAtZdZeiZeiZddd„Zd„Z	d„Z
RS(s¶
    Object interface to BIO_f_buffer. 
    
    Its principal function is to be BIO_push()'ed on top of a BIO_f_ssl, so
    that makefile() of said underlying SSL socket works.
    trwbicCsyti|d|ƒtitiƒƒ|_ti|i|i
ƒƒ|_||_d|jo
d|_n
d|_dS(NRtwii(RRRRRR8tbio_f_buffertiotbio_pusht	under_bioRRt
_under_bioRER
(RRMRER((RRÉs	

cCs;t|ddƒo$|i|iƒ|i|iƒndS(NRi(tgetattrRt
m2_bio_popRRRK(R((RR
ÔscCsti|ƒdS(N(RR-R(R((RR-Ùs(RRR4Rtbio_popRPR5RRR
R-(((RRG½s			tCipherStreamcBsVtZdZeiZeiZeiZ	d„Z
d„Zd„Zd„Z
d„ZRS(s+
    Object interface to BIO_f_cipher.
    cCsAti|ddƒ||_titiƒƒ|_d|_dS(NRii(	RRRtobioRR8tbio_f_cipherRR	(RRS((RRès	cCs%t|ddƒp|iƒndS(NR	i(RORR-(R((RR
îscCs-|i|iƒ|i|iƒd|_dS(Ni(RRPRRR	(R((RR-òscCs|iiƒdS(N(RRSR((R((RR(÷scCsqtt|dƒ}|djotd|f‚nti|i|ƒ|||ƒti|i|i
iƒƒdS(Nsunknown cipher(RORtalgoRtcipherRtbio_set_cipherRRtkeytivtopRLRSR(RRURXRYRZRV((Rt
set_cipherús

(RRR4RtPKCS5_SALT_LENtSALT_LENRQRPR5RRR
R-R(R[(((RRRÝs							tSSLBiocBs2tZdZdd„Zeid„Zd„ZRS(s(
    Object interface to BIO_f_ssl 
    icCs5ti||ƒtitiƒƒ|_d|_dS(Ni(	RRRRRR8t	bio_f_sslRR	(RR((RRscCsJd|_ti|i|i|ƒ|tijo|i	ti
ƒndS(sh
        Sets the bio to the SSL pointer which is
        contained in the connection object.  
        iN(RRRtbio_set_sslRtconntsslt
close_flagtbio_noclosetset_ssl_close_flagt	bio_close(RRaRc((Rtset_ssls
	cCsti|iƒS(s”
        Do the handshake.
        
        Return 1 if the handshake completes
        Return 0 or a negative number if there is a problem
        N(Rtbio_do_handshakeRR(R((Rtdo_handshakes(RRR4RRRdRgRi(((RR^s
(R4RRhtbio_do_ssl_handshaket	cStringIORt	ExceptionRtbio_initRR7R>RFRGRRR^(RR^RRRGRRFR>RjRRR7((Rt?s	


n' %

Anon7 - 2021