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

Issue 8374019: Record when certificates signed with md[2,4,5] are encountered on OS X. (Closed)

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

Description

Record when certificates signed with md[2,4,5] are encountered on OS X. R=wtc@chromium.org BUG=101123 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=108308

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rebase #

Patch Set 3 : wtc and palmer feedback and ignore roots #

Patch Set 4 : Fix OS X tests - no support for MD4 #

Patch Set 5 : More exhaustive sig alg comparisons #

Total comments: 8

Patch Set 6 : wtc feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -27 lines) Patch
M net/base/x509_certificate_mac.cc View 1 2 5 2 chunks +72 lines, -16 lines 0 comments Download
M net/base/x509_certificate_unittest.cc View 1 2 3 4 5 8 chunks +18 lines, -8 lines 0 comments Download
M net/base/x509_certificate_win.cc View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Ryan Sleevi
wtc: PTAL. Note also http://crbug.com/101231 - not sure if that's critical to fix before this.
9 years, 2 months ago (2011-10-22 02:23:21 UTC) #1
wtc
LGTM. Thanks! It's hard to predict if http://crbug.com/101231 will affect the performance of this code. ...
9 years, 2 months ago (2011-10-25 18:24:44 UTC) #2
palmer
http://codereview.chromium.org/8374019/diff/1/net/base/x509_certificate_mac.cc File net/base/x509_certificate_mac.cc (right): http://codereview.chromium.org/8374019/diff/1/net/base/x509_certificate_mac.cc#newcode315 net/base/x509_certificate_mac.cc:315: if (!CSSMOIDEqual(&fields.fields[field].FieldOid, "fields fields field field oid" is baffling. ...
9 years, 2 months ago (2011-10-25 19:53:50 UTC) #3
Ryan Sleevi
And this is why tests help :-) Updated to reflect your comments. Also updated the ...
9 years, 1 month ago (2011-11-01 06:45:39 UTC) #4
wtc
Patch Set 5 LGTM. http://codereview.chromium.org/8374019/diff/8004/net/base/x509_certificate_mac.cc File net/base/x509_certificate_mac.cc (right): http://codereview.chromium.org/8374019/diff/8004/net/base/x509_certificate_mac.cc#newcode330 net/base/x509_certificate_mac.cc:330: // Match the behaviour of ...
9 years, 1 month ago (2011-11-02 00:28:42 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rsleevi@chromium.org/8374019/13002
9 years, 1 month ago (2011-11-02 02:34:56 UTC) #6
Ryan Sleevi
Source references below, for the curious. http://codereview.chromium.org/8374019/diff/8004/net/base/x509_certificate_mac.cc File net/base/x509_certificate_mac.cc (right): http://codereview.chromium.org/8374019/diff/8004/net/base/x509_certificate_mac.cc#newcode330 net/base/x509_certificate_mac.cc:330: // Match the ...
9 years, 1 month ago (2011-11-02 02:35:15 UTC) #7
commit-bot: I haz the power
Try job failure for 8374019-13002 (retry) on win_rel for step "browser_tests". It's a second try, ...
9 years, 1 month ago (2011-11-02 03:58:00 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rsleevi@chromium.org/8374019/13002
9 years, 1 month ago (2011-11-02 14:53:01 UTC) #9
commit-bot: I haz the power
Change committed as 108308
9 years, 1 month ago (2011-11-02 17:09:27 UTC) #10
wtc
9 years, 1 month ago (2011-11-02 19:26:56 UTC) #11
Patch Set 6 LGTM.

http://codereview.chromium.org/8374019/diff/8004/net/base/x509_certificate_ma...
File net/base/x509_certificate_mac.cc (right):

http://codereview.chromium.org/8374019/diff/8004/net/base/x509_certificate_ma...
net/base/x509_certificate_mac.cc:330: // Match the behaviour of OS X system
tools and defensively check that

On 2011/11/02 02:35:16, Ryan Sleevi wrote:
> On 2011/11/02 00:28:43, wtc wrote:
> > 
> > Do OS X system tools really do these defensive checks?
> 
>
http://www.opensource.apple.com/source/libsecurity_apple_x509_tp/libsecurity_...

Thank you for the reference.  You're still more defensive
(in the sense of defensive programming) than OS X system
tools because they don't do null pointer checking when the
length check passes :-)

http://codereview.chromium.org/8374019/diff/8004/net/base/x509_certificate_ma...
net/base/x509_certificate_mac.cc:348: CSSMOIDEqual(alg_oid,
&CSSMOID_MD5WithRSA)) {

On 2011/11/02 02:35:16, Ryan Sleevi wrote:
>
> The concern was if Apple's TP maps them under the hood.
> 
> The most recent revision of libsecurity_cssm shows them not doing it in
> cssmOidToAlg(), so it's probably fine -
>
http://www.opensource.apple.com/source/libsecurity_cssm/libsecurity_cssm-5500...

Thank you for checking.

If Apple's TP allows such incorrectly-encoded RSA signatures,
we should override that and set CERT_STATUS_INVALID
on those certificates.  I'm glad we don't need to do
this.

Powered by Google App Engine
This is Rietveld 408576698