From eabf3612c5efe3b344366802db9f4de36871bacf Mon Sep 17 00:00:00 2001
From: Linus Nordberg <linus@nordu.net>
Date: Thu, 16 Jul 2015 11:52:27 +0200
Subject: Accept any kind of submitted data, not only X.509 certificate chains.

Have add_chain() take a blob instead of a cert leaf and a chain.
Rename ct/v1/add-chain -> add-blob.
Remove ct/v1/add-pre-chain.
Remove chain checking code.
Generate allowed_client config matching new HTTP API.
---
 tools/compileconfig.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

(limited to 'tools')

diff --git a/tools/compileconfig.py b/tools/compileconfig.py
index cac1be6..6881705 100755
--- a/tools/compileconfig.py
+++ b/tools/compileconfig.py
@@ -135,8 +135,7 @@ def allowed_clients_mergesecondary(primarymergenode):
 def allowed_clients_public():
     noauth = Symbol("noauth")
     return [
-        ("/ct/v1/add-chain", noauth),
-        ("/ct/v1/add-pre-chain", noauth),
+        ("/ct/v1/add-blob", noauth),
         ("/ct/v1/get-sth", noauth),
         ("/ct/v1/get-sth-consistency", noauth),
         ("/ct/v1/get-proof-by-hash", noauth),
-- 
cgit v1.1