Chromium Code Reviews
Help | Chromium Project | Sign in
(10)

Issue 2899005: Rewrite X509Certificate::SupportsSSLClientAuth to be more accurate (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
4 years, 10 months ago by David Benjamin
Modified:
3 years, 11 months ago
Reviewers:
agl, wtc
CC:
chromium-reviews, John Grabowski, cbentzel+watch_chromium.org, pam+watch_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Rewrite X509Certificate::SupportsSSLClientAuth to be more accurate We take the intersection of key usage and extended key usage and treat as an allow if missing. Also, support the "Any" purpose. Removed support for the Netscape-specific ns-cert-type extension. Internet Explorer doesn't seem to support it anyway. BUG=45353 TEST=SSL client auth displays correct certificates on Mac (e.g. on foaf.me) Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=52189

Patch Set 1 #

Total comments: 10

Patch Set 2 : Address Wan-teh's comments. #

Total comments: 1

Patch Set 3 : Rearrange a few comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -12 lines) Patch
M net/base/x509_certificate_mac.cc View 1 2 2 chunks +39 lines, -12 lines 0 comments Download
Trybot results:
Commit: CQ not working?

Messages

Total messages: 6 (0 generated)
David Benjamin
4 years, 10 months ago (2010-07-08 19:19:00 UTC) #1
David Benjamin
This probably wants unit tests of some sort. How do we normally deal with certs ...
4 years, 10 months ago (2010-07-08 19:21:58 UTC) #2
agl
LGTM
4 years, 10 months ago (2010-07-08 21:04:12 UTC) #3
wtc
LGTM. The description of the CL has a typo: the function you rewrote is X509Certificate::SupportsSSLClientAuth, ...
4 years, 10 months ago (2010-07-08 22:17:08 UTC) #4
David Benjamin
Changed the description. http://codereview.chromium.org/2899005/diff/1/2 File net/base/x509_certificate_mac.cc (right): http://codereview.chromium.org/2899005/diff/1/2#newcode698 net/base/x509_certificate_mac.cc:698: namespace { On 2010/07/08 22:17:09, wtc ...
4 years, 10 months ago (2010-07-08 22:45:31 UTC) #5
wtc
4 years, 10 months ago (2010-07-08 22:57:49 UTC) #6
LGTM.

http://codereview.chromium.org/2899005/diff/1/2
File net/base/x509_certificate_mac.cc (right):

http://codereview.chromium.org/2899005/diff/1/2#newcode702
net/base/x509_certificate_mac.cc:702: bool ExtendedKeyUsageAllows(const
CE_ExtendedKeyUsage* usage,
On 2010/07/08 22:45:31, David Benjamin wrote:
> Do you want me to add a comment to that effect?

No.  I just wanted you to doublecheck that issue.

http://codereview.chromium.org/2899005/diff/1/2#newcode715
net/base/x509_certificate_mac.cc:715: bool
X509Certificate::SupportsSSLClientAuth() const {
On 2010/07/08 22:45:31, David Benjamin wrote:
>
> But if someone has a cert with
> the non-repudiation key usage bit as well as the relevant bits and OIDs for
SSL
> client auth, we'll use it. We probably should too in that case.

That's correct.  But we need to point out that we won't use a cert whose
key usage extension has non-repudiation but not digital signature.  That's
the subject of issue 45353 and is therefore worth documenting.

http://codereview.chromium.org/2899005/diff/7001/8001#newcode720
net/base/x509_certificate_mac.cc:720: const CE_ExtendedKeyUsage* ext_key_usage =
NULL;
Nit: move this comment before line 717.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld ec887be