summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2015-11-13 17:27:30 +0100
committerLinus Nordberg <linus@nordu.net>2015-11-13 17:27:30 +0100
commitff47ffd21f5f998cb37347eb8522a217cbf39571 (patch)
treec5c93e7baca7c7658866b5a4b012f9bc00eb788c
parent188035590e105df928bac47ac97f1fe8ced17123 (diff)
Change application URL to open/gaol/v1.
-rw-r--r--src/v1.erl2
-rw-r--r--tools/certtools.py12
-rwxr-xr-xtools/compileconfig.py14
3 files changed, 14 insertions, 14 deletions
diff --git a/src/v1.erl b/src/v1.erl
index 40e93f2..a52171e 100644
--- a/src/v1.erl
+++ b/src/v1.erl
@@ -7,7 +7,7 @@
%% API (URL)
-export([request/4]).
--define(APPURL_CT_V1, "ct/v1").
+-define(APPURL_CT_V1, "open/gaol/v1").
check_valid_sth() ->
case plop:sth() of
diff --git a/tools/certtools.py b/tools/certtools.py
index 2165781..9296401 100644
--- a/tools/certtools.py
+++ b/tools/certtools.py
@@ -137,7 +137,7 @@ def pyopenssl_https_get(url):
return response_lines[len(response_lines) - 1]
def get_sth(baseurl):
- result = urlopen(baseurl + "ct/v1/get-sth").read()
+ result = urlopen(baseurl + "open/gaol/v1/get-sth").read()
return json.loads(result)
def get_proof_by_hash(baseurl, hash, tree_size):
@@ -145,7 +145,7 @@ def get_proof_by_hash(baseurl, hash, tree_size):
params = urllib.urlencode({"hash":base64.b64encode(hash),
"tree_size":tree_size})
result = \
- urlopen(baseurl + "ct/v1/get-proof-by-hash?" + params).read()
+ urlopen(baseurl + "open/gaol/v1/get-proof-by-hash?" + params).read()
return json.loads(result)
except urllib2.HTTPError, e:
print "ERROR:", e.read()
@@ -156,7 +156,7 @@ def get_consistency_proof(baseurl, tree_size1, tree_size2):
params = urllib.urlencode({"first":tree_size1,
"second":tree_size2})
result = \
- urlopen(baseurl + "ct/v1/get-sth-consistency?" + params).read()
+ urlopen(baseurl + "open/gaol/v1/get-sth-consistency?" + params).read()
return json.loads(result)["consistency"]
except urllib2.HTTPError, e:
print "ERROR:", e.read()
@@ -179,7 +179,7 @@ def unpack_tls_array(packed_data, length_len):
def add_chain(baseurl, submission):
try:
- result = urlopen(baseurl + "ct/v1/add-blob", json.dumps(submission)).read()
+ result = urlopen(baseurl + "open/gaol/v1/add-blob", json.dumps(submission)).read()
return json.loads(result)
except urllib2.HTTPError, e:
print "ERROR", e.code,":", e.read()
@@ -196,7 +196,7 @@ def add_chain(baseurl, submission):
def add_prechain(baseurl, submission):
try:
- result = urlopen(baseurl + "ct/v1/add-pre-chain",
+ result = urlopen(baseurl + "open/gaol/v1/add-pre-chain",
json.dumps(submission)).read()
return json.loads(result)
except urllib2.HTTPError, e:
@@ -215,7 +215,7 @@ def add_prechain(baseurl, submission):
def get_entries(baseurl, start, end):
params = urllib.urlencode({"start":start, "end":end})
try:
- result = urlopen(baseurl + "ct/v1/get-entries?" + params).read()
+ result = urlopen(baseurl + "open/gaol/v1/get-entries?" + params).read()
return json.loads(result)
except urllib2.HTTPError, e:
print "ERROR:", e.read()
diff --git a/tools/compileconfig.py b/tools/compileconfig.py
index b7092f9..df43365 100755
--- a/tools/compileconfig.py
+++ b/tools/compileconfig.py
@@ -147,13 +147,13 @@ def allowed_clients_mergesecondary(primarymergenode):
def allowed_clients_public():
noauth = Symbol("noauth")
return [
- ("/ct/v1/add-blob", noauth),
- ("/ct/v1/get-sth", noauth),
- ("/ct/v1/get-sth-consistency", noauth),
- ("/ct/v1/get-proof-by-hash", noauth),
- ("/ct/v1/get-entries", noauth),
- ("/ct/v1/get-entry-and-proof", noauth),
- ("/ct/v1/get-roots", noauth),
+ ("/open/gaol/v1/add-blob", noauth),
+ ("/open/gaol/v1/get-sth", noauth),
+ ("/open/gaol/v1/get-sth-consistency", noauth),
+ ("/open/gaol/v1/get-proof-by-hash", noauth),
+ ("/open/gaol/v1/get-entries", noauth),
+ ("/open/gaol/v1/get-entry-and-proof", noauth),
+ ("/open/gaol/v1/get-roots", noauth),
]
def allowed_clients_signing(frontendnodenames, primarymergenode):