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

Issue 9940001: Fix imported server certs being distrusted in NSS 3.13. (Closed)

Created:
8 years, 8 months ago by mattm
Modified:
8 years, 6 months ago
CC:
chromium-reviews, darin-cc_chromium.org, cbentzel+watch_chromium.org, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Fix imported server certs being distrusted in NSS 3.13. Add support for intentionally distrusting certs. (Not exposed in the UI yet.) BUG=116411 TEST=CertDatabaseNSSTest Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=139719

Patch Set 1 : #

Patch Set 2 : #

Total comments: 20

Patch Set 3 : rebase #

Patch Set 4 : remove openssl stubs, replace TrustBits::TRUST_TERMINAL_RECORD with EXPLICIT_DISTRUST #

Total comments: 3

Patch Set 5 : chromeos compile fix #

Total comments: 9

Patch Set 6 : review fixes #

Total comments: 27

Patch Set 7 : review changes #

Total comments: 19

Patch Set 8 : rebase #

Patch Set 9 : review changes #

Patch Set 10 : rebase #

Total comments: 11

Patch Set 11 : rebase #

Patch Set 12 : cleanups #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+581 lines, -683 lines) Patch
M chrome/browser/certificate_manager_model.h View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/certificate_manager_model.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/cros/onc_network_parser.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/cros/onc_network_parser_unittest.cc View 1 2 3 4 1 chunk +0 lines, -2 lines 3 comments Download
M chrome/browser/resources/options2/browser_options.html View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/resources/options2/options.html View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/resources/options2/options_bundle.js View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/options2/certificate_manager2_browsertest.js View 1 2 3 4 5 6 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/options2/certificate_manager_handler2.cc View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +7 lines, -4 lines 0 comments Download
M chrome/common/net/x509_certificate_model_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -10 lines 0 comments Download
M chrome/third_party/mozilla_security_manager/nsNSSCertHelper.cpp View 1 2 3 4 5 6 7 8 3 chunks +19 lines, -5 lines 0 comments Download
M net/base/cert_database.h View 1 2 3 4 5 6 7 8 3 chunks +15 lines, -5 lines 0 comments Download
M net/base/cert_database_nss.cc View 1 2 3 4 5 6 7 8 2 chunks +37 lines, -14 lines 0 comments Download
M net/base/cert_database_nss_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 11 chunks +402 lines, -35 lines 0 comments Download
M net/base/cert_database_openssl.cc View 1 2 3 1 chunk +0 lines, -62 lines 0 comments Download
M net/net.gyp View 1 2 3 4 5 6 7 8 9 10 3 chunks +0 lines, -6 lines 0 comments Download
D net/third_party/mozilla_security_manager/nsNSSCertTrust.h View 1 2 3 1 chunk +0 lines, -128 lines 0 comments Download
D net/third_party/mozilla_security_manager/nsNSSCertTrust.cpp View 1 2 3 1 chunk +0 lines, -378 lines 0 comments Download
M net/third_party/mozilla_security_manager/nsNSSCertificateDB.h View 1 chunk +1 line, -0 lines 0 comments Download
M net/third_party/mozilla_security_manager/nsNSSCertificateDB.cpp View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +64 lines, -19 lines 0 comments Download

Messages

