summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagnus Ahltorp <map@kth.se>2015-03-19 10:57:11 +0100
committerMagnus Ahltorp <map@kth.se>2015-03-19 10:57:11 +0100
commitfa50d9c5742d6946aaca321a6db5e8b0b19ff696 (patch)
tree1c6e818ba9dad03880daf4affadc44a047328d18
parente7c8c50684344ebef54d92efbf4be08b35a06f05 (diff)
Fix signature calculation in test
-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: