/usr/lib64/python2.6/site-packages/M2Crypto/SSL
Edit: /usr/lib64/python2.6/site-packages/M2Crypto/SSL/TwistedProtocolWrapper.pyc (14363B)
Ñò
üÌJc
@ s\ d Z d d d d d g Z d d k i i Z d d k Z d d k l Z d d k l Z d d
k
l Z d d k Z d d k l
Z
l Z d d k l Z d
„ Z d d e i i e i ƒ d „ Z d d e i i e i ƒ d „ Z d d e i i e d „ Z d d e i i d d „ Z d d d „ ƒ YZ d d d „ ƒ YZ d e f d „ ƒ YZ d S( sv
Make Twisted use M2Crypto for SSL
Copyright (c) 2004-2007 Open Source Applications Foundation.
All rights reserved.
t
connectSSLt
connectTCPt listenSSLt listenTCPt TLSProtocolWrapperiÿÿÿÿN( t ProtocolWrapper( t
ITLSTransport( t
implements( t m2t X509( t Checkerc C s d S( Ni ( ( t peerX509t expectedHost( ( sI /usr/lib64/python2.6/site-packages/M2Crypto/SSL/TwistedProtocolWrapper.pyt" _alwaysSucceedsPostConnectionCheck s i c s= t i | ƒ } ‡ ‡ f d † | _ | i | | | | | ƒ S( s~
A convenience function to start an SSL/TLS connection using Twisted.
See IReactorSSL interface in Twisted.
c s% t | | d d d d d ˆ d ˆ ƒS( t startPassThroughi t clienti t contextFactoryt postConnectionCheck( R ( t factoryt wrappedProtocol( R R ( sI /usr/lib64/python2.6/site-packages/M2Crypto/SSL/TwistedProtocolWrapper.pyt
$ s ( t policiest WrappingFactoryt protocolR ( t hostt portR R t timeoutt bindAddresst reactorR t wrappingFactory( ( R R sI /usr/lib64/python2.6/site-packages/M2Crypto/SSL/TwistedProtocolWrapper.pyR s c s: t i | ƒ } ‡ f d † | _ | i | | | | | ƒ S( s¶
A convenience function to start a TCP connection using Twisted.
NOTE: You must call startTLS(ctx) to go into SSL/TLS mode.
See IReactorTCP interface in Twisted.
c s% t | | d d d d d d d ˆ ƒS( R i R R R N( R t None( R R ( R ( sI /usr/lib64/python2.6/site-packages/M2Crypto/SSL/TwistedProtocolWrapper.pyR 9 s ( R R R R ( R R R R R R R R ( ( R sI /usr/lib64/python2.6/site-packages/M2Crypto/SSL/TwistedProtocolWrapper.pyR . s
i t c s: t i | ƒ } ‡ ‡ f d † | _ | i | | | | ƒ S( s~
A convenience function to listen for SSL/TLS connections using Twisted.
See IReactorSSL interface in Twisted.
c s% t | | d d d d d ˆ d ˆ ƒS( R i R R R ( R ( R R ( R R ( sI /usr/lib64/python2.6/site-packages/M2Crypto/SSL/TwistedProtocolWrapper.pyR L s ( R R R R ( R R R t backlogt interfaceR R R ( ( R R sI /usr/lib64/python2.6/site-packages/M2Crypto/SSL/TwistedProtocolWrapper.pyR C s c s7 t i | ƒ } ‡ f d † | _ | i | | | | ƒ S( s¾
A convenience function to listen for TCP connections using Twisted.
NOTE: You must call startTLS(ctx) to go into SSL/TLS mode.
See IReactorTCP interface in Twisted.
c s% t | | d d d d d d d ˆ ƒS( R i R i R R N( R R ( R R ( R ( sI /usr/lib64/python2.6/site-packages/M2Crypto/SSL/TwistedProtocolWrapper.pyR a s ( R R R R ( R R R R! R R R ( ( R sI /usr/lib64/python2.6/site-packages/M2Crypto/SSL/TwistedProtocolWrapper.pyR V s
t _BioProxyc B s2 e Z d Z e i Z d „ Z d „ Z d „ Z RS( s
The purpose of this class is to eliminate the __del__ method from
TLSProtocolWrapper, and thus letting it be garbage collected.
c C s
| | _ d S( N( t bio( t selfR# ( ( sI /usr/lib64/python2.6/site-packages/M2Crypto/SSL/TwistedProtocolWrapper.pyt __init__s s c C s | i S( N( R# ( R$ ( ( sI /usr/lib64/python2.6/site-packages/M2Crypto/SSL/TwistedProtocolWrapper.pyt _ptrv s c C s( | i d j o | i | i ƒ n d S( N( R# R t m2_bio_free_all( R$ ( ( sI /usr/lib64/python2.6/site-packages/M2Crypto/SSL/TwistedProtocolWrapper.pyt __del__y s ( t __name__t
__module__t __doc__R t bio_free_allR' R% R&