aboutsummaryrefslogtreecommitdiff
path: root/potpourri/rrdp-test-tool
diff options
context:
space:
mode:
Diffstat (limited to 'potpourri/rrdp-test-tool')
-rwxr-xr-xpotpourri/rrdp-test-tool2
1 files changed, 1 insertions, 1 deletions
diff --git a/potpourri/rrdp-test-tool b/potpourri/rrdp-test-tool
index 8ea90f17..ccf17960 100755
--- a/potpourri/rrdp-test-tool
+++ b/potpourri/rrdp-test-tool
@@ -90,7 +90,7 @@ class main(object):
def del_obj(self, uri, hash):
fn = self.uri_to_filename(uri)
with open(fn, "rb") as f:
- if hash != rpki.x509.sha256(f.read()).encode("hex"):
+ if hash.lower() != rpki.x509.sha256(f.read()).encode("hex"):
raise RuntimeError("Hash mismatch for URI %s" % uri)
os.unlink(fn)
dn = os.path.dirname(fn)