summaryrefslogtreecommitdiff
path: root/src/v1.erl
diff options
context:
space:
mode:
authorMagnus Ahltorp <map@kth.se>2014-10-21 17:16:50 +0200
committerMagnus Ahltorp <map@kth.se>2014-10-24 04:58:41 +0200
commitd008238b16416daf46f859e611f4c84d0a646523 (patch)
tree99e41618f790e84c6c608fa9373402280090fa70 /src/v1.erl
parent738779b4c6453ebfb9916e2f59b1149e000a75e6 (diff)
Break include dependency on plop.hrl
Conflicts: src/catlfish.erl
Diffstat (limited to 'src/v1.erl')
-rw-r--r--src/v1.erl11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/v1.erl b/src/v1.erl
index 46b5235..6b973fc 100644
--- a/src/v1.erl
+++ b/src/v1.erl
@@ -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
@@ -40,11 +38,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)},