From 6d6561a902f2352f8dc1b7a28c37694e71fade16 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Mon, 5 May 2014 01:03:34 +0200 Subject: Add (empty) get-roots. --- src/v1.erl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') 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), -- cgit v1.1