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

Issue 886223002: Make OS X path "building" more buildy, less breaky (Closed)

Created:
5 years, 10 months ago by Ryan Sleevi
Modified:
5 years, 10 months ago
Reviewers:
davidben
CC:
chromium-reviews, cbentzel+watch_chromium.org, eroman
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make OS X path "building" more buildy, less breaky For the reasons described within the code itself, OS X can be a bit tetchy when it comes to PKI path building. Rather than blow up in users' face with an error, or warn them about weak signatures when strong signatures exist, take a performance hit and do something similar to Safari, which is to assume the OS APIs are broken/won't do the right thing, and try to fix up the inputs prior to giving to the Security.framework. In this case, it means trying to verify the cert as supplied (the existing behaviour), and if that fails / gives something undesirable, begin cutting off certs given to the OS and retrying until it gives something better or there are no more certs to amputate. This causes an (unmeasured) perf hit, but only for situations that would fail for users today, or would yell at them tomorrow, so overall, it's a worthy tradeoff. BUG=438653, 434914, 440267 TEST= https://github.com works. https://cacert.omniroot.com works. Unit tests are happy. Committed: https://crrev.com/a3fa5418ffa25d5064423f0bc78e6fce2d43f83b Cr-Commit-Position: refs/heads/master@{#314641}

Patch Set 1 #

Total comments: 21

Patch Set 2 : Comment updates #

Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -91 lines) Patch
M net/cert/cert_verify_proc_mac.cc View 1 7 chunks +126 lines, -91 lines 0 comments Download

Messages

Total messages: 13 (3 generated)
Ryan Sleevi
David: Could you do a wtc-style review on this and carefully double check my logic. ...
5 years, 10 months ago (2015-01-31 02:19:55 UTC) #2
Ryan Sleevi
https://codereview.chromium.org/886223002/diff/1/net/cert/cert_verify_proc_mac.cc File net/cert/cert_verify_proc_mac.cc (left): https://codereview.chromium.org/886223002/diff/1/net/cert/cert_verify_proc_mac.cc#oldcode461 net/cert/cert_verify_proc_mac.cc:461: // cross-certified certificate and remove it from certificate chain ...
5 years, 10 months ago (2015-01-31 02:23:03 UTC) #3
davidben
Most of the comments are of the "I don't quite understand how this chopping affects ...
5 years, 10 months ago (2015-02-02 22:13:55 UTC) #4
Ryan Sleevi
https://codereview.chromium.org/886223002/diff/1/net/cert/cert_verify_proc_mac.cc File net/cert/cert_verify_proc_mac.cc (right): https://codereview.chromium.org/886223002/diff/1/net/cert/cert_verify_proc_mac.cc#newcode185 net/cert/cert_verify_proc_mac.cc:185: bool* leaf_is_weak) { On 2015/02/02 22:13:55, David Benjamin wrote: ...
5 years, 10 months ago (2015-02-02 22:36:01 UTC) #5
davidben
lgtm with comment. I'm still not sure how this helps the DigiCert expired intermediate case ...
5 years, 10 months ago (2015-02-03 22:39:53 UTC) #6
Ryan Sleevi
David: Do these comment updates address your concerns?
5 years, 10 months ago (2015-02-04 20:44:04 UTC) #8
davidben
lgtm
5 years, 10 months ago (2015-02-04 20:48:11 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/886223002/20001
5 years, 10 months ago (2015-02-04 21:00:33 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 10 months ago (2015-02-04 21:37:46 UTC) #12
commit-bot: I haz the power
5 years, 10 months ago (2015-02-04 21:39:19 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/a3fa5418ffa25d5064423f0bc78e6fce2d43f83b
Cr-Commit-Position: refs/heads/master@{#314641}

Powered by Google App Engine
This is Rietveld 408576698