summaryrefslogtreecommitdiff
path: root/src/plop.erl
diff options
context:
space:
mode:
authorMagnus Ahltorp <map@kth.se>2014-10-21 17:17:36 +0200
committerLinus Nordberg <linus@nordberg.se>2014-10-24 11:02:29 +0200
commit6f477e27dcbb8ecf24947d473186e8984cf87867 (patch)
tree6ac6f79ec1a7ed48ec6895b00fbcd3c4a28b221a /src/plop.erl
parentbf0a6e5458c16cb9bf72db002d840c5e1fbb3f29 (diff)
Break include dependency on plop.hrl
Diffstat (limited to 'src/plop.erl')
-rw-r--r--src/plop.erl8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/plop.erl b/src/plop.erl
index 30d05ca..0b101be 100644
--- a/src/plop.erl
+++ b/src/plop.erl
@@ -35,7 +35,7 @@
-export([init/1, handle_call/3, terminate/2,
handle_cast/2, handle_info/2, code_change/3]).
--include("$CTROOT/plop/include/plop.hrl").
+-include("plop.hrl").
%%-include("db.hrl").
-include_lib("public_key/include/public_key.hrl").
-include_lib("eunit/include/eunit.hrl").
@@ -211,11 +211,7 @@ sth(PrivKey, #sth_signed{version = Version, timestamp = Timestamp_in}) ->
hash_alg = sha256,
signature_alg = ecdsa},
signature = signhash(BinToSign, PrivKey)},
- STH = #sth{
- treesize = Treesize,
- timestamp = Timestamp,
- roothash = Roothash,
- signature = Signature},
+ STH = {Treesize, Timestamp, Roothash, Signature},
%%io:format("STH: ~p~nBinToSign: ~p~nSignature: ~p~nTimestamp: ~p~n",
%% [STH, BinToSign, Signature, Timestamp]),
STH.