def __init__(self): self.context = SSL.Context(SSL.SSLv23_METHOD) self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) self.sock.settimeout(30) self.connection = SSL.Connection(self.context, self.sock) self.log = log_behavior.log() self.cert_path = "certificates_cn/" self.cert_chain_path = "certificates_chain_cn/"
def __init__(self, dbfile): self.dbfile = dbfile self.log = log_behavior.log()