Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(7622)

Issue 11764044: Add audit proof lookup

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 9 months ago by Ben Laurie (Google)
Modified:
10 years, 9 months ago
Reviewers:
Al Cutter, Eran
Visibility:
Public.

Description

Add audit proof lookup

Patch Set 1 #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -24 lines) Patch
M src/Makefile View 1 chunk +2 lines, -1 line 0 comments Download
M src/server/ct-rfc-server.cc View 5 chunks +42 lines, -2 lines 4 comments Download
M src/test/run_log_server.sh View 2 chunks +10 lines, -10 lines 4 comments Download
M src/util/json_wrapper.h View 4 chunks +14 lines, -10 lines 0 comments Download
M src/util/util.h View 2 chunks +7 lines, -1 line 2 comments Download
M src/util/util.cc View 2 chunks +14 lines, -0 lines 0 comments Download

Messages

Total messages: 4
Ben Laurie (Google)
10 years, 9 months ago (2013-07-24 13:50:32 UTC) #1
Eran
minor comments, otherwise LGTM. https://codereview.appspot.com/11764044/diff/1/src/server/ct-rfc-server.cc File src/server/ct-rfc-server.cc (right): https://codereview.appspot.com/11764044/diff/1/src/server/ct-rfc-server.cc#newcode351 src/server/ct-rfc-server.cc:351: LOG(INFO) << "hash = " ...
10 years, 9 months ago (2013-07-24 14:20:08 UTC) #2
Al Cutter
https://codereview.appspot.com/11764044/diff/1/src/server/ct-rfc-server.cc File src/server/ct-rfc-server.cc (right): https://codereview.appspot.com/11764044/diff/1/src/server/ct-rfc-server.cc#newcode347 src/server/ct-rfc-server.cc:347: void GetProof(server::response &response, const uri::uri &uri) { response should ...
10 years, 9 months ago (2013-07-24 14:56:29 UTC) #3
Ben Laurie (Google)
10 years, 9 months ago (2013-07-24 15:21:11 UTC) #4
Pushing...

https://codereview.appspot.com/11764044/diff/1/src/server/ct-rfc-server.cc
File src/server/ct-rfc-server.cc (right):

https://codereview.appspot.com/11764044/diff/1/src/server/ct-rfc-server.cc#ne...
src/server/ct-rfc-server.cc:347: void GetProof(server::response &response, const
uri::uri &uri) {
On 2013/07/24 14:56:29, Al Cutter wrote:
> response should really be a pointer here since it's an output.

I totally agree, however, cpp-netlib has it as a reference and so I am following
the local idiom, even though I don't like it.

https://codereview.appspot.com/11764044/diff/1/src/server/ct-rfc-server.cc#ne...
src/server/ct-rfc-server.cc:351: LOG(INFO) << "hash = " << b64hash << " size = "
<< qmap["tree_size"];
On 2013/07/24 14:20:08, Eran wrote:
> Is this leftover debugging or meant to be printed for every request?
> (In general it may make sense to print the incoming request path and body for
> all incoming requests)

There's a VLOG to do that, I will remove this.

https://codereview.appspot.com/11764044/diff/1/src/test/run_log_server.sh
File src/test/run_log_server.sh (right):

https://codereview.appspot.com/11764044/diff/1/src/test/run_log_server.sh#new...
src/test/run_log_server.sh:32: #   echo "$HASH_DIR doesn't exist, creating"
On 2013/07/24 14:20:08, Eran wrote:
> Simply remove this code?

It's slightly tedious to work out, and we may well want to reinstate certificate
hash directories, so my inclination was to leave it for reference.

https://codereview.appspot.com/11764044/diff/1/src/test/run_log_server.sh#new...
src/test/run_log_server.sh:40: echo "Starting CT server with trusted certs in
$HASH_DIR"
On 2013/07/24 14:20:08, Eran wrote:
> HASH_DIR seem to be completely gone from this file, so it should probably not
be
> here as well.

Heh, oops. I'll delete this.

https://codereview.appspot.com/11764044/diff/1/src/util/util.h
File src/util/util.h (right):

https://codereview.appspot.com/11764044/diff/1/src/util/util.h#newcode41
src/util/util.h:41: 
On 2013/07/24 14:20:08, Eran wrote:
> Empty line at EOF.

Done.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b