summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2014-05-05 01:03:34 +0200
committerLinus Nordberg <linus@nordberg.se>2014-05-05 01:03:34 +0200
commit6d6561a902f2352f8dc1b7a28c37694e71fade16 (patch)
tree925a72eb72259952a446d213a9abe537b1b3be68
parentbf6fc033b757ae4b572ab6ff7fff332236525791 (diff)
Add (empty) get-roots.
-rw-r--r--src/v1.erl6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/v1.erl b/src/v1.erl
index 73f7c28..6007aaa 100644
--- a/src/v1.erl
+++ b/src/v1.erl
@@ -45,11 +45,13 @@ get_proof_by_hash(SessionID, _Env, _Input) ->
niy(SessionID).
get_entries(SessionID, _Env, _Input) ->
niy(SessionID).
-get_roots(SessionID, _Env, _Input) ->
- niy(SessionID).
get_entry_and_proof(SessionID, _Env, _Input) ->
niy(SessionID).
+get_roots(SessionID, _Env, _Input) ->
+ R = [{certificates, []}], % NIY.
+ mod_esi:deliver(SessionID, binary_to_list(jiffy:encode({R}))).
+
%% For testing. FIXME: Remove.
hello(SessionID, Env, Input) ->
Query = httpd:parse_query(Input),