summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMagnus Ahltorp <map@kth.se>2014-09-27 18:34:49 +0200
committerMagnus Ahltorp <map@kth.se>2014-09-27 18:34:49 +0200
commit9ffb69e264ebd826f8aa1aa5e1a77b3a4626c106 (patch)
tree034f0f842b7ec67a4992edb515372d3ab9412517 /src
parentb5b5c0f43803a2d31fb5bf240e4b70377d367b7a (diff)
Fix api problems
Diffstat (limited to 'src')
-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))}]})).