Module Expr Str ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias alias TryExcept body ImportFrom alias alias ImportFrom alias ImportFrom alias alias handlers ExceptHandler type NameLoad body FunctionDef arguments args defaults body Global identifier Global identifier Assign NameStore NameStore NameLoad decorator_list Expr Call NameLoad TryExcept body ImportFrom alias identifier handlers ExceptHandler type NameLoad body Assign NameStore NameLoad ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore ListLoad Str Str Str Assign NameStore ListLoad Str Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareEq NameLoad Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign AttributeStore AttributeLoad NameLoad attr attr ListLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad If CompareEq NameLoad Str body If AttributeLoad NameLoad attr body For NameStore Call NameLoad Num body Expr Call AttributeLoad NameLoad attr BinOpMult Str Num Expr Call AttributeLoad NameLoad attr Str If AttributeLoad NameLoad attr body Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr orelse Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body AugAssignAdd AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Str Return TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad For TupleStore NameStore NameStore NameStore ListLoad TupleLoad Str NameLoad AttributeLoad NameLoad attr TupleLoad Str NameLoad AttributeLoad NameLoad attr TupleLoad Str NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad attr Str Expr Call AttributeLoad Call NameLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults vararg kwarg body Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad Str Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad Str NameLoad NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list If CompareIsNot NameLoad NameLoad body ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam defaults vararg kwarg body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Call NameLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIs Call NameLoad Str NameLoad body If CompareEq Call AttributeLoad NameLoad attr Str body Return AttributeLoad NameLoad attr Return ListLoad TupleLoad Str Str Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body If CompareIsNot AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr If CompareIsNot AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign NameStore AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Lambda arguments args defaults NameLoad If NameLoad body Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Lambda arguments args defaults NameLoad If NameLoad body Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad Return Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad NameLoad AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad NameLoad AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body If CompareIsNot AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr If CompareIsNot AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeStore NameLoad attr Call NameLoad Assign NameStore AttributeStore NameLoad attr Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Lambda arguments args defaults NameLoad Assign AttributeStore NameLoad attr Lambda arguments args defaults NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad NameLoad keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad BinOpAdd NameLoad Str Dict TupleLoad NameLoad BinOpAdd NameLoad Str Dict Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameStore Call AttributeLoad NameLoad attr Num NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Return Call AttributeLoad AttributeLoad NameLoad attr attr Lambda arguments args NameParam defaults Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases AttributeLoad NameLoad attr body Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body Assign NameStore Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Delete AttributeDel NameLoad attr decorator_list decorator_list Assign NameStore Str Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad BinOpAdd NameLoad Str Dict TupleLoad NameLoad BinOpAdd NameLoad Str Dict Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Lambda arguments args defaults NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Lambda arguments args defaults NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Return Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list If CompareIs NameLoad NameLoad body Assign AttributeStore NameLoad attr Str FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad BinOpAdd NameLoad Str Dict TupleLoad NameLoad BinOpAdd NameLoad Str Dict FunctionDef arguments args defaults vararg body Return NameLoad decorator_list Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Lambda arguments args defaults NameLoad Assign AttributeStore NameLoad attr NameStore Call AttributeLoad NameLoad attr Num NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Lambda arguments args defaults NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad keyword NameLoad Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore TupleStore NameStore NameStore TupleStore NameStore NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr body ImportFrom alias Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body AugAssignBitOr AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body Pass decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpBitAnd AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpBitAnd AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpBitAnd AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpBitAnd AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpBitAnd AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpBitAnd AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list decorator_list If CompareIs Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad body For NameStore ListLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr Str
N/A N/A 
Tests for twisted SSL support.
 __future__ division absolute_import twisted.python.filepath FilePath twisted.trial unittest twisted.internet protocol reactor interfaces defer twisted.internet.error ConnectionDone twisted.protocols basic twisted.python.reflect requireModule twisted.python.runtime platform twisted.test.test_tcp ProperlyCloseFilesMixin N/A os errno N/A N/A OpenSSL SSL crypto twisted.internet ssl twisted.test.ssl_helpers ClientTLSContext certPath N/A N/A N/A ImportError N/A _noSSL N/A N/A N/A N/A N/A SSL N/A ssl N/A SSL ssl None N/A N/A N/A _noSSL N/A N/A twisted.protocols tls newTLS N/A N/A N/A ImportError N/A N/A newTLS None UnintelligentProtocol N/A N/A basic LineReceiver N/A N/A 
    @ivar deferred: a deferred that will fire at connection lost.
    @type deferred: L{defer.Deferred}

    @cvar pretext: text sent before TLS is set up.
    @type pretext: C{bytes}

    @cvar posttext: text sent after TLS is set up.
    @type posttext: C{bytes}
     N/A pretext N/A first line last thing before tls starts STARTTLS N/A posttext N/A first thing after tls started last thing ever __init__ N/A N/A self N/A N/A N/A N/A self deferred N/A N/A defer Deferred N/A connectionMade N/A N/A self N/A N/A N/A l N/A self pretext N/A N/A N/A N/A self sendLine l N/A lineReceived N/A N/A self line N/A N/A N/A N/A line READY N/A N/A N/A N/A N/A self transport startTLS N/A ClientTLSContext N/A N/A self factory client N/A l N/A self posttext N/A N/A N/A N/A self sendLine l N/A N/A N/A N/A self transport loseConnection N/A connectionLost N/A N/A self reason N/A N/A N/A N/A N/A N/A self deferred callback None N/A N/A LineCollector N/A N/A basic LineReceiver N/A N/A 
    @ivar deferred: a deferred that will fire at connection lost.
    @type deferred: L{defer.Deferred}

    @ivar doTLS: whether the protocol is initiate TLS or not.
    @type doTLS: C{bool}

    @ivar fillBuffer: if set to True, it will send lots of data once
        C{STARTTLS} is received.
    @type fillBuffer: C{bool}
     __init__ N/A N/A self doTLS fillBuffer N/A False N/A N/A N/A self doTLS doTLS N/A N/A self fillBuffer fillBuffer N/A N/A self deferred N/A N/A defer Deferred N/A connectionMade N/A N/A self N/A N/A N/A N/A N/A self factory rawdata N/A N/A N/A self factory lines N/A N/A lineReceived N/A N/A self line N/A N/A N/A N/A N/A N/A N/A self factory lines append line N/A N/A line STARTTLS N/A N/A N/A self fillBuffer N/A N/A x N/A range 500 N/A N/A N/A N/A self sendLine N/A X 1000 N/A N/A N/A self sendLine READY N/A N/A self doTLS N/A N/A ctx N/A ServerTLSContext privateKeyFileName certPath certificateFileName certPath N/A N/A N/A N/A self transport startTLS ctx N/A N/A self factory server N/A N/A N/A N/A self setRawMode N/A rawDataReceived N/A N/A self data N/A N/A N/A N/A N/A self factory rawdata data N/A N/A N/A N/A self transport loseConnection N/A connectionLost N/A N/A self reason N/A N/A N/A N/A N/A N/A self deferred callback None N/A N/A SingleLineServerProtocol N/A N/A protocol Protocol N/A N/A 
    A protocol that sends a single line of data at C{connectionMade}.
     connectionMade N/A N/A self N/A N/A N/A N/A N/A N/A self transport write +OK <some crap>
 N/A N/A N/A N/A self transport getPeerCertificate N/A N/A RecordingClientProtocol N/A N/A protocol Protocol N/A N/A 
    @ivar deferred: a deferred that will fire with first received content.
    @type deferred: L{defer.Deferred}
     __init__ N/A N/A self N/A N/A N/A N/A self deferred N/A N/A defer Deferred N/A connectionMade N/A N/A self N/A N/A N/A N/A N/A N/A self transport getPeerCertificate N/A dataReceived N/A N/A self data N/A N/A N/A N/A N/A N/A self deferred callback data N/A N/A ImmediatelyDisconnectingProtocol N/A N/A protocol Protocol N/A N/A 
    A protocol that disconnect immediately on connection. It fires the
    C{connectionDisconnected} deferred of its factory on connetion lost.
     connectionMade N/A N/A self N/A N/A N/A N/A N/A N/A self transport loseConnection N/A connectionLost N/A N/A self reason N/A N/A N/A N/A N/A N/A N/A self factory connectionDisconnected callback None N/A N/A generateCertificateObjects N/A N/A organization organizationalUnit N/A N/A N/A 
    Create a certificate for given C{organization} and C{organizationalUnit}.

    @return: a tuple of (key, request, certificate) objects.
     N/A pkey N/A N/A crypto PKey N/A N/A N/A pkey generate_key N/A crypto TYPE_RSA 512 N/A req N/A N/A crypto X509Req N/A subject N/A N/A req get_subject N/A N/A subject O organization N/A N/A subject OU organizationalUnit N/A N/A N/A req set_pubkey pkey N/A N/A N/A req sign pkey md5 N/A cert N/A N/A crypto X509 N/A N/A N/A cert set_serial_number 1 N/A N/A N/A cert gmtime_adj_notBefore 0 N/A N/A N/A cert gmtime_adj_notAfter 60 N/A N/A N/A cert set_issuer N/A N/A req get_subject N/A N/A N/A cert set_subject N/A N/A req get_subject N/A N/A N/A cert set_pubkey N/A N/A req get_pubkey N/A N/A N/A cert sign pkey md5 N/A N/A pkey req cert N/A generateCertificateFiles N/A N/A basename organization organizationalUnit N/A N/A N/A 
    Create certificate files key, req and cert prefixed by C{basename} for
    given C{organization} and C{organizationalUnit}.
     N/A N/A pkey req cert N/A generateCertificateObjects organization organizationalUnit N/A N/A ext obj dumpFunc N/A N/A key pkey N/A crypto dump_privatekey N/A req req N/A crypto dump_certificate_request N/A cert cert N/A crypto dump_certificate N/A N/A fName N/A N/A N/A N/A N/A os extsep join N/A basename ext encode utf-8 N/A N/A N/A N/A FilePath fName setContent N/A dumpFunc N/A crypto FILETYPE_PEM obj N/A ContextGeneratingMixin N/A N/A N/A 
    Offer methods to create L{ssl.DefaultOpenSSLContextFactory} for both client
    and server.

    @ivar clientBase: prefix of client certificate files.
    @type clientBase: C{str}

    @ivar serverBase: prefix of server certificate files.
    @type serverBase: C{str}

    @ivar clientCtxFactory: a generated context factory to be used in
        C{reactor.connectSSL}.
    @type clientCtxFactory: L{ssl.DefaultOpenSSLContextFactory}

    @ivar serverCtxFactory: a generated context factory to be used in
        C{reactor.listenSSL}.
    @type serverCtxFactory: L{ssl.DefaultOpenSSLContextFactory}
     makeContextFactory N/A N/A self org orgUnit N/A args kwArgs N/A N/A base N/A N/A self mktemp N/A N/A generateCertificateFiles base org orgUnit N/A serverCtxFactory N/A N/A ssl DefaultOpenSSLContextFactory N/A N/A N/A os extsep join N/A base key N/A N/A N/A os extsep join N/A base cert args kwArgs N/A N/A base serverCtxFactory N/A setupServerAndClient N/A N/A self clientArgs clientKwArgs serverArgs serverKwArgs N/A N/A N/A N/A N/A self clientBase N/A self clientCtxFactory N/A N/A self makeContextFactory clientArgs clientKwArgs N/A N/A N/A self serverBase N/A self serverCtxFactory N/A N/A self makeContextFactory serverArgs serverKwArgs N/A N/A N/A N/A SSL None N/A ServerTLSContext N/A N/A ssl DefaultOpenSSLContextFactory N/A N/A 
        A context factory with a default method set to L{SSL.TLSv1_METHOD}.
         N/A isClient False __init__ N/A N/A self N/A args kw N/A N/A N/A kw N/A sslmethod N/A SSL TLSv1_METHOD N/A N/A N/A N/A ssl DefaultOpenSSLContextFactory __init__ self args kw N/A N/A StolenTCPTests N/A ProperlyCloseFilesMixin N/A unittest TestCase N/A N/A 
    For SSL transports, test many of the same things which are tested for
    TCP transports.
     createServer N/A N/A self address portNumber factory N/A N/A N/A 
        Create an SSL server with a certificate using L{IReactorSSL.listenSSL}.
         N/A cert N/A N/A N/A ssl PrivateCertificate loadPEM N/A N/A N/A FilePath certPath getContent N/A contextFactory N/A N/A cert options N/A N/A N/A reactor listenSSL portNumber factory contextFactory interface address N/A connectClient N/A N/A self address portNumber clientCreator N/A N/A N/A 
        Create an SSL client using L{IReactorSSL.connectSSL}.
         N/A contextFactory N/A N/A ssl CertificateOptions N/A N/A N/A clientCreator connectSSL address portNumber contextFactory N/A getHandleExceptionType N/A N/A self N/A N/A N/A 
        Return L{SSL.Error} as the expected error type which will be raised by
        a write to the L{OpenSSL.SSL.Connection} object after it has been
        closed.
         N/A N/A SSL Error N/A getHandleErrorCode N/A N/A self N/A N/A N/A 
        Return the argument L{SSL.Error} will be constructed with for this
        case.  This is basically just a random OpenSSL implementation detail.
        It would be better if this test worked in a way which did not require
        this.
         N/A N/A N/A requireModule twisted.protocols.tls None N/A N/A N/A N/A N/A platform getType win32 N/A N/A N/A errno WSAENOTSOCK N/A N/A N/A SSL routines SSL_write protocol is shutdown N/A N/A TLSTests N/A N/A unittest TestCase N/A N/A 
    Tests for startTLS support.

    @ivar fillBuffer: forwarded to L{LineCollector.fillBuffer}
    @type fillBuffer: C{bool}
     N/A fillBuffer False N/A clientProto None N/A serverProto None tearDown N/A N/A self N/A N/A N/A N/A N/A N/A self clientProto transport None N/A N/A N/A N/A N/A N/A self clientProto transport loseConnection N/A N/A N/A N/A self serverProto transport None N/A N/A N/A N/A N/A N/A self serverProto transport loseConnection N/A _runTest N/A N/A self clientProto serverProto clientIsServer N/A False N/A N/A 
        Helper method to run TLS tests.

        @param clientProto: protocol instance attached to the client
            connection.
        @param serverProto: protocol instance attached to the server
            connection.
        @param clientIsServer: flag indicated if client should initiate
            startTLS instead of server.

        @return: a L{defer.Deferred} that will fire when both connections are
            lost.
         N/A N/A self clientProto clientProto N/A cf N/A self clientFactory N/A N/A protocol ClientFactory N/A N/A cf protocol N/A N/A N/A N/A clientProto N/A clientIsServer N/A N/A N/A cf server False N/A N/A N/A cf client True N/A N/A self serverProto serverProto N/A sf N/A self serverFactory N/A N/A protocol ServerFactory N/A N/A sf protocol N/A N/A N/A N/A serverProto N/A clientIsServer N/A N/A N/A sf client False N/A N/A N/A sf server True N/A port N/A N/A reactor listenTCP 0 sf interface 127.0.0.1 N/A N/A N/A self addCleanup N/A port stopListening N/A N/A N/A reactor connectTCP 127.0.0.1 N/A N/A N/A port getHost port cf N/A N/A N/A defer gatherResults N/A N/A clientProto deferred N/A serverProto deferred N/A test_TLS N/A N/A self N/A N/A N/A 
        Test for server and client startTLS: client should received data both
        before and after the startTLS.
         check N/A N/A ignore N/A N/A N/A N/A N/A self assertEqual N/A N/A self serverFactory lines N/A N/A UnintelligentProtocol pretext N/A UnintelligentProtocol posttext N/A N/A d N/A N/A self _runTest N/A UnintelligentProtocol N/A LineCollector True N/A self fillBuffer N/A N/A N/A d addCallback check N/A test_unTLS N/A N/A self N/A N/A N/A 
        Test for server startTLS not followed by a startTLS in client: the data
        received after server startTLS should be received as raw.
         check N/A N/A ignored N/A N/A N/A N/A N/A self assertEqual N/A N/A self serverFactory lines N/A UnintelligentProtocol pretext N/A N/A N/A self assertTrue N/A N/A self serverFactory rawdata No encrypted bytes received N/A N/A d N/A N/A self _runTest N/A UnintelligentProtocol N/A LineCollector False N/A self fillBuffer N/A N/A N/A d addCallback check N/A test_backwardsTLS N/A N/A self N/A N/A N/A 
        Test startTLS first initiated by client.
         check N/A N/A ignored N/A N/A N/A N/A N/A self assertEqual N/A N/A self clientFactory lines N/A N/A UnintelligentProtocol pretext N/A UnintelligentProtocol posttext N/A N/A d N/A N/A self _runTest N/A LineCollector True N/A self fillBuffer N/A UnintelligentProtocol True N/A N/A N/A d addCallback check N/A N/A SpammyTLSTests N/A TLSTests N/A N/A 
    Test TLS features with bytes sitting in the out buffer.
     N/A fillBuffer True N/A BufferingTests N/A N/A unittest TestCase N/A N/A serverProto None N/A clientProto None tearDown N/A N/A self N/A N/A N/A N/A N/A N/A self serverProto transport None N/A N/A N/A N/A N/A N/A self serverProto transport loseConnection N/A N/A N/A N/A self clientProto transport None N/A N/A N/A N/A N/A N/A self clientProto transport loseConnection N/A test_openSSLBuffering N/A N/A self N/A N/A N/A serverProto N/A self serverProto N/A SingleLineServerProtocol N/A clientProto N/A self clientProto N/A RecordingClientProtocol N/A server N/A N/A protocol ServerFactory N/A client N/A self client N/A N/A protocol ClientFactory N/A N/A server protocol N/A N/A N/A N/A serverProto N/A N/A client protocol N/A N/A N/A N/A clientProto N/A sCTX N/A N/A ssl DefaultOpenSSLContextFactory certPath certPath N/A cCTX N/A N/A ssl ClientContextFactory N/A port N/A N/A reactor listenSSL 0 server sCTX interface 127.0.0.1 N/A N/A N/A self addCleanup N/A port stopListening N/A N/A N/A reactor connectSSL 127.0.0.1 N/A N/A N/A port getHost port client cCTX N/A N/A N/A N/A clientProto deferred addCallback N/A self assertEqual +OK <some crap>
 N/A N/A ConnectionLostTests N/A N/A unittest TestCase ContextGeneratingMixin N/A N/A 
    SSL connection closing tests.
     testImmediateDisconnect N/A N/A self N/A N/A N/A org twisted.test.test_ssl N/A N/A N/A self setupServerAndClient N/A org N/A org , client N/A N/A org N/A org , server N/A N/A serverProtocolFactory N/A N/A protocol ServerFactory N/A N/A serverProtocolFactory protocol N/A protocol Protocol N/A N/A self serverPort serverPort N/A N/A reactor listenSSL 0 serverProtocolFactory N/A self serverCtxFactory N/A clientProtocolFactory N/A N/A protocol ClientFactory N/A N/A clientProtocolFactory protocol ImmediatelyDisconnectingProtocol N/A N/A clientProtocolFactory connectionDisconnected N/A N/A defer Deferred N/A N/A N/A reactor connectSSL 127.0.0.1 N/A N/A N/A serverPort getHost port clientProtocolFactory N/A self clientCtxFactory N/A N/A N/A N/A clientProtocolFactory connectionDisconnected addCallback N/A N/A N/A ignoredResult N/A N/A N/A N/A self serverPort stopListening N/A test_bothSidesLoseConnection N/A N/A self N/A N/A N/A 
        Both sides of SSL connection close connection; the connections should
        close cleanly, and only after the underlying TCP connection has
        disconnected.
         CloseAfterHandshake N/A N/A protocol Protocol N/A N/A gotData False __init__ N/A N/A self N/A N/A N/A N/A self done N/A N/A defer Deferred N/A connectionMade N/A N/A self N/A N/A N/A N/A N/A N/A self transport write a N/A dataReceived N/A N/A self data N/A N/A N/A N/A self gotData True N/A N/A N/A N/A self transport loseConnection N/A connectionLost N/A N/A self reason N/A N/A N/A N/A N/A self gotData N/A N/A reason N/A RuntimeError We never received the data! N/A N/A N/A N/A self done errback reason N/A N/A self done N/A N/A N/A org twisted.test.test_ssl N/A N/A N/A self setupServerAndClient N/A org N/A org , client N/A N/A org N/A org , server N/A N/A serverProtocol N/A CloseAfterHandshake N/A serverProtocolFactory N/A N/A protocol ServerFactory N/A N/A serverProtocolFactory protocol N/A N/A N/A N/A serverProtocol N/A serverPort N/A N/A reactor listenSSL 0 serverProtocolFactory N/A self serverCtxFactory N/A N/A N/A self addCleanup N/A serverPort stopListening N/A clientProtocol N/A CloseAfterHandshake N/A clientProtocolFactory N/A N/A protocol ClientFactory N/A N/A clientProtocolFactory protocol N/A N/A N/A N/A clientProtocol N/A N/A N/A reactor connectSSL 127.0.0.1 N/A N/A N/A serverPort getHost port clientProtocolFactory N/A self clientCtxFactory checkResult N/A N/A failure N/A N/A N/A N/A N/A failure trap ConnectionDone N/A N/A N/A N/A defer gatherResults N/A N/A N/A N/A clientProtocol done addErrback checkResult N/A N/A N/A serverProtocol done addErrback checkResult N/A N/A N/A newTLS None N/A N/A N/A test_bothSidesLoseConnection skip Old SSL code doesn't always close cleanly. testFailedVerify N/A N/A self N/A N/A N/A org twisted.test.test_ssl N/A N/A N/A self setupServerAndClient N/A org N/A org , client N/A N/A org N/A org , server N/A verify N/A N/A N/A a N/A N/A False N/A N/A N/A N/A N/A N/A N/A self clientCtxFactory getContext set_verify N/A SSL VERIFY_PEER verify N/A serverConnLost N/A N/A defer Deferred N/A serverProtocol N/A N/A protocol Protocol N/A N/A serverProtocol connectionLost N/A serverConnLost callback N/A serverProtocolFactory N/A N/A protocol ServerFactory N/A N/A serverProtocolFactory protocol N/A N/A N/A N/A serverProtocol N/A N/A self serverPort serverPort N/A N/A reactor listenSSL 0 serverProtocolFactory N/A self serverCtxFactory N/A clientConnLost N/A N/A defer Deferred N/A clientProtocol N/A N/A protocol Protocol N/A N/A clientProtocol connectionLost N/A clientConnLost callback N/A clientProtocolFactory N/A N/A protocol ClientFactory N/A N/A clientProtocolFactory protocol N/A N/A N/A N/A clientProtocol N/A N/A N/A reactor connectSSL 127.0.0.1 N/A N/A N/A serverPort getHost port clientProtocolFactory N/A self clientCtxFactory N/A dl N/A N/A defer DeferredList N/A serverConnLost clientConnLost consumeErrors True N/A N/A N/A dl addCallback N/A self _cbLostConns N/A _cbLostConns N/A N/A self results N/A N/A N/A N/A N/A sSuccess sResult N/A cSuccess cResult results N/A N/A N/A self assertFalse sSuccess N/A N/A N/A self assertFalse cSuccess N/A acceptableErrors N/A N/A SSL Error N/A N/A N/A platform isWindows N/A twisted.internet.error ConnectionLost N/A N/A N/A acceptableErrors append ConnectionLost N/A N/A N/A sResult trap acceptableErrors N/A N/A N/A cResult trap acceptableErrors N/A N/A N/A N/A self serverPort stopListening N/A N/A FakeContext N/A N/A N/A 
    L{OpenSSL.SSL.Context} double which can more easily be inspected.
     __init__ N/A N/A self method N/A N/A N/A N/A self _method method N/A N/A self _options 0 N/A set_options N/A N/A self options N/A N/A N/A N/A self _options options N/A use_certificate_file N/A N/A self fileName N/A N/A N/A N/A use_privatekey_file N/A N/A self fileName N/A N/A N/A N/A N/A DefaultOpenSSLContextFactoryTests N/A N/A unittest TestCase N/A N/A 
    Tests for L{ssl.DefaultOpenSSLContextFactory}.
     setUp N/A N/A self N/A N/A N/A N/A self contextFactory N/A N/A ssl DefaultOpenSSLContextFactory certPath certPath _contextFactory FakeContext N/A N/A self context N/A N/A N/A self contextFactory getContext N/A test_method N/A N/A self N/A N/A N/A 
        L{ssl.DefaultOpenSSLContextFactory.getContext} returns an SSL context
        which can use SSLv3 or TLSv1 but not SSLv2.
         N/A N/A N/A self assertEqual N/A N/A self context _method N/A SSL SSLv23_METHOD N/A N/A N/A self assertTrue N/A N/A N/A self context _options N/A SSL OP_NO_SSLv2 N/A N/A N/A self assertFalse N/A N/A N/A self context _options N/A SSL OP_NO_SSLv3 N/A N/A N/A self assertFalse N/A N/A N/A self context _options N/A SSL OP_NO_TLSv1 N/A test_missingCertificateFile N/A N/A self N/A N/A N/A 
        Instantiating L{ssl.DefaultOpenSSLContextFactory} with a certificate
        filename which does not identify an existing file results in the
        initializer raising L{OpenSSL.SSL.Error}.
         N/A N/A N/A self assertRaises N/A SSL Error N/A ssl DefaultOpenSSLContextFactory certPath N/A N/A self mktemp N/A test_missingPrivateKeyFile N/A N/A self N/A N/A N/A 
        Instantiating L{ssl.DefaultOpenSSLContextFactory} with a private key
        filename which does not identify an existing file results in the
        initializer raising L{OpenSSL.SSL.Error}.
         N/A N/A N/A self assertRaises N/A SSL Error N/A ssl DefaultOpenSSLContextFactory N/A N/A self mktemp certPath N/A N/A ClientContextFactoryTests N/A N/A unittest TestCase N/A N/A 
    Tests for L{ssl.ClientContextFactory}.
     setUp N/A N/A self N/A N/A N/A N/A self contextFactory N/A N/A ssl ClientContextFactory N/A N/A N/A self contextFactory _contextFactory FakeContext N/A N/A self context N/A N/A N/A self contextFactory getContext N/A test_method N/A N/A self N/A N/A N/A 
        L{ssl.ClientContextFactory.getContext} returns a context which can use
        SSLv3 or TLSv1 but not SSLv2.
         N/A N/A N/A self assertEqual N/A N/A self context _method N/A SSL SSLv23_METHOD N/A N/A N/A self assertTrue N/A N/A N/A self context _options N/A SSL OP_NO_SSLv2 N/A N/A N/A self assertFalse N/A N/A N/A self context _options N/A SSL OP_NO_SSLv3 N/A N/A N/A self assertFalse N/A N/A N/A self context _options N/A SSL OP_NO_TLSv1 N/A N/A N/A N/A N/A N/A interfaces IReactorSSL reactor None None N/A N/A tCase N/A StolenTCPTests TLSTests SpammyTLSTests BufferingTests ConnectionLostTests DefaultOpenSSLContextFactoryTests ClientContextFactoryTests N/A N/A N/A tCase skip Reactor does not support SSL, cannot run SSL tests