diff options
author | Magnus Ahltorp <map@kth.se> | 2014-10-21 17:16:50 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordberg.se> | 2014-10-24 11:03:30 +0200 |
commit | c2415b2f3e337c072c4d5534d3f2b282d88d7230 (patch) | |
tree | 03e0b5d327dd30d300ded5ccbc582db939ec2625 /src/v1.erl | |
parent | 92d8435250a9d8d498e129f91e64045bfd30e7b9 (diff) |
Break include dependency on plop.hrl
Diffstat (limited to 'src/v1.erl')
-rw-r--r-- | src/v1.erl | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -9,8 +9,6 @@ 'get-sth-consistency'/3, 'get-proof-by-hash'/3, 'get-entries'/3, 'get-roots'/3, 'get-entry-and-proof'/3]). --include("$CTROOT/plop/include/plop.hrl"). - %% Public functions, i.e. part of URL. 'add-chain'(SessionID, _Env, Input) -> R = case (catch jiffy:decode(Input)) of @@ -34,11 +32,10 @@ niy(SessionID). 'get-sth'(SessionID, _Env, _Input) -> - #sth{ - treesize = Treesize, - timestamp = Timestamp, - roothash = Roothash, - signature = Signature} = plop:sth(), + { Treesize, + Timestamp, + Roothash, + Signature} = plop:sth(), R = [{tree_size, Treesize}, {timestamp, Timestamp}, {sha256_root_hash, base64:encode(Roothash)}, |