From 9ffb69e264ebd826f8aa1aa5e1a77b3a4626c106 Mon Sep 17 00:00:00 2001 From: Magnus Ahltorp Date: Sat, 27 Sep 2014 18:34:49 +0200 Subject: Fix api problems --- src/catlfish.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/catlfish.erl b/src/catlfish.erl index b6856b8..2f95cfb 100644 --- a/src/catlfish.erl +++ b/src/catlfish.erl @@ -76,8 +76,8 @@ add_chain(LeafCert, CertChain) -> ht:leaf_hash(serialise(MTL)), crypto:hash(sha256, LeafCert)), TSE; - {_Index, Entry} -> - <> = Entry, + {_Index, _MTLHash, Entry} -> + <> = Entry, %% TODO: Perform a costly db consistency check against %% unpacked LogEntry (w/ LeafCert and CertChain) #timestamped_entry{timestamp = Timestamp, @@ -91,7 +91,7 @@ add_chain(LeafCert, CertChain) -> binary_to_list( jiffy:encode( {[{sct_version, ?PROTOCOL_VERSION}, - {id, base64:encode(plop:logid())}, + {id, base64:encode(plop:get_logid())}, {timestamp, TimestampedEntry#timestamped_entry.timestamp}, {extensions, base64:encode(<<>>)}, {signature, base64:encode(plop:serialise(SCT_sig))}]})). -- cgit v1.1