summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/catlfish.erl6
1 files 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} ->
- <<Timestamp:64, _LogEntry>> = Entry,
+ {_Index, _MTLHash, Entry} ->
+ <<Timestamp:64, _LogEntry/binary>> = 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))}]})).