summaryrefslogtreecommitdiff
path: root/tools/testcase1.py
diff options
context:
space:
mode:
authorMagnus Ahltorp <map@kth.se>2015-03-19 10:57:11 +0100
committerMagnus Ahltorp <map@kth.se>2015-03-23 16:14:48 +0100
commit47e16395eeb7c1825d507a31df9bc89f9b24c10d (patch)
tree5d90df14fcd5dc247bb365507a8913d891334724 /tools/testcase1.py
parent0a76e4d080a8349456d04434dcb2d4b381eb8ec4 (diff)
Fix signature calculation in test
Diffstat (limited to 'tools/testcase1.py')
-rwxr-xr-xtools/testcase1.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/testcase1.py b/tools/testcase1.py
index 73613fb..dc62d17 100755
--- a/tools/testcase1.py
+++ b/tools/testcase1.py
@@ -70,7 +70,8 @@ def do_add_chain(chain):
except ValueError, e:
print_error("%s", e)
try:
- check_sct_signature(baseurl, chain[0], result)
+ signed_entry = pack_cert(chain[0])
+ check_sct_signature(baseurl, signed_entry, result)
except AssertionError, e:
print_error("%s", e)
except ecdsa.keys.BadSignatureError, e: