summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/frontend.erl6
-rw-r--r--src/plop_httputil.erl4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/frontend.erl b/src/frontend.erl
index e4d8e40..8a593b4 100644
--- a/src/frontend.erl
+++ b/src/frontend.erl
@@ -33,7 +33,7 @@ request(post, ?APPURL_PLOP_FRONTEND, "sendentry", Input) ->
request(post, ?APPURL_PLOP_FRONTEND, "sendlog", Input) ->
case (catch mochijson2:decode(Input)) of
{error, E} ->
- html("sendentry: bad input:", E);
+ html("sendlog: bad input:", E);
{struct, PropList} ->
Start = proplists:get_value(<<"start">>, PropList),
Hashes = lists:map(fun (S) -> base64:decode(S) end, proplists:get_value(<<"hashes">>, PropList)),
@@ -142,7 +142,7 @@ request(post, ?APPURL_PLOP_MERGE, "sendentry", Input) ->
request(post, ?APPURL_PLOP_MERGE, "sendlog", Input) ->
case (catch mochijson2:decode(Input)) of
{error, E} ->
- html("sendentry: bad input:", E);
+ html("sendlog: bad input:", E);
{struct, PropList} ->
Start = proplists:get_value(<<"start">>, PropList),
Hashes = lists:map(fun (S) -> base64:decode(S) end, proplists:get_value(<<"hashes">>, PropList)),
@@ -152,7 +152,7 @@ request(post, ?APPURL_PLOP_MERGE, "sendlog", Input) ->
request(post, ?APPURL_PLOP_MERGE, "verifyroot", Input) ->
case (catch mochijson2:decode(Input)) of
{error, E} ->
- html("sendentry: bad input:", E);
+ html("verifyroot: bad input:", E);
{struct, PropList} ->
OldSize = db:verifiedsize(),
Treesize = proplists:get_value(<<"tree_size">>, PropList),
diff --git a/src/plop_httputil.erl b/src/plop_httputil.erl
index af4a5d1..b4188e7 100644
--- a/src/plop_httputil.erl
+++ b/src/plop_httputil.erl
@@ -64,14 +64,14 @@ read_and_verify_cacertfile(Filename) ->
[KeyPem] = public_key:pem_decode(PemBin),
{'Certificate', Der, _} = KeyPem,
CalculatedHash = crypto:hash(sha256, Der),
- CorrectHash = application:get_env(catlfish, https_cacert_fingerprint, none),
+ CorrectHash = application:get_env(plop, https_cacert_fingerprint, none),
CorrectHash = CalculatedHash,
Der.
request(DebugTag, URL, Headers, RequestBody) ->
Starttime = os:timestamp(),
ParsedURL = hackney_url:parse_url(URL),
- CACertFile = application:get_env(catlfish, https_cacertfile, none),
+ CACertFile = application:get_env(plop, https_cacertfile, none),
CACert = read_and_verify_cacertfile(CACertFile),
#hackney_url{path = Path, host = Host} = ParsedURL,
lager:debug("~s: sending http request to ~p",