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

Issue 3052035: Mac: Look for issuer in a certificate chain instead of subject (Closed)

Created:
10 years, 4 months ago by davidben
Modified:
9 years, 6 months ago
Reviewers:
wtc
CC:
chromium-reviews, John Grabowski, cbentzel+watch_chromium.org, pam+watch_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Mac: Look for issuer in a certificate chain instead of subject If the CA does not send us intermediate certificates, we may not be able to build a chain up to the relevant issuer. Instead, search the chain for certificates with just the correct issuer. R=wtc BUG=50980 TEST=X509CertificateTest.IsIssuedBy Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=54780

Patch Set 1 #

Patch Set 2 : Add unit test #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -1 line) Patch
M net/base/x509_certificate_mac.cc View 1 1 chunk +1 line, -1 line 1 comment Download
M net/base/x509_certificate_unittest.cc View 1 chunk +47 lines, -0 lines 2 comments Download

Messages

Total messages: 5 (0 generated)
davidben
10 years, 4 months ago (2010-08-02 18:40:19 UTC) #1
wtc
LGTM. Nice catch! This bug is probably worth a bug report.
10 years, 4 months ago (2010-08-02 18:59:40 UTC) #2
davidben
And here's a unit test. I'll send to the try bots when there's a green ...
10 years, 4 months ago (2010-08-03 01:05:54 UTC) #3
wtc
LGTM. http://codereview.chromium.org/3052035/diff/4001/5002 File net/base/x509_certificate_unittest.cc (right): http://codereview.chromium.org/3052035/diff/4001/5002#newcode636 net/base/x509_certificate_unittest.cc:636: #if defined(OS_MACOSX) Is this unit test ifdef'd with ...
10 years, 4 months ago (2010-08-03 01:26:58 UTC) #4
wtc
10 years, 4 months ago (2010-08-03 03:25:54 UTC) #5
http://codereview.chromium.org/3052035/diff/4001/5001
File net/base/x509_certificate_mac.cc (right):

http://codereview.chromium.org/3052035/diff/4001/5001#newcode864
net/base/x509_certificate_mac.cc:864: if
(cert->issuer().Matches(valid_issuers[j]))
No wonder this bug looks familiar to me.

I noted this bug when I reviewed this code before.
See my last comment in
http://codereview.chromium.org/1128008

Powered by Google App Engine
This is Rietveld 408576698