diff options
author | Magnus Ahltorp <map@kth.se> | 2014-09-27 18:34:49 +0200 |
---|---|---|
committer | Magnus Ahltorp <map@kth.se> | 2014-09-27 18:34:49 +0200 |
commit | 9ffb69e264ebd826f8aa1aa5e1a77b3a4626c106 (patch) | |
tree | 034f0f842b7ec67a4992edb515372d3ab9412517 /src/catlfish.erl | |
parent | b5b5c0f43803a2d31fb5bf240e4b70377d367b7a (diff) |
Fix api problems
Diffstat (limited to 'src/catlfish.erl')
-rw-r--r-- | src/catlfish.erl | 6 |
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))}]})). |