Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(405)

Issue 1288193003: Add a function for parsing RFC 5280's "Certificate". (Closed)

Created:
5 years, 4 months ago by eroman
Modified:
5 years, 4 months ago
Reviewers:
davidben
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@test_helpers
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a function for parsing RFC 5280's "Certificate". BUG=410574 Committed: https://crrev.com/58423c13595e87949813b6f86a2f0f8ffd116740 Cr-Commit-Position: refs/heads/master@{#343486}

Patch Set 1 : Split Certificate stuff out of previous TBSCertificate Certificate change #

Patch Set 2 : Add more unittests #

Patch Set 3 : Check TLV tags #

Patch Set 4 : put helper into namespace #

Patch Set 5 : change implementation of ReadSequenceTLV() for better re-use in TBS CL #

Patch Set 6 : rebase onto master #

Total comments: 9

Patch Set 7 : Add datafiles to IOS whitelist #

Patch Set 8 : Wrap comments in .pem files #

Total comments: 1

Patch Set 9 : Add new comment #

Patch Set 10 : cleanup the comment #

Patch Set 11 : More comment fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+674 lines, -0 lines) Patch
M net/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
A net/cert/internal/parse_certificate.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +69 lines, -0 lines 0 comments Download
A net/cert/internal/parse_certificate.cc View 1 2 3 4 1 chunk +66 lines, -0 lines 0 comments Download
A net/cert/internal/parse_certificate_unittest.cc View 1 2 1 chunk +113 lines, -0 lines 0 comments Download
M net/cert/internal/test_helpers.h View 2 chunks +10 lines, -0 lines 0 comments Download
M net/cert/internal/test_helpers.cc View 2 chunks +19 lines, -0 lines 0 comments Download
A net/data/parse_certificate_unittest/cert_algorithm_not_sequence.pem View 1 2 3 4 5 6 7 1 chunk +15 lines, -0 lines 0 comments Download
A net/data/parse_certificate_unittest/cert_data_after_signature.pem View 1 2 3 4 5 6 7 1 chunk +17 lines, -0 lines 0 comments Download
A net/data/parse_certificate_unittest/cert_empty_sequence.pem View 1 2 3 4 5 6 7 1 chunk +11 lines, -0 lines 0 comments Download
A net/data/parse_certificate_unittest/cert_missing_signature.pem View 1 2 3 4 5 6 7 1 chunk +15 lines, -0 lines 0 comments Download
A net/data/parse_certificate_unittest/cert_not_sequence.pem View 1 2 3 4 5 6 7 1 chunk +11 lines, -0 lines 0 comments Download
A net/data/parse_certificate_unittest/cert_signature_not_bit_string.pem View 1 2 3 4 5 6 7 1 chunk +16 lines, -0 lines 0 comments Download
A net/data/parse_certificate_unittest/cert_skeleton.pem View 1 1 chunk +45 lines, -0 lines 0 comments Download
A net/data/parse_certificate_unittest/cert_version3.pem View 1 1 chunk +262 lines, -0 lines 0 comments Download
M net/net.gyp View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M net/net.gypi View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 17 (2 generated)
eroman
(I split out the Certificate parsing from the TBSCertificate + Certificate parsing CL I had ...
5 years, 4 months ago (2015-08-13 00:29:03 UTC) #2
davidben
lgtm. Sorry I apparently forgot to publish the review here. https://codereview.chromium.org/1288193003/diff/100001/net/cert/internal/parse_certificate.cc File net/cert/internal/parse_certificate.cc (right): https://codereview.chromium.org/1288193003/diff/100001/net/cert/internal/parse_certificate.cc#newcode16 ...
5 years, 4 months ago (2015-08-14 17:14:50 UTC) #3
eroman
https://codereview.chromium.org/1288193003/diff/100001/net/cert/internal/parse_certificate.cc File net/cert/internal/parse_certificate.cc (right): https://codereview.chromium.org/1288193003/diff/100001/net/cert/internal/parse_certificate.cc#newcode16 net/cert/internal/parse_certificate.cc:16: WARN_UNUSED_RESULT bool IsSequenceTLV(const der::Input& input) { On 2015/08/14 17:14:50, ...
5 years, 4 months ago (2015-08-14 17:41:01 UTC) #4
davidben
https://codereview.chromium.org/1288193003/diff/100001/net/cert/internal/parse_certificate.h File net/cert/internal/parse_certificate.h (right): https://codereview.chromium.org/1288193003/diff/100001/net/cert/internal/parse_certificate.h#newcode16 net/cert/internal/parse_certificate.h:16: struct ParsedCertificate; On 2015/08/14 17:41:00, eroman wrote: > On ...
5 years, 4 months ago (2015-08-14 17:45:39 UTC) #5
davidben
https://codereview.chromium.org/1288193003/diff/140001/net/cert/internal/parse_certificate.h File net/cert/internal/parse_certificate.h (right): https://codereview.chromium.org/1288193003/diff/140001/net/cert/internal/parse_certificate.h#newcode19 net/cert/internal/parse_certificate.h:19: // success and sets the results in |out|. Oh! ...
5 years, 4 months ago (2015-08-14 17:50:42 UTC) #6
eroman
https://codereview.chromium.org/1288193003/diff/100001/net/cert/internal/parse_certificate.h File net/cert/internal/parse_certificate.h (right): https://codereview.chromium.org/1288193003/diff/100001/net/cert/internal/parse_certificate.h#newcode29 net/cert/internal/parse_certificate.h:29: ParsedCertificate* out) WARN_UNUSED_RESULT; On 2015/08/14 17:45:39, David Benjamin wrote: ...
5 years, 4 months ago (2015-08-14 17:57:48 UTC) #7
eroman
Good point. Added this comment (which if you like I will mimic for the other ...
5 years, 4 months ago (2015-08-14 18:03:07 UTC) #8
davidben
On 2015/08/14 17:57:48, eroman wrote: > https://codereview.chromium.org/1288193003/diff/100001/net/cert/internal/parse_certificate.h > File net/cert/internal/parse_certificate.h (right): > > https://codereview.chromium.org/1288193003/diff/100001/net/cert/internal/parse_certificate.h#newcode29 > ...
5 years, 4 months ago (2015-08-14 18:06:28 UTC) #9
davidben
On 2015/08/14 18:03:07, eroman wrote: > Good point. Added this comment (which if you like ...
5 years, 4 months ago (2015-08-14 18:07:48 UTC) #10
davidben
On 2015/08/14 18:07:48, David Benjamin wrote: > On 2015/08/14 18:03:07, eroman wrote: > > Good ...
5 years, 4 months ago (2015-08-14 18:07:57 UTC) #11
eroman
OK new comment block reads: // Note that on success |out| aliases data from the ...
5 years, 4 months ago (2015-08-14 18:23:03 UTC) #12
davidben
Still lgtm, to be explicit. On 2015/08/14 18:23:03, eroman wrote: > OK new comment block ...
5 years, 4 months ago (2015-08-14 18:26:35 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1288193003/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1288193003/200001
5 years, 4 months ago (2015-08-14 18:38:47 UTC) #15
commit-bot: I haz the power
Committed patchset #11 (id:200001)
5 years, 4 months ago (2015-08-14 20:47:43 UTC) #16
commit-bot: I haz the power
5 years, 4 months ago (2015-08-14 20:48:18 UTC) #17
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/58423c13595e87949813b6f86a2f0f8ffd116740
Cr-Commit-Position: refs/heads/master@{#343486}

Powered by Google App Engine
This is Rietveld 408576698