Current Path : /usr/lib/python2.7/dist-packages/twisted/internet/ |
Current File : //usr/lib/python2.7/dist-packages/twisted/internet/_newtls.pyc |
ó Í;±Nc @ s× d Z d d l m Z d d l m Z d d l m Z m Z d d l m Z d d l m Z d d l m Z m Z d e f d „ ƒ YZ d „ Z d e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d S( sÚ This module implements memory BIO based TLS support. It is the preferred implementation and will be used whenever pyOpenSSL 0.10 or newer is installed (whenever L{twisted.protocols.tls} is importable). @since: 11.1 iÿÿÿÿ( t implements( t directlyProvides( t ITLSTransportt ISSLTransport( t FileDescriptor( t _TLSDelayed( t TLSMemoryBIOFactoryt TLSMemoryBIOProtocolt _BypassTLSc B s; e Z d Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( s L{_BypassTLS} is used as the transport object for the TLS protocol object used to implement C{startTLS}. Its methods skip any TLS logic which C{startTLS} enables. @ivar _base: A transport class L{_BypassTLS} has been mixed in with to which methods will be forwarded. This class is only responsible for sending bytes over the connection, not doing TLS. @ivar _connection: A L{Connection} which TLS has been started on which will be proxied to by this object. Any method which has its behavior altered after C{startTLS} will be skipped in favor of the base class's implementation. This allows the TLS protocol object to have direct access to the transport, necessary to actually implement TLS. c C s | | _ | | _ d S( N( t _baset _connection( t selft baset connection( ( s<