Commit 4b2b4efc authored by Rafael Monnerat's avatar Rafael Monnerat

No need this.

parent 590a9b79
...@@ -215,9 +215,6 @@ def ipFromBin(ip, suffix=''): ...@@ -215,9 +215,6 @@ def ipFromBin(ip, suffix=''):
return socket.inet_ntop(socket.AF_INET6, return socket.inet_ntop(socket.AF_INET6,
struct.pack('>QQ', int(ip[:64], 2), int(ip[64:], 2))) struct.pack('>QQ', int(ip[:64], 2), int(ip[64:], 2)))
def loadCert(pem):
return crypto.load_certificate(crypto.FILETYPE_PEM, pem)
def dump_address(address): def dump_address(address):
return ';'.join(map(','.join, address)) return ';'.join(map(','.join, address))
...@@ -252,13 +249,3 @@ def sqliteCreateTable(db, name, *columns): ...@@ -252,13 +249,3 @@ def sqliteCreateTable(db, name, *columns):
"table %r already exists with unexpected schema" % name) "table %r already exists with unexpected schema" % name)
db.execute(sql) db.execute(sql)
return True return True
def searchCertFromEmail(db, email):
try:
cert_string, = db.execute("SELECT cert FROM cert WHERE email = ?",
(email,)).next()
except StopIteration:
# Certificates not found
return None
return cert_string
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment