From 0d2c5fa5966b0871bfe634f676f7def78bf423ac Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Wed, 7 May 2014 05:45:38 +0200 Subject: It's `tree_size'. Not `treesize'. --- src/v1.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/v1.erl b/src/v1.erl index 6007aaa..e40d528 100644 --- a/src/v1.erl +++ b/src/v1.erl @@ -33,7 +33,7 @@ get_sth(SessionID, _Env, _Input) -> timestamp = Timestamp, roothash = Roothash, signature = Signature} = plop:sth(), - R = [{treesize, Treesize}, + R = [{tree_size, Treesize}, {timestamp, Timestamp}, {sha256_root_hash, base64:encode(Roothash)}, {tree_head_signature, base64:encode(Signature)}], -- cgit v1.1 From 0a0ab0b6d91210d5bc5782f4f5372dd934643085 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Wed, 7 May 2014 05:47:26 +0200 Subject: Add to README. --- README | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README b/README index e55f165..5e96842 100644 --- a/README +++ b/README @@ -20,8 +20,8 @@ Start installed, i.e. has a database. See plop/README. Also, you might want to code:add_pathz("path/to/plop/ebin"). - 1> inets:start(), https_server:start(). + 1> inets:start(httpd, [{proplist_file, "httpd_props.conf"}]). To do - Make it a proper application. + Stop using inets httpd mod_ets and make it a proper application. -- cgit v1.1 From b4b5e0c94ed3f3d579ec033a52b2a8d70069cc64 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Sat, 10 May 2014 11:17:12 +0200 Subject: The tree head signature from get-sth is not base64 encoded. --- src/v1.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/v1.erl b/src/v1.erl index e40d528..b082d5b 100644 --- a/src/v1.erl +++ b/src/v1.erl @@ -3,7 +3,7 @@ get_sth_consistency/3, get_proof_by_hash/3, get_entries/3, get_roots/3, get_entry_and_proof/3]). -export([hello/3]). --include("/home/linus/usr/src/ct/plop/include/plop.hrl"). +-include("$CTROOT/plop/include/plop.hrl"). -define(PROTOCOL_VERSION, 1). %% Public functions. @@ -36,7 +36,7 @@ get_sth(SessionID, _Env, _Input) -> R = [{tree_size, Treesize}, {timestamp, Timestamp}, {sha256_root_hash, base64:encode(Roothash)}, - {tree_head_signature, base64:encode(Signature)}], + {tree_head_signature, Signature}], mod_esi:deliver(SessionID, binary_to_list(jiffy:encode({R}))). get_sth_consistency(SessionID, _Env, _Input) -> -- cgit v1.1