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

Issue 13334045: Add version to the cert API, and a test for V1 certs

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

Description

Add version to the cert API, and a test for V1 certs

Patch Set 1 #

Total comments: 2

Patch Set 2 : check basicconstraints #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -7 lines) Patch
M src/python/ct/crypto/cert.py View 1 chunk +8 lines, -0 lines 0 comments Download
M src/python/ct/crypto/cert_test.py View 1 4 chunks +20 lines, -8 lines 0 comments Download
A + src/python/ct/crypto/testdata/v1_cert.pem View 0 chunks +-1 lines, --1 lines 0 comments Download

Messages

Total messages: 3
ekasper
10 years, 8 months ago (2013-08-30 13:19:14 UTC) #1
Eran
LGTM, see suggestion for additional check. https://codereview.appspot.com/13334045/diff/1/src/python/ct/crypto/cert_test.py File src/python/ct/crypto/cert_test.py (right): https://codereview.appspot.com/13334045/diff/1/src/python/ct/crypto/cert_test.py#newcode147 src/python/ct/crypto/cert_test.py:147: self.assertEqual(0, c.version()) Also ...
10 years, 8 months ago (2013-08-30 13:36:47 UTC) #2
ekasper
10 years, 8 months ago (2013-08-30 14:21:32 UTC) #3
https://codereview.appspot.com/13334045/diff/1/src/python/ct/crypto/cert_test.py
File src/python/ct/crypto/cert_test.py (right):

https://codereview.appspot.com/13334045/diff/1/src/python/ct/crypto/cert_test...
src/python/ct/crypto/cert_test.py:147: self.assertEqual(0, c.version())
On 2013/08/30 13:36:47, Eran wrote:
> Also check that calling get_extensions does not throw

There's no get_extensions yet because I haven't decided on that API, but I've
added a check for basicConstraints.
Sign in to reply to this message.

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