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

Issue 8608003: Parse individual X.509 name components on Windows, rather than their stringified form (Closed)

Created:
9 years, 1 month ago by Ryan Sleevi
Modified:
9 years ago
Reviewers:
wtc
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr., palmer
Visibility:
Public.

Description

Parse individual X.509 name components on Windows, rather than parsing the stringified form On Windows, rather than converting the entire certificate name to a string and attempting to parse out the components and values, iterate through the relativeDistinguishedName and AttributeTypeAndValue pairs to extract each name component. This is to ensure that: 1) When multiple AVAs are present in an RDN, ALL AVAs are parsed. 2) When converting an AVA to a string, no extra escaping is applied. This also fixes domainComponent parsing on OS X, so that unittests with a domainComponent can pass. BUG=101009, 102839 TEST=net_unittests:X509CertificateTest has two new regression tests. Additionally, sample a variety of SSL sites and ensure no regressions, paying attention to internationalized domains. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=112650

Patch Set 1 #

Patch Set 2 : Move back into x509_certificate_win #

Patch Set 3 : Fix tests for Mac by fixing the domainComponent OID #

Total comments: 4

Patch Set 4 : Rebased #

Patch Set 5 : Review feedback #

Patch Set 6 : Anonymized certs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+309 lines, -91 lines) Patch
M net/base/x509_cert_types_mac.cc View 1 2 3 4 2 chunks +21 lines, -2 lines 0 comments Download
M net/base/x509_certificate_unittest.cc View 1 2 3 4 5 1 chunk +50 lines, -0 lines 0 comments Download
M net/base/x509_certificate_win.cc View 1 2 3 4 2 chunks +109 lines, -89 lines 0 comments Download
M net/data/ssl/certificates/README View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download
A net/data/ssl/certificates/multivalue_rdn.pem View 1 2 3 4 5 1 chunk +59 lines, -0 lines 0 comments Download
A net/data/ssl/certificates/unescaped.pem View 1 2 3 4 5 1 chunk +62 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Ryan Sleevi
wtc: PTAL. Note, I'm working on generating some new test certificates for these tests, and ...
9 years, 1 month ago (2011-11-21 05:57:17 UTC) #1
wtc
Patch Set 3 LGTM. Please update the CL's commit message to mention the Mac change ...
9 years ago (2011-12-01 23:59:41 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rsleevi@chromium.org/8608003/11008
9 years ago (2011-12-02 05:52:50 UTC) #3
commit-bot: I haz the power
9 years ago (2011-12-02 07:31:21 UTC) #4
Change committed as 112650

Powered by Google App Engine
This is Rietveld 408576698