Total messages: 33 (0 generated)
mattm
I'm not familiar with the OpenSSL trust mechanisms, so let me know if the TrustBits ...
8 years, 8 months ago (2012-03-29 23:25:53 UTC) #1
Ryan Sleevi
This really doesn't have any comparison for OpenSSL. The addition is very much an NSS-only ...
8 years, 8 months ago (2012-03-29 23:35:13 UTC) #2
wtc
Review comments on patch set 2: Thanks for writing the changelist. There are some hard ...
8 years, 8 months ago (2012-03-30 22:00:50 UTC) #3
mattm
http://codereview.chromium.org/9940001/diff/4003/net/base/cert_database.h File net/base/cert_database.h (right): http://codereview.chromium.org/9940001/diff/4003/net/base/cert_database.h#newcode169 net/base/cert_database.h:169: TrustBits trust_bits, On 2012/03/30 22:00:50, wtc wrote: > > ...
8 years, 8 months ago (2012-03-30 22:16:56 UTC) #4
wtc
mattm: I think the way nsNSSCertTrust sets the NSS trust flags could be improved. It ...
8 years, 8 months ago (2012-03-30 22:39:07 UTC) #5
Ryan Sleevi
I'll let wtc do the review, I was just responding to the OpenSSL-related changes. I'm ...
8 years, 8 months ago (2012-03-30 22:42:36 UTC) #6
mattm
Updated. I followed Ryan's suggestion of just making this NSS only, and changed the TrustBits ...
8 years, 7 months ago (2012-05-16 03:30:45 UTC) #7
mattm
Oh, and I followed Wan-Teh's suggestion that using nsNSSCertTrust isn't really buying us much, switched ...
8 years, 7 months ago (2012-05-16 03:35:30 UTC) #8
Ryan Sleevi
LGTM with a few comments and one or two maybe-bugs. http://codereview.chromium.org/9940001/diff/24003/chrome/third_party/mozilla_security_manager/nsNSSCertHelper.cpp File chrome/third_party/mozilla_security_manager/nsNSSCertHelper.cpp (right): http://codereview.chromium.org/9940001/diff/24003/chrome/third_party/mozilla_security_manager/nsNSSCertHelper.cpp#newcode1049 ...
8 years, 7 months ago (2012-05-16 03:57:23 UTC) #9
mattm
http://codereview.chromium.org/9940001/diff/24003/chrome/third_party/mozilla_security_manager/nsNSSCertHelper.cpp File chrome/third_party/mozilla_security_manager/nsNSSCertHelper.cpp (right): http://codereview.chromium.org/9940001/diff/24003/chrome/third_party/mozilla_security_manager/nsNSSCertHelper.cpp#newcode1049 chrome/third_party/mozilla_security_manager/nsNSSCertHelper.cpp:1049: if (cert->nickname && cert->trust->sslFlags & CERTDB_USER) On 2012/05/16 03:57:23, ...
8 years, 7 months ago (2012-05-16 22:30:50 UTC) #10
Ryan Sleevi
one nit, but changes lgtm http://codereview.chromium.org/9940001/diff/23006/chrome/third_party/mozilla_security_manager/nsNSSCertHelper.cpp File chrome/third_party/mozilla_security_manager/nsNSSCertHelper.cpp (right): http://codereview.chromium.org/9940001/diff/23006/chrome/third_party/mozilla_security_manager/nsNSSCertHelper.cpp#newcode1055 chrome/third_party/mozilla_security_manager/nsNSSCertHelper.cpp:1055: if (cert->nickname && all_flags ...
8 years, 7 months ago (2012-05-16 22:52:13 UTC) #11
wtc
Patch set 6 LGTM. High-level comments: 1. I think we should have separate explicit distrust ...
8 years, 7 months ago (2012-05-16 23:37:12 UTC) #12
mattm
+gspencer for question re: chrome/browser/chromeos/cros/onc_network_parser.cc http://codereview.chromium.org/9940001/diff/23006/chrome/browser/chromeos/cros/onc_network_parser.cc File chrome/browser/chromeos/cros/onc_network_parser.cc (right): http://codereview.chromium.org/9940001/diff/23006/chrome/browser/chromeos/cros/onc_network_parser.cc#newcode932 chrome/browser/chromeos/cros/onc_network_parser.cc:932: net::CertDatabase::TrustBits trust = web_trust ...
8 years, 7 months ago (2012-05-18 03:40:54 UTC) #13
Greg Spencer (Chromium)
On 2012/05/18 03:40:54, mattm wrote: > On 2012/05/16 23:37:12, wtc wrote: > > Please find ...
8 years, 7 months ago (2012-05-18 04:44:35 UTC) #14
mattm
On 2012/05/18 04:44:35, Greg Spencer (Chromium) wrote: > On 2012/05/18 03:40:54, mattm wrote: > > ...
8 years, 7 months ago (2012-05-21 20:48:04 UTC) #15
wtc
Patch set 7 LGTM. Most of the changes I suggest below are comment changes, but ...
8 years, 7 months ago (2012-05-22 00:28:38 UTC) #16
mattm
Updated (patch set 9). Please see especially the changes in cert_database_nss_unittest.cc and nsNSSCertificateDB.cpp. http://codereview.chromium.org/9940001/diff/27005/chrome/browser/chromeos/cros/onc_network_parser.cc File ...
8 years, 7 months ago (2012-05-26 03:41:35 UTC) #17
wtc
Patch set 10 LGTM. It may make sense to check this in after minimal cleanup, ...
8 years, 6 months ago (2012-05-30 00:19:24 UTC) #18
wtc
On 2012/05/30 00:19:24, wtc wrote: > > It may make sense to check this in ...
8 years, 6 months ago (2012-05-30 00:20:26 UTC) #19
wtc
http://codereview.chromium.org/9940001/diff/45002/net/base/cert_database_nss_unittest.cc File net/base/cert_database_nss_unittest.cc (right): http://codereview.chromium.org/9940001/diff/45002/net/base/cert_database_nss_unittest.cc#newcode122 net/base/cert_database_nss_unittest.cc:122: // can break following tests. I happened to see ...
8 years, 6 months ago (2012-05-30 00:39:53 UTC) #20
mattm
http://codereview.chromium.org/9940001/diff/27005/net/third_party/mozilla_security_manager/nsNSSCertificateDB.cpp File net/third_party/mozilla_security_manager/nsNSSCertificateDB.cpp (right): http://codereview.chromium.org/9940001/diff/27005/net/third_party/mozilla_security_manager/nsNSSCertificateDB.cpp#newcode235 net/third_party/mozilla_security_manager/nsNSSCertificateDB.cpp:235: trust.sslFlags |= CERTDB_TRUSTED_CA | CERTDB_TRUSTED_CLIENT_CA; On 2012/05/30 00:19:24, wtc ...
8 years, 6 months ago (2012-05-30 22:40:58 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mattm@chromium.org/9940001/52003
8 years, 6 months ago (2012-05-30 22:41:25 UTC) #22
commit-bot: I haz the power
Presubmit check for 9940001-52003 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 6 months ago (2012-05-30 22:42:01 UTC) #23
mattm
+stevenjb for chrome/browser/chromeos/cros +jhawkins for */options2/
8 years, 6 months ago (2012-05-30 22:48:13 UTC) #24
James Hawkins
LGTM
8 years, 6 months ago (2012-05-30 22:53:20 UTC) #25
stevenjb
OWNER lgtm for chromeos/cros, but would like a lgtm from gspencer@ or mnissler@ also.
8 years, 6 months ago (2012-05-30 23:02:27 UTC) #26
Greg Spencer (Chromium)
Reviewed onc_network_parser*. http://codereview.chromium.org/9940001/diff/52003/chrome/browser/chromeos/cros/onc_network_parser_unittest.cc File chrome/browser/chromeos/cros/onc_network_parser_unittest.cc (left): http://codereview.chromium.org/9940001/diff/52003/chrome/browser/chromeos/cros/onc_network_parser_unittest.cc#oldcode36 chrome/browser/chromeos/cros/onc_network_parser_unittest.cc:36: #include "net/third_party/mozilla_security_manager/nsNSSCertTrust.h" Why are this include and ...
8 years, 6 months ago (2012-05-30 23:18:24 UTC) #27
mattm
http://codereview.chromium.org/9940001/diff/52003/chrome/browser/chromeos/cros/onc_network_parser_unittest.cc File chrome/browser/chromeos/cros/onc_network_parser_unittest.cc (left): http://codereview.chromium.org/9940001/diff/52003/chrome/browser/chromeos/cros/onc_network_parser_unittest.cc#oldcode36 chrome/browser/chromeos/cros/onc_network_parser_unittest.cc:36: #include "net/third_party/mozilla_security_manager/nsNSSCertTrust.h" On 2012/05/30 23:18:29, Greg Spencer (Chromium) wrote: ...
8 years, 6 months ago (2012-05-30 23:21:50 UTC) #28
Greg Spencer (Chromium)
LGTM for onc_network_parser* http://codereview.chromium.org/9940001/diff/52003/chrome/browser/chromeos/cros/onc_network_parser_unittest.cc File chrome/browser/chromeos/cros/onc_network_parser_unittest.cc (left): http://codereview.chromium.org/9940001/diff/52003/chrome/browser/chromeos/cros/onc_network_parser_unittest.cc#oldcode36 chrome/browser/chromeos/cros/onc_network_parser_unittest.cc:36: #include "net/third_party/mozilla_security_manager/nsNSSCertTrust.h" On 2012/05/30 23:21:50, mattm ...
8 years, 6 months ago (2012-05-30 23:24:54 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mattm@chromium.org/9940001/52003
8 years, 6 months ago (2012-05-30 23:28:54 UTC) #30
commit-bot: I haz the power
Try job failure for 9940001-52003 (retry) on win_rel for step "compile" (clobber build). It's a ...
8 years, 6 months ago (2012-05-30 23:48:58 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mattm@chromium.org/9940001/52003
8 years, 6 months ago (2012-05-30 23:54:09 UTC) #32
commit-bot: I haz the power
8 years, 6 months ago (2012-05-31 02:29:43 UTC) #33
Change committed as 139719

Powered by Google App Engine
This is Rietveld 408576698