Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(170)

Issue 1662573002: Adding ASN.1 Name Parsing (Closed)

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

Description

Adding ASN.1 Name Parsing Primarily to simplify the code for parsing X.509 certificates and moving off of the system-dependent parsers. BUG= Committed: https://crrev.com/d118af36c75a1be3073cb28ff28e9830716abf9d Cr-Commit-Position: refs/heads/master@{#376240}

Patch Set 1 #

Patch Set 2 : Updates to name parsing. #

Patch Set 3 : Adding WARN_RESULT. #

Total comments: 18

Patch Set 4 : Fixing comments. #

Patch Set 5 : Marking AsString as const. #

Total comments: 20

Patch Set 6 : Fixing comments in the correct CL. #

Patch Set 7 : Fix merge on correct CL. #

Patch Set 8 : Rebase. #

Patch Set 9 : Fix equals. #

Total comments: 4

Patch Set 10 : Fixing comments. #

Patch Set 11 : Marking public. #

Patch Set 12 : Try again? #

Patch Set 13 : Another try. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+479 lines, -212 lines) Patch
A net/cert/internal/parse_name.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +91 lines, -0 lines 0 comments Download
A net/cert/internal/parse_name.cc View 1 2 3 4 5 6 7 8 9 1 chunk +214 lines, -0 lines 0 comments Download
A net/cert/internal/parse_name_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +143 lines, -0 lines 0 comments Download
M net/cert/internal/verify_name_match.cc View 1 2 3 4 5 6 7 8 9 5 chunks +27 lines, -212 lines 0 comments Download
M net/der/tag.h View 1 chunk +1 line, -0 lines 0 comments Download
M net/net.gypi View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (7 generated)
svaldez
Refactoring out the Name parsing from VerifyNameMatch so that it can be used elsewhere (x509_certificate_model).
4 years, 10 months ago (2016-02-03 16:24:34 UTC) #2
nharper
https://codereview.chromium.org/1662573002/diff/40001/net/cert/internal/parse_name.cc File net/cert/internal/parse_name.cc (right): https://codereview.chromium.org/1662573002/diff/40001/net/cert/internal/parse_name.cc#newcode18 net/cert/internal/parse_name.cc:18: bool ConvertBmpStringValue(const der::Input& in, std::string* out) { Add documentation ...
4 years, 10 months ago (2016-02-03 19:43:25 UTC) #3
eroman
+mattm as the author of the code being moved would be a better reviewer, but ...
4 years, 10 months ago (2016-02-03 20:46:05 UTC) #5
eroman
https://codereview.chromium.org/1662573002/diff/40001/net/cert/internal/parse_name.h File net/cert/internal/parse_name.h (right): https://codereview.chromium.org/1662573002/diff/40001/net/cert/internal/parse_name.h#newcode32 net/cert/internal/parse_name.h:32: struct AttributeTypeAndValue { This is a fairly generic name ...
4 years, 10 months ago (2016-02-03 20:58:56 UTC) #6
nharper
https://codereview.chromium.org/1662573002/diff/40001/net/cert/internal/parse_name.h File net/cert/internal/parse_name.h (right): https://codereview.chromium.org/1662573002/diff/40001/net/cert/internal/parse_name.h#newcode42 net/cert/internal/parse_name.h:42: NET_EXPORT bool ConvertValueToString(const der::Tag tag, I'm wondering if this ...
4 years, 10 months ago (2016-02-03 21:28:41 UTC) #7
svaldez
https://codereview.chromium.org/1662573002/diff/40001/net/cert/internal/parse_name.cc File net/cert/internal/parse_name.cc (right): https://codereview.chromium.org/1662573002/diff/40001/net/cert/internal/parse_name.cc#newcode18 net/cert/internal/parse_name.cc:18: bool ConvertBmpStringValue(const der::Input& in, std::string* out) { On 2016/02/03 ...
4 years, 10 months ago (2016-02-03 21:43:34 UTC) #8
eroman
https://codereview.chromium.org/1662573002/diff/40001/net/cert/internal/parse_name.h File net/cert/internal/parse_name.h (right): https://codereview.chromium.org/1662573002/diff/40001/net/cert/internal/parse_name.h#newcode32 net/cert/internal/parse_name.h:32: struct AttributeTypeAndValue { On 2016/02/03 21:43:33, svaldez wrote: > ...
4 years, 10 months ago (2016-02-03 22:57:34 UTC) #9
mattm
https://codereview.chromium.org/1662573002/diff/80001/net/cert/internal/parse_name.cc File net/cert/internal/parse_name.cc (right): https://codereview.chromium.org/1662573002/diff/80001/net/cert/internal/parse_name.cc#newcode202 net/cert/internal/parse_name.cc:202: return false; Should also verify that there is at ...
4 years, 10 months ago (2016-02-04 20:41:19 UTC) #10
svaldez
https://codereview.chromium.org/1662573002/diff/80001/net/cert/internal/parse_name.cc File net/cert/internal/parse_name.cc (right): https://codereview.chromium.org/1662573002/diff/80001/net/cert/internal/parse_name.cc#newcode202 net/cert/internal/parse_name.cc:202: return false; On 2016/02/04 20:41:18, mattm wrote: > Should ...
4 years, 10 months ago (2016-02-09 21:27:29 UTC) #11
mattm
I don't see a new patchset... https://codereview.chromium.org/1662573002/diff/80001/net/cert/internal/parse_name.h File net/cert/internal/parse_name.h (right): https://codereview.chromium.org/1662573002/diff/80001/net/cert/internal/parse_name.h#newcode43 net/cert/internal/parse_name.h:43: bool ValueAsString(std::string* out) ...
4 years, 10 months ago (2016-02-10 03:24:57 UTC) #12
svaldez
Fixed. Used the wrong CL originally. https://codereview.chromium.org/1662573002/diff/80001/net/cert/internal/parse_name.h File net/cert/internal/parse_name.h (right): https://codereview.chromium.org/1662573002/diff/80001/net/cert/internal/parse_name.h#newcode43 net/cert/internal/parse_name.h:43: bool ValueAsString(std::string* out) ...
4 years, 10 months ago (2016-02-10 15:29:03 UTC) #13
mattm
https://codereview.chromium.org/1662573002/diff/160001/net/cert/internal/parse_name_unittest.cc File net/cert/internal/parse_name_unittest.cc (right): https://codereview.chromium.org/1662573002/diff/160001/net/cert/internal/parse_name_unittest.cc#newcode52 net/cert/internal/parse_name_unittest.cc:52: // BmpString must encode characters in pairs of 4 ...
4 years, 10 months ago (2016-02-10 23:30:43 UTC) #14
svaldez
https://codereview.chromium.org/1662573002/diff/160001/net/cert/internal/parse_name_unittest.cc File net/cert/internal/parse_name_unittest.cc (right): https://codereview.chromium.org/1662573002/diff/160001/net/cert/internal/parse_name_unittest.cc#newcode52 net/cert/internal/parse_name_unittest.cc:52: // BmpString must encode characters in pairs of 4 ...
4 years, 10 months ago (2016-02-11 15:48:24 UTC) #15
mattm
lgtm
4 years, 10 months ago (2016-02-11 21:29:52 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1662573002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1662573002/180001
4 years, 10 months ago (2016-02-18 16:58:28 UTC) #18
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_compile_dbg_ng/builds/158539) linux_chromium_compile_dbg_32_ng on ...
4 years, 10 months ago (2016-02-18 17:19:56 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1662573002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1662573002/240001
4 years, 10 months ago (2016-02-18 18:51:44 UTC) #23
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years, 10 months ago (2016-02-18 20:01:59 UTC) #24
commit-bot: I haz the power
4 years, 10 months ago (2016-02-18 20:03:30 UTC) #26
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/d118af36c75a1be3073cb28ff28e9830716abf9d
Cr-Commit-Position: refs/heads/master@{#376240}

Powered by Google App Engine
This is Rietveld 408576698