diff options
| author | Magnus Ahltorp <map@kth.se> | 2014-10-21 17:17:36 +0200 |
|---|---|---|
| committer | Magnus Ahltorp <map@kth.se> | 2014-10-21 17:17:36 +0200 |
| commit | 55542cce03a088e41e11b8ca5524a534ca4dcd61 (patch) | |
| tree | 4321af9e894a7284695b1ab26c6a78ae61e5220e /src/plop.erl | |
| parent | 3995b3448ad06954f119851734de6de750977268 (diff) | |
Break include dependency on plop.hrlexternal-merge
Diffstat (limited to 'src/plop.erl')
| -rw-r--r-- | src/plop.erl | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/plop.erl b/src/plop.erl index e19603f..84d0920 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"). @@ -331,11 +331,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. |
