From eb9b05d4b9213c9481a7005c63fa9107fe1b879f Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Thu, 25 Sep 2014 17:04:01 +0200 Subject: Sign the correct things in SPT's. First, the log entry (i.e. leaf hash) must be a TLS vector. Second, an empty extension (as a TLS vector), must be included. --- src/plop.erl | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/plop.erl b/src/plop.erl index d9daf8d..5443183 100644 --- a/src/plop.erl +++ b/src/plop.erl @@ -408,11 +408,14 @@ serialise(#spt_signed{ }) -> Sigtype = signature_type(SigtypeAtom), Entrytype = entry_type(EntrytypeAtom), - <>; + Extensions = <<>>, + list_to_binary( + [<>, + serialise_tls_vector(Entry, 3), + serialise_tls_vector(Extensions, 2)]); serialise(#mtl{ % Merkle Tree Leaf. version = Version, leaf_type = TypeAtom, -- cgit v1.1