def __init__(self, nattempts, hello):
        ConnectionHammer.__init__(self, nattempts)
        self.hello = hello

        # create a context
        self.ctx = M2Crypto.SSL.Context()
        self.ctx.set_allow_unknown_ca(True)
        self.ctx.set_verify(M2Crypto.SSL.verify_none, 9)
예제 #2
0
    def __init__(self, nattempts, hello):
        ConnectionHammer.__init__(self, nattempts)
        self.hello = hello

        # create a context
        self.ctx = M2Crypto.SSL.Context()
        self.ctx.set_allow_unknown_ca(True)
        self.ctx.set_verify(M2Crypto.SSL.verify_none, 9)
예제 #3
0
 def __init__(self, nattempts, ca_cert_file):
     ConnectionHammer.__init__(self, nattempts)
     self.ca_cert_file = ca_cert_file