summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/plop.erl12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plop.erl b/src/plop.erl
index 39ab2c0..b549616 100644
--- a/src/plop.erl
+++ b/src/plop.erl
@@ -26,7 +26,7 @@
%% API.
-export([start_link/2, stop/0]).
-export([get_logid/0, serialise/1]).
--export([add/2, sth/0, get/2, consistency/2, inclusion/2, inclusion_and_more/2]).
+-export([add/2, sth/0, get/2, consistency/2, inclusion/2, inclusion_and_entry/2]).
%% API for tests.
-export([read_keyfile_rsa/2, read_keyfiles_ec/2]).
-export([testing_get_pubkey/0]).
@@ -118,10 +118,10 @@ consistency(TreeSizeFirst, TreeSizeSecond) ->
{ok, mtl()} | {notfound, string()}.
inclusion(Hash, TreeSize) ->
gen_server:call(?MODULE, {inclusion, {Hash, TreeSize}}).
--spec inclusion_and_more(non_neg_integer(), non_neg_integer()) ->
- {ok, {mtl(), binary()}} | {notfound, string()}.
-inclusion_and_more(Index, TreeSize) ->
- gen_server:call(?MODULE, {inclusion_and_more, {Index, TreeSize}}).
+-spec inclusion_and_entry(non_neg_integer(), non_neg_integer()) ->
+ {ok, {mtl(), binary()}} | {notfound, string()}.
+inclusion_and_entry(Index, TreeSize) ->
+ gen_server:call(?MODULE, {inclusion_and_entry, {Index, TreeSize}}).
get_logid() ->
gen_server:call(?MODULE, {get, logid}).
testing_get_pubkey() ->
@@ -167,7 +167,7 @@ handle_call({inclusion, {Hash, TreeSize}}, _From, Plop) ->
end,
{reply, R, Plop};
-handle_call({inclusion_and_more, {Index, TreeSize}}, _From, Plop) ->
+handle_call({inclusion_and_entry, {Index, TreeSize}}, _From, Plop) ->
R = case db:find(index, Index) of
[] ->
{notfound, "Unknown index"}; % FIXME: include Index