remove unused checksum function

This commit is contained in:
dandds 2018-08-17 11:03:27 -04:00 committed by luis cielak
parent 504b138765
commit f5cc9daee9

View File

@ -9,14 +9,6 @@ class CRLRevocationException(Exception):
pass
def sha256_checksum(filename, block_size=65536):
sha256 = hashlib.sha256()
with open(filename, "rb") as f:
for block in iter(lambda: f.read(block_size), b""):
sha256.update(block)
return sha256.hexdigest()
def crl_check(cache, cert):
parsed = crypto.load_certificate(crypto.FILETYPE_PEM, cert)
store = cache.get_store(parsed)