Initial support for using BoringSSL with NSS certificates.
commit2bcbc6bceb6017c762ef01553a55a12fe390de16
authordavidben <davidben@chromium.org>
Wed, 22 Apr 2015 02:36:41 +0000 (21 19:36 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 22 Apr 2015 02:36:54 +0000 (22 02:36 +0000)
treeb44d9b97e521927703b146fc348f9e45096ce603
parent0c71fc50716dcf2fef839bde83ef09287c64202b
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

Review URL: https://codereview.chromium.org/881213004

Cr-Commit-Position: refs/heads/master@{#326222}
29 files changed:
build/build_config.h
build/common.gypi
build/config/BUILD.gn
build/config/crypto.gni
build/linux/system.gyp
chrome/chrome_common.gypi
chrome/chrome_utility.gypi
chrome/common/net/BUILD.gn
chrome/utility/BUILD.gn
chrome/utility/importer/nss_decryptor.h
chrome/utility/importer/nss_decryptor_null.h [deleted file]
components/webcrypto/test/test_helpers.cc
crypto/BUILD.gn
crypto/crypto.gyp
crypto/rsa_private_key.h
crypto/rsa_private_key_nss.cc
crypto/rsa_private_key_nss_unittest.cc
crypto/rsa_private_key_unittest.cc
net/BUILD.gn
net/cert/ev_root_ca_metadata_unittest.cc
net/cert/x509_util_nss.cc
net/cert/x509_util_nss_certs.cc [new file with mode: 0644]
net/net.gyp
net/net.gypi
net/net_common.gypi
net/socket/ssl_client_socket_openssl.cc
net/ssl/channel_id_service.cc
net/ssl/openssl_platform_key_nss.cc [new file with mode: 0644]
net/test/cert_test_util_nss.cc