コード例 #1
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)
コード例 #2
0
 def __init__(self, nattempts, ca_cert_file=None):
     ConnectionHammer.__init__(self, nattempts)
     self.ca_cert_file = ca_cert_file