From 838828891320fd5b6c97df74327c6163521517cc Mon Sep 17 00:00:00 2001 From: Magnus Ahltorp Date: Tue, 21 Oct 2014 17:16:50 +0200 Subject: Break include dependency on plop.hrl --- src/v1.erl | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/v1.erl') diff --git a/src/v1.erl b/src/v1.erl index ba5c456..535fc8f 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 @@ -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)}, -- cgit v1.1