Current Path : /usr/lib/python2.7/dist-packages/twisted/internet/ |
Current File : //usr/lib/python2.7/dist-packages/twisted/internet/_oldtls.pyc |
iNc @ sr d Z d d l Z d d l m Z e d k ra d d l m Z d d l m Z d d l m Z n0 d d l m Z d d l m Z d d l m Z d d l m 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 m Z d d l m Z d d d YZ i d Z d e f d YZ d e f d YZ d e f d YZ d S( sH This module implements OpenSSL socket BIO based TLS support. It is only used if memory BIO APIs are not available, which is when the version of pyOpenSSL installed is older than 0.10 (when L{twisted.protocols.tls} is not importable). This implementation is undesirable because of the complexity of working with OpenSSL's non-blocking socket-based APIs (which this module probably does about 99% correctly, but see #4455 for an example of a problem with it). Eventually, use of this module should emit a warning. See #4974 and 5014. @see: L{twisted.internet._newtls} @since: 11.1 iN( t platformTypet win32( t WSAEINTR( t WSAEWOULDBLOCK( t WSAENOBUFS( t EINTR( t EWOULDBLOCK( t ENOBUFS( t SSL( t implements( t log( t ITLSTransportt ISSLTransport( t FileDescriptor( t CONNECTION_DONEt CONNECTION_LOST( t _TLSDelayedt _TLSMixinc B s e Z d Z d Z d Z e Z Z d Z d Z d Z d Z d Z d Z d Z d Z d Z d Z d Z d Z RS( t sock_shutdowni c C s | j j S( N( t sockett get_peer_certificate( t self( ( s<