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

Issue 13750045: Handle duplicate extensions

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

Description

Handle duplicate extensions

Patch Set 1 #

Patch Set 2 : fix notBefore/notAfter, too #

Total comments: 2

Patch Set 3 : cache exceptions #

Patch Set 4 : update docstrings #

Total comments: 4

Patch Set 5 : reduce duplicate code #

Patch Set 6 : wrap #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+166 lines, -58 lines) Patch
M src/python/ct/crypto/cert.py View 1 2 3 4 5 7 chunks +166 lines, -58 lines 3 comments Download

Messages

Total messages: 8
ekasper
And just for good measure, handle corrupt time, too. The cert that choked the scan ...
10 years, 7 months ago (2013-09-20 10:19:02 UTC) #1
Ben Laurie (Google)
https://codereview.appspot.com/13750045/diff/3001/src/python/ct/crypto/cert.py File src/python/ct/crypto/cert.py (right): https://codereview.appspot.com/13750045/diff/3001/src/python/ct/crypto/cert.py#newcode283 src/python/ct/crypto/cert.py:283: raise CertificateError("Corrupt notBefore") Maybe try to reparse the not_before ...
10 years, 7 months ago (2013-09-20 11:01:27 UTC) #2
ekasper
https://codereview.appspot.com/13750045/diff/3001/src/python/ct/crypto/cert.py File src/python/ct/crypto/cert.py (right): https://codereview.appspot.com/13750045/diff/3001/src/python/ct/crypto/cert.py#newcode283 src/python/ct/crypto/cert.py:283: raise CertificateError("Corrupt notBefore") On 2013/09/20 11:01:28, Ben Laurie (Google) ...
10 years, 7 months ago (2013-09-20 11:29:28 UTC) #3
Ben Laurie (Google)
https://codereview.appspot.com/13750045/diff/12001/src/python/ct/crypto/cert.py File src/python/ct/crypto/cert.py (right): https://codereview.appspot.com/13750045/diff/12001/src/python/ct/crypto/cert.py#newcode97 src/python/ct/crypto/cert.py:97: decoding_error) Make CachedTime() a class and move all the ...
10 years, 7 months ago (2013-09-20 13:09:12 UTC) #4
ekasper
https://codereview.appspot.com/13750045/diff/12001/src/python/ct/crypto/cert.py File src/python/ct/crypto/cert.py (right): https://codereview.appspot.com/13750045/diff/12001/src/python/ct/crypto/cert.py#newcode97 src/python/ct/crypto/cert.py:97: decoding_error) On 2013/09/20 13:09:12, Ben Laurie (Google) wrote: > ...
10 years, 7 months ago (2013-09-20 13:32:17 UTC) #5
Ben Laurie (Google)
LGTM https://codereview.appspot.com/13750045/diff/18001/src/python/ct/crypto/cert.py File src/python/ct/crypto/cert.py (right): https://codereview.appspot.com/13750045/diff/18001/src/python/ct/crypto/cert.py#newcode305 src/python/ct/crypto/cert.py:305: Extra blank line.
10 years, 7 months ago (2013-09-20 13:43:30 UTC) #6
ekasper
https://codereview.appspot.com/13750045/diff/18001/src/python/ct/crypto/cert.py File src/python/ct/crypto/cert.py (right): https://codereview.appspot.com/13750045/diff/18001/src/python/ct/crypto/cert.py#newcode305 src/python/ct/crypto/cert.py:305: On 2013/09/20 13:43:30, Ben Laurie (Google) wrote: > Extra ...
10 years, 7 months ago (2013-09-20 13:46:24 UTC) #7
Eran
10 years, 7 months ago (2013-09-23 13:50:28 UTC) #8
Drive-by review. Overall LGTM.

https://codereview.appspot.com/13750045/diff/18001/src/python/ct/crypto/cert.py
File src/python/ct/crypto/cert.py (right):

https://codereview.appspot.com/13750045/diff/18001/src/python/ct/crypto/cert....
src/python/ct/crypto/cert.py:48: # We can't raise here because we don't want to
abort __init__,
Why not do caching the standard way, when decode_time() is first called?
Will save the need for storing the error and just more standard pattern.
Sign in to reply to this message.

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