summaryrefslogtreecommitdiff
path: root/src/plop.erl
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2014-05-26 10:22:38 +0200
committerLinus Nordberg <linus@nordberg.se>2014-05-26 10:22:38 +0200
commitac839ba049d96f2f0a1caaac033defe42cc10624 (patch)
treede89775d7f56173cdb3e258e90a24f317b1c9e22 /src/plop.erl
parent44d52c56e68a2153f1b2266a55e73f641f8533d6 (diff)
Make tests use v1=0 too.
Diffstat (limited to 'src/plop.erl')
-rw-r--r--src/plop.erl7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/plop.erl b/src/plop.erl
index ba74ead..9a75465 100644
--- a/src/plop.erl
+++ b/src/plop.erl
@@ -409,17 +409,16 @@ serialise(#signature{
Signature/binary>>].
%%%%%%%%%%%%%%%%%%%%
-%% Tests.
+%% Internal tests. For more tests see ../test/.
serialise_test_() ->
[?_assertEqual(
- <<1:8, 0:8, 0:64, 0:16, "foo">>,
+ <<0:8, 0:8, 0:64, 0:16, "foo">>,
list_to_binary(serialise(#spt_signed{
- version = 1,
+ version = 0,
signature_type = certificate_timestamp,
timestamp = 0,
entry_type = x509,
signed_entry = <<"foo">>})))].
-%%add_test_() ->
add_test() ->
{ok, S} = init([?TESTPRIVKEYFILE, ?TESTPUBKEYFILE]),