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

Issue 881213004: Support building BoringSSL with NSS certificates. (Closed)

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

Description

Initial support for using BoringSSL with NSS certificates. This switches the USE_OPENSSL Linux and CrOS builds to continue setting USE_NSS_CERTS. This lets it use BoringSSL for the crypto and SSL stack and NSS for certificate verification. See design doc for details on the flags: https://docs.google.com/document/d/1x4DOCKwFkAxl9MGfd6snIzFigO4ku6Shuci0r5BzasQ/edit On Linux, only client auth and OCSP stapling are missing. On ChromeOS, there are some problematic USE_NSS_CERTS APIs in RSAPrivateKey to resolve. We also still need to resolve crbug.com/347404 to maintain parity. As a follow-up, USE_OPENSSL_CERTS on non-Android can now be removed (it was never supported anyway). BUG=462040 Committed: https://crrev.com/2bcbc6bceb6017c762ef01553a55a12fe390de16 Cr-Commit-Position: refs/heads/master@{#326222}

Patch Set 1 #

Patch Set 2 : fix gn #

Patch Set 3 : fix gn more #

Patch Set 4 : Fix GN and remove RSAPrivateKey stubs #

Patch Set 5 : android #

Patch Set 6 : gn #

Patch Set 7 : #

Total comments: 1

Patch Set 8 : Hopefully more understandable #

Patch Set 9 : slightly tidier (edit: looks like this'll need a rebase later for try jobs to run.) #

Total comments: 7

Patch Set 10 : sleevi comments, various build and test fixes #

Total comments: 2

Patch Set 11 : rebase so we can run try jobs #

Patch Set 12 : fix sha256_legacy_support_nss_win.cc #

Patch Set 13 : other typo #

Patch Set 14 : more ios #

Total comments: 6

Patch Set 15 : rebase, fix up some other fails, haavardm comments #

Patch Set 16 : missed a spot #

Patch Set 17 : rebase #

Patch Set 18 : rebase #

Patch Set 19 : rebase on top of USE_NSS rename #

Patch Set 20 : rebase #

Patch Set 21 : staple bugs to TODOs #

Total comments: 2

Patch Set 22 : finish getting rid of nss_decryptor_null.h #

Patch Set 23 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+620 lines, -643 lines) Patch
M build/build_config.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +2 lines, -5 lines 0 comments Download
M build/common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +5 lines, -10 lines 0 comments Download
M build/config/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +5 lines, -4 lines 0 comments Download
M build/config/crypto.gni View 1 2 3 4 5 6 7 8 9 1 chunk +9 lines, -6 lines 0 comments Download
M build/linux/system.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +19 lines, -11 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +10 lines, -22 lines 0 comments Download
M chrome/chrome_utility.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +7 lines, -12 lines 0 comments Download
M chrome/common/net/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +11 lines, -17 lines 0 comments Download
M chrome/utility/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +9 lines, -15 lines 0 comments Download
M chrome/utility/importer/nss_decryptor.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +2 lines, -7 lines 0 comments Download
D chrome/utility/importer/nss_decryptor_null.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +0 lines, -44 lines 0 comments Download
M components/webcrypto/test/test_helpers.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +1 line, -1 line 0 comments Download
M crypto/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 5 chunks +33 lines, -19 lines 0 comments Download
M crypto/crypto.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 5 chunks +16 lines, -8 lines 0 comments Download
M crypto/rsa_private_key.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +17 lines, -12 lines 0 comments Download
M crypto/rsa_private_key_nss.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +16 lines, -16 lines 0 comments Download
M crypto/rsa_private_key_nss_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +6 lines, -0 lines 0 comments Download
M crypto/rsa_private_key_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +0 lines, -4 lines 0 comments Download
M net/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 13 chunks +37 lines, -70 lines 0 comments Download
M net/cert/ev_root_ca_metadata_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +2 lines, -0 lines 0 comments Download
M net/cert/x509_util_nss.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +0 lines, -317 lines 0 comments Download
A net/cert/x509_util_nss_certs.cc View 1 chunk +346 lines, -0 lines 0 comments Download
M net/net.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 4 chunks +5 lines, -7 lines 0 comments Download
M net/net.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +2 lines, -0 lines 0 comments Download
M net/net_common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 8 chunks +30 lines, -34 lines 0 comments Download
M net/socket/ssl_client_socket_openssl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +2 lines, -0 lines 0 comments Download
M net/ssl/channel_id_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +2 lines, -2 lines 0 comments Download
A net/ssl/openssl_platform_key_nss.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +17 lines, -0 lines 0 comments Download
M net/test/cert_test_util_nss.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (9 generated)
davidben
Sending out for review, mostly so you can see what it looks like, assuming I've ...
5 years, 10 months ago (2015-01-29 23:59:11 UTC) #2
davidben
Friendly ping. (No rush; just wanted to make sure this was still on the radar. ...
5 years, 10 months ago (2015-02-12 19:51:30 UTC) #3
Ryan Sleevi
OK, I've read through this CL several times, and I think I've identified the cause ...
5 years, 10 months ago (2015-02-23 20:37:40 UTC) #4
davidben
On 2015/02/23 20:37:40, Ryan Sleevi wrote: > OK, I've read through this CL several times, ...
5 years, 10 months ago (2015-02-23 21:31:37 UTC) #5
davidben
On 2015/02/23 21:31:37, David Benjamin wrote: > OS_IOS => NSS provides the net::X509Certificate representation and ...
5 years, 10 months ago (2015-02-23 21:34:18 UTC) #6
davidben
On 2015/02/23 21:31:37, David Benjamin wrote: > I'll do a pass so all this is ...
5 years, 10 months ago (2015-02-24 01:37:47 UTC) #7
davidben
Dropped more documentation into the CL and tweaked a few things so they hopefully make ...
5 years, 10 months ago (2015-02-25 21:09:39 UTC) #8
Ryan Sleevi
Thanks for the documentation - it's helped a lot. I've taken the first stab, but ...
5 years, 10 months ago (2015-02-26 00:35:35 UTC) #9
Ryan Sleevi
Thanks for the documentation - it's helped a lot. I've taken the first stab, but ...
5 years, 10 months ago (2015-02-26 00:35:36 UTC) #10
davidben
Addressed comments. Also fixed the GN build. All net_unittests are now passing except for OCSP ...
5 years, 10 months ago (2015-02-26 22:59:25 UTC) #11
haavardm
A quick drive-by review from me. Our TV browser department is looking forward to stop ...
5 years, 9 months ago (2015-03-11 14:42:51 UTC) #13
davidben
https://codereview.chromium.org/881213004/diff/260001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/881213004/diff/260001/build/common.gypi#newcode659 build/common.gypi:659: # reasons, this flag is named use_nss rather than ...
5 years, 9 months ago (2015-03-11 23:32:42 UTC) #14
Ryan Sleevi
LGTM. Sorry for the many delays. One request I have is that there's a lot ...
5 years, 8 months ago (2015-04-20 11:06:17 UTC) #15
davidben
On 2015/04/20 11:06:17, Ryan Sleevi wrote: > LGTM. Sorry for the many delays. > > ...
5 years, 8 months ago (2015-04-21 02:34:26 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/881213004/400001
5 years, 8 months ago (2015-04-21 16:05:07 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/57746)
5 years, 8 months ago (2015-04-21 16:15:28 UTC) #21
davidben
+thakis for build/OWNERS +isherman for chrome/utility/importer/ +sky for chrome/utility/BUILD.gn
5 years, 8 months ago (2015-04-21 17:53:32 UTC) #23
tfarina
https://codereview.chromium.org/881213004/diff/400001/chrome/utility/BUILD.gn File chrome/utility/BUILD.gn (right): https://codereview.chromium.org/881213004/diff/400001/chrome/utility/BUILD.gn#newcode86 chrome/utility/BUILD.gn:86: if (use_nss_certs) { non-owner lgtm for this GN change. ...
5 years, 8 months ago (2015-04-21 21:49:19 UTC) #24
Ilya Sherman
importer lgtm
5 years, 8 months ago (2015-04-21 22:03:09 UTC) #25
davidben
https://codereview.chromium.org/881213004/diff/400001/chrome/utility/BUILD.gn File chrome/utility/BUILD.gn (right): https://codereview.chromium.org/881213004/diff/400001/chrome/utility/BUILD.gn#newcode86 chrome/utility/BUILD.gn:86: if (use_nss_certs) { On 2015/04/21 21:49:19, tfarina wrote: > ...
5 years, 8 months ago (2015-04-21 22:16:06 UTC) #26
davidben
Swapping in dpranke for thakis for build/OWNERS since thakis is OOO sick.
5 years, 8 months ago (2015-04-21 22:17:25 UTC) #28
Dirk Pranke
lgtm
5 years, 8 months ago (2015-04-21 22:34:02 UTC) #29
sky
LGTM
5 years, 8 months ago (2015-04-21 23:45:40 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/881213004/440001
5 years, 8 months ago (2015-04-22 00:53:54 UTC) #33
commit-bot: I haz the power
Committed patchset #23 (id:440001)
5 years, 8 months ago (2015-04-22 02:36:50 UTC) #34
commit-bot: I haz the power
5 years, 8 months ago (2015-04-22 02:37:52 UTC) #35
Message was sent while issue was closed.
Patchset 23 (id:??) landed as
https://crrev.com/2bcbc6bceb6017c762ef01553a55a12fe390de16
Cr-Commit-Position: refs/heads/master@{#326222}

Powered by Google App Engine
This is Rietveld 408576698