Ejemplo n.º 1
0
    def pretendToVerify(self, other, tpt):
        # Set the transport problems list here?  disconnections?
        # hmmmmm... need some negative path tests.

        if not self.obj.iosimVerify(other.obj):
            tpt.disconnectReason = NativeOpenSSLError()
            tpt.loseConnection()
Ejemplo n.º 2
0
 def reportDisconnect(self):
     if self.tls is not None:
         # We were in the middle of negotiating!  Must have been a TLS problem.
         err = NativeOpenSSLError()
     else:
         err = self.disconnectReason
     self.protocol.connectionLost(Failure(err))