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

Issue 9006041: On OS X, when parsing certificates, properly handle non-ASCII/UTF-8 string types. (Closed)

Created:
9 years ago by Ryan Sleevi
Modified:
8 years, 12 months ago
Reviewers:
wtc
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

On OS X, when parsing certificates, properly handle non-ASCII/UTF-8 string types. Specifically, ensure that certificates whose subjects or issuers contain values encoded as BMPStrings, T61Strings, or UniversalStrings can be properly decoded and normalized to UTF-8. BUG=108033 TEST=net_unittests:X509TypesTest.* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=115361

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rename GetDistinguishedName to getCertDistinguishedName #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -83 lines) Patch
M net/base/x509_cert_types.h View 1 chunk +0 lines, -3 lines 0 comments Download
M net/base/x509_cert_types_mac.cc View 3 chunks +30 lines, -71 lines 0 comments Download
M net/base/x509_certificate_mac.cc View 1 2 chunks +15 lines, -9 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Ryan Sleevi
wtc: Hopefully an easy review. Consider that SecCertificateGetSubject and SecCertificateGetIssuer are both deprecated in 10.7, ...
9 years ago (2011-12-21 00:04:20 UTC) #1
Ryan Sleevi
http://codereview.chromium.org/9006041/diff/1/net/base/x509_cert_types_mac.cc File net/base/x509_cert_types_mac.cc (left): http://codereview.chromium.org/9006041/diff/1/net/base/x509_cert_types_mac.cc#oldcode57 net/base/x509_cert_types_mac.cc:57: struct KeyValuePair { This structure effectively mirrored the existing ...
9 years ago (2011-12-21 00:10:18 UTC) #2
wtc
LGTM! http://codereview.chromium.org/9006041/diff/1/net/base/x509_certificate_mac.cc File net/base/x509_certificate_mac.cc (right): http://codereview.chromium.org/9006041/diff/1/net/base/x509_certificate_mac.cc#newcode261 net/base/x509_certificate_mac.cc:261: void GetDistinguishedName(const CSSMCachedCertificate& cached_cert, Nit: GetDistinguishedName => GetCertDistinguishedName ...
9 years ago (2011-12-21 01:10:07 UTC) #3
Ryan Sleevi
http://codereview.chromium.org/9006041/diff/1/net/base/x509_certificate_mac.cc File net/base/x509_certificate_mac.cc (right): http://codereview.chromium.org/9006041/diff/1/net/base/x509_certificate_mac.cc#newcode266 net/base/x509_certificate_mac.cc:266: if (status || !distinguished_name.field()) On 2011/12/21 01:10:08, wtc wrote: ...
9 years ago (2011-12-21 02:14:56 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rsleevi@chromium.org/9006041/8002
9 years ago (2011-12-21 02:25:03 UTC) #5
commit-bot: I haz the power
Try job failure for 9006041-8002 (retry) on mac_rel for step "ui_tests". It's a second try, ...
9 years ago (2011-12-21 10:37:49 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rsleevi@chromium.org/9006041/8002
9 years ago (2011-12-21 15:27:32 UTC) #7
commit-bot: I haz the power
8 years, 12 months ago (2011-12-21 17:57:26 UTC) #8
Change committed as 115361

Powered by Google App Engine
This is Rietveld 408576698