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

Issue 30290043: Fix the scanner to accept precerts

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 5 months ago by ekasper
Modified:
10 years, 5 months ago
CC:
ctlog-opensource-review_google.com
Visibility:
Public.

Description

Fix the scanner to accept precerts

Patch Set 1 #

Patch Set 2 : revert size #

Total comments: 6

Patch Set 3 : comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -45 lines) Patch
M src/python/ct/client/tools/scan.py View 1 2 7 chunks +75 lines, -45 lines 0 comments Download

Messages

Total messages: 5
ekasper
- Partially parse precert entries. Currently just passes the original precertificate - rather than the ...
10 years, 5 months ago (2013-11-21 13:27:16 UTC) #1
ekasper
Al, Eran - maybe you have time to pick this up while Ben is travelling? ...
10 years, 5 months ago (2013-11-25 11:48:21 UTC) #2
Eran
On 2013/11/25 11:48:21, ekasper wrote: > Al, Eran - maybe you have time to pick ...
10 years, 5 months ago (2013-11-25 11:51:11 UTC) #3
Eran
LGTM, see comments below. https://codereview.appspot.com/30290043/diff/20001/src/python/ct/client/tools/scan.py File src/python/ct/client/tools/scan.py (right): https://codereview.appspot.com/30290043/diff/20001/src/python/ct/client/tools/scan.py#newcode78 src/python/ct/client/tools/scan.py:78: extensions_length_prefix = leaf_bytes.read(2) Nit: Extract ...
10 years, 5 months ago (2013-11-25 22:23:24 UTC) #4
ekasper
10 years, 5 months ago (2013-11-28 13:15:14 UTC) #5
https://codereview.appspot.com/30290043/diff/20001/src/python/ct/client/tools...
File src/python/ct/client/tools/scan.py (right):

https://codereview.appspot.com/30290043/diff/20001/src/python/ct/client/tools...
src/python/ct/client/tools/scan.py:78: extensions_length_prefix =
leaf_bytes.read(2)
On 2013/11/25 22:23:25, Eran wrote:
> Nit: Extract extension reading to a separate method, this one is long enough.

Done.

https://codereview.appspot.com/30290043/diff/20001/src/python/ct/client/tools...
src/python/ct/client/tools/scan.py:85: raise Error("Input too short")
On 2013/11/25 22:23:25, Eran wrote:
> Distinct this error from the previous error, bonus points if you explicitly
> state which field was too short.

Done.

https://codereview.appspot.com/30290043/diff/20001/src/python/ct/client/tools...
src/python/ct/client/tools/scan.py:90: else:
On 2013/11/25 22:23:25, Eran wrote:
> Nit: Explicitly check the type (or simply assert)

It's checked above.
Sign in to reply to this message.

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