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

Side by Side Diff: net/BUILD.gn

Issue 2898573002: Refactor client cert private key handling. (Closed)
Patch Set: rebase on https://codereview.chromium.org/2899083006/ Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « crypto/nss_crypto_module_delegate.h ('k') | net/cert/cert_database_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/buildflag_header.gni") 5 import("//build/buildflag_header.gni")
6 import("//build/config/chromecast_build.gni") 6 import("//build/config/chromecast_build.gni")
7 import("//build/config/compiler/compiler.gni") 7 import("//build/config/compiler/compiler.gni")
8 import("//build/config/crypto.gni") 8 import("//build/config/crypto.gni")
9 import("//build/config/features.gni") 9 import("//build/config/features.gni")
10 import("//build/config/ui.gni") 10 import("//build/config/ui.gni")
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 "socket/socket_performance_watcher_factory.h", 315 "socket/socket_performance_watcher_factory.h",
316 "socket/ssl_client_socket.cc", 316 "socket/ssl_client_socket.cc",
317 "socket/ssl_client_socket.h", 317 "socket/ssl_client_socket.h",
318 "socket/ssl_client_socket_impl.cc", 318 "socket/ssl_client_socket_impl.cc",
319 "socket/ssl_client_socket_impl.h", 319 "socket/ssl_client_socket_impl.h",
320 "socket/ssl_socket.h", 320 "socket/ssl_socket.h",
321 "ssl/channel_id_service.cc", 321 "ssl/channel_id_service.cc",
322 "ssl/channel_id_service.h", 322 "ssl/channel_id_service.h",
323 "ssl/channel_id_store.cc", 323 "ssl/channel_id_store.cc",
324 "ssl/channel_id_store.h", 324 "ssl/channel_id_store.h",
325 "ssl/client_cert_identity.cc",
326 "ssl/client_cert_identity.h",
327 "ssl/client_cert_identity_mac.cc",
328 "ssl/client_cert_identity_mac.h",
325 "ssl/client_key_store.cc", 329 "ssl/client_key_store.cc",
326 "ssl/client_key_store.h", 330 "ssl/client_key_store.h",
327 "ssl/default_channel_id_store.cc", 331 "ssl/default_channel_id_store.cc",
328 "ssl/default_channel_id_store.h", 332 "ssl/default_channel_id_store.h",
329 "ssl/openssl_client_key_store.cc",
330 "ssl/openssl_client_key_store.h",
331 "ssl/openssl_ssl_util.cc", 333 "ssl/openssl_ssl_util.cc",
332 "ssl/openssl_ssl_util.h", 334 "ssl/openssl_ssl_util.h",
333 "ssl/ssl_cert_request_info.cc", 335 "ssl/ssl_cert_request_info.cc",
334 "ssl/ssl_cert_request_info.h", 336 "ssl/ssl_cert_request_info.h",
335 "ssl/ssl_cipher_suite_names.cc", 337 "ssl/ssl_cipher_suite_names.cc",
336 "ssl/ssl_cipher_suite_names.h", 338 "ssl/ssl_cipher_suite_names.h",
337 "ssl/ssl_client_auth_cache.cc", 339 "ssl/ssl_client_auth_cache.cc",
338 "ssl/ssl_client_auth_cache.h", 340 "ssl/ssl_client_auth_cache.h",
339 "ssl/ssl_client_cert_type.h", 341 "ssl/ssl_client_cert_type.h",
340 "ssl/ssl_client_session_cache.cc", 342 "ssl/ssl_client_session_cache.cc",
(...skipping 1283 matching lines...) Expand 10 before | Expand all | Expand 10 after
1624 "ssl/client_cert_store_mac.cc", 1626 "ssl/client_cert_store_mac.cc",
1625 "ssl/client_cert_store_mac.h", 1627 "ssl/client_cert_store_mac.h",
1626 "ssl/client_cert_store_nss.cc", 1628 "ssl/client_cert_store_nss.cc",
1627 "ssl/client_cert_store_nss.h", 1629 "ssl/client_cert_store_nss.h",
1628 "ssl/client_cert_store_win.cc", 1630 "ssl/client_cert_store_win.cc",
1629 "ssl/client_cert_store_win.h", 1631 "ssl/client_cert_store_win.h",
1630 "ssl/ssl_config_service_defaults.cc", 1632 "ssl/ssl_config_service_defaults.cc",
1631 "ssl/ssl_config_service_defaults.h", 1633 "ssl/ssl_config_service_defaults.h",
1632 "ssl/ssl_key_logger.cc", 1634 "ssl/ssl_key_logger.cc",
1633 "ssl/ssl_key_logger.h", 1635 "ssl/ssl_key_logger.h",
1634 "ssl/ssl_platform_key.h",
1635 "ssl/ssl_platform_key_android.cc", 1636 "ssl/ssl_platform_key_android.cc",
1636 "ssl/ssl_platform_key_android.h", 1637 "ssl/ssl_platform_key_android.h",
1637 "ssl/ssl_platform_key_mac.cc", 1638 "ssl/ssl_platform_key_mac.cc",
1638 "ssl/ssl_platform_key_mac.h", 1639 "ssl/ssl_platform_key_mac.h",
1639 "ssl/ssl_platform_key_nss.cc", 1640 "ssl/ssl_platform_key_nss.cc",
1641 "ssl/ssl_platform_key_nss.h",
1640 "ssl/ssl_platform_key_util.cc", 1642 "ssl/ssl_platform_key_util.cc",
1641 "ssl/ssl_platform_key_util.h", 1643 "ssl/ssl_platform_key_util.h",
1642 "ssl/ssl_platform_key_win.cc", 1644 "ssl/ssl_platform_key_win.cc",
1643 "ssl/test_ssl_private_key.cc", 1645 "ssl/test_ssl_private_key.cc",
1644 "ssl/test_ssl_private_key.h", 1646 "ssl/test_ssl_private_key.h",
1645 "ssl/threaded_ssl_private_key.cc", 1647 "ssl/threaded_ssl_private_key.cc",
1646 "ssl/threaded_ssl_private_key.h", 1648 "ssl/threaded_ssl_private_key.h",
1647 "third_party/mozilla_security_manager/nsNSSCertificateDB.cpp", 1649 "third_party/mozilla_security_manager/nsNSSCertificateDB.cpp",
1648 "third_party/mozilla_security_manager/nsNSSCertificateDB.h", 1650 "third_party/mozilla_security_manager/nsNSSCertificateDB.h",
1649 "third_party/mozilla_security_manager/nsPKCS12Blob.cpp", 1651 "third_party/mozilla_security_manager/nsPKCS12Blob.cpp",
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
1773 sources -= [ "cert/x509_certificate_win.cc" ] 1775 sources -= [ "cert/x509_certificate_win.cc" ]
1774 } 1776 }
1775 } else { 1777 } else {
1776 sources -= [ "cert/x509_certificate_bytes.cc" ] 1778 sources -= [ "cert/x509_certificate_bytes.cc" ]
1777 } 1779 }
1778 1780
1779 if (!use_openssl_certs) { 1781 if (!use_openssl_certs) {
1780 sources -= [ 1782 sources -= [
1781 "cert/cert_database_openssl.cc", 1783 "cert/cert_database_openssl.cc",
1782 "cert/x509_certificate_openssl.cc", 1784 "cert/x509_certificate_openssl.cc",
1783 "ssl/openssl_client_key_store.cc",
1784 "ssl/openssl_client_key_store.h",
1785 ] 1785 ]
1786 } else { 1786 } else {
1787 if (is_android) { 1787 if (is_android) {
1788 # Android doesn't use this file even when using OpenSSL. 1788 # Android doesn't use this file even when using OpenSSL.
1789 sources -= [ "cert/cert_database_openssl.cc" ] 1789 sources -= [ "cert/cert_database_openssl.cc" ]
1790 } 1790 }
1791 } 1791 }
1792 1792
1793 if (!use_kerberos || is_android) { 1793 if (!use_kerberos || is_android) {
1794 sources -= [ 1794 sources -= [
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
1846 "cert/cert_verify_proc_nss.cc", 1846 "cert/cert_verify_proc_nss.cc",
1847 "cert/cert_verify_proc_nss.h", 1847 "cert/cert_verify_proc_nss.h",
1848 "cert/test_root_certs_nss.cc", 1848 "cert/test_root_certs_nss.cc",
1849 "cert/x509_util_nss.cc", 1849 "cert/x509_util_nss.cc",
1850 "cert_net/nss_ocsp.cc", 1850 "cert_net/nss_ocsp.cc",
1851 "cert_net/nss_ocsp.h", 1851 "cert_net/nss_ocsp.h",
1852 ] 1852 ]
1853 } 1853 }
1854 1854
1855 if (is_chromecast && use_nss_certs) { 1855 if (is_chromecast && use_nss_certs) {
1856 sources += [ "ssl/ssl_platform_key_chromecast.cc" ] 1856 sources -= [
1857 sources -= [ "ssl/ssl_platform_key_nss.cc" ] 1857 "ssl/client_cert_store_nss.cc",
1858 "ssl/client_cert_store_nss.h",
1859 "ssl/ssl_platform_key_nss.cc",
1860 ]
1858 } 1861 }
1859 1862
1860 if (!enable_mdns) { 1863 if (!enable_mdns) {
1861 sources -= [ 1864 sources -= [
1862 "dns/mdns_cache.cc", 1865 "dns/mdns_cache.cc",
1863 "dns/mdns_cache.h", 1866 "dns/mdns_cache.h",
1864 "dns/mdns_client.cc", 1867 "dns/mdns_client.cc",
1865 "dns/mdns_client.h", 1868 "dns/mdns_client.h",
1866 "dns/mdns_client_impl.cc", 1869 "dns/mdns_client_impl.cc",
1867 "dns/mdns_client_impl.h", 1870 "dns/mdns_client_impl.h",
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after
2465 "proxy/mock_proxy_resolver.cc", 2468 "proxy/mock_proxy_resolver.cc",
2466 "proxy/mock_proxy_resolver.h", 2469 "proxy/mock_proxy_resolver.h",
2467 "proxy/mock_proxy_script_fetcher.cc", 2470 "proxy/mock_proxy_script_fetcher.cc",
2468 "proxy/mock_proxy_script_fetcher.h", 2471 "proxy/mock_proxy_script_fetcher.h",
2469 "proxy/proxy_config_service_common_unittest.cc", 2472 "proxy/proxy_config_service_common_unittest.cc",
2470 "proxy/proxy_config_service_common_unittest.h", 2473 "proxy/proxy_config_service_common_unittest.h",
2471 "socket/socket_test_util.cc", 2474 "socket/socket_test_util.cc",
2472 "socket/socket_test_util.h", 2475 "socket/socket_test_util.h",
2473 "spdy/chromium/spdy_test_util_common.cc", 2476 "spdy/chromium/spdy_test_util_common.cc",
2474 "spdy/chromium/spdy_test_util_common.h", 2477 "spdy/chromium/spdy_test_util_common.h",
2478 "ssl/client_cert_identity_test_util.cc",
2479 "ssl/client_cert_identity_test_util.h",
2480 "ssl/ssl_private_key_test_util.cc",
2481 "ssl/ssl_private_key_test_util.h",
2475 "test/cert_test_util.cc", 2482 "test/cert_test_util.cc",
2476 "test/cert_test_util.h", 2483 "test/cert_test_util.h",
2477 "test/cert_test_util_nss.cc", 2484 "test/cert_test_util_nss.cc",
2478 "test/channel_id_test_util.cc", 2485 "test/channel_id_test_util.cc",
2479 "test/channel_id_test_util.h", 2486 "test/channel_id_test_util.h",
2480 "test/ct_test_util.cc", 2487 "test/ct_test_util.cc",
2481 "test/ct_test_util.h", 2488 "test/ct_test_util.h",
2482 "test/embedded_test_server/default_handlers.cc", 2489 "test/embedded_test_server/default_handlers.cc",
2483 "test/embedded_test_server/default_handlers.h", 2490 "test/embedded_test_server/default_handlers.h",
2484 "test/embedded_test_server/embedded_test_server.cc", 2491 "test/embedded_test_server/embedded_test_server.cc",
(...skipping 2367 matching lines...) Expand 10 before | Expand all | Expand 10 after
4852 "spdy/core/spdy_no_op_visitor.h", 4859 "spdy/core/spdy_no_op_visitor.h",
4853 "spdy/core/spdy_pinnable_buffer_piece_test.cc", 4860 "spdy/core/spdy_pinnable_buffer_piece_test.cc",
4854 "spdy/core/spdy_prefixed_buffer_reader_test.cc", 4861 "spdy/core/spdy_prefixed_buffer_reader_test.cc",
4855 "spdy/core/spdy_protocol_test.cc", 4862 "spdy/core/spdy_protocol_test.cc",
4856 "spdy/core/spdy_protocol_test_utils.cc", 4863 "spdy/core/spdy_protocol_test_utils.cc",
4857 "spdy/core/spdy_protocol_test_utils.h", 4864 "spdy/core/spdy_protocol_test_utils.h",
4858 "spdy/core/spdy_test_utils.cc", 4865 "spdy/core/spdy_test_utils.cc",
4859 "spdy/core/spdy_test_utils.h", 4866 "spdy/core/spdy_test_utils.h",
4860 "spdy/platform/api/spdy_string_utils_test.cc", 4867 "spdy/platform/api/spdy_string_utils_test.cc",
4861 "ssl/channel_id_service_unittest.cc", 4868 "ssl/channel_id_service_unittest.cc",
4869 "ssl/client_cert_identity_unittest.cc",
4862 "ssl/client_cert_store_mac_unittest.cc", 4870 "ssl/client_cert_store_mac_unittest.cc",
4863 "ssl/client_cert_store_nss_unittest.cc", 4871 "ssl/client_cert_store_nss_unittest.cc",
4864 "ssl/client_cert_store_unittest-inl.h", 4872 "ssl/client_cert_store_unittest-inl.h",
4865 "ssl/client_cert_store_win_unittest.cc", 4873 "ssl/client_cert_store_win_unittest.cc",
4866 "ssl/default_channel_id_store_unittest.cc", 4874 "ssl/default_channel_id_store_unittest.cc",
4867 "ssl/openssl_client_key_store_unittest.cc",
4868 "ssl/ssl_cipher_suite_names_unittest.cc", 4875 "ssl/ssl_cipher_suite_names_unittest.cc",
4869 "ssl/ssl_client_auth_cache_unittest.cc", 4876 "ssl/ssl_client_auth_cache_unittest.cc",
4870 "ssl/ssl_client_session_cache_unittest.cc", 4877 "ssl/ssl_client_session_cache_unittest.cc",
4871 "ssl/ssl_config_service_unittest.cc", 4878 "ssl/ssl_config_service_unittest.cc",
4872 "ssl/ssl_config_unittest.cc", 4879 "ssl/ssl_config_unittest.cc",
4873 "ssl/ssl_connection_status_flags_unittest.cc", 4880 "ssl/ssl_connection_status_flags_unittest.cc",
4874 "ssl/ssl_platform_key_android_unittest.cc", 4881 "ssl/ssl_platform_key_android_unittest.cc",
4875 "ssl/ssl_platform_key_mac_unittest.cc", 4882 "ssl/ssl_platform_key_mac_unittest.cc",
4876 "ssl/ssl_platform_key_nss_unittest.cc", 4883 "ssl/ssl_platform_key_nss_unittest.cc",
4877 "ssl/ssl_platform_key_util_unittest.cc", 4884 "ssl/ssl_platform_key_util_unittest.cc",
4878 "ssl/ssl_platform_key_win_unittest.cc", 4885 "ssl/ssl_platform_key_win_unittest.cc",
4879 "ssl/ssl_private_key_test_util.cc",
4880 "ssl/ssl_private_key_test_util.h",
4881 "test/embedded_test_server/embedded_test_server_unittest.cc", 4886 "test/embedded_test_server/embedded_test_server_unittest.cc",
4882 "test/embedded_test_server/http_request_unittest.cc", 4887 "test/embedded_test_server/http_request_unittest.cc",
4883 "test/embedded_test_server/http_response_unittest.cc", 4888 "test/embedded_test_server/http_response_unittest.cc",
4884 "test/python_utils_unittest.cc", 4889 "test/python_utils_unittest.cc",
4885 "test/run_all_unittests.cc", 4890 "test/run_all_unittests.cc",
4886 "third_party/nist-pkits/pkits_testcases-inl.h", 4891 "third_party/nist-pkits/pkits_testcases-inl.h",
4887 "tools/content_decoder_tool/content_decoder_tool.cc", 4892 "tools/content_decoder_tool/content_decoder_tool.cc",
4888 "tools/content_decoder_tool/content_decoder_tool.h", 4893 "tools/content_decoder_tool/content_decoder_tool.h",
4889 "tools/content_decoder_tool/content_decoder_tool_unittest.cc", 4894 "tools/content_decoder_tool/content_decoder_tool_unittest.cc",
4890 "tools/quic/quic_simple_client_test.cc", 4895 "tools/quic/quic_simple_client_test.cc",
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
5081 } 5086 }
5082 if (!use_kerberos) { 5087 if (!use_kerberos) {
5083 sources -= [ "http/http_auth_handler_negotiate_unittest.cc" ] 5088 sources -= [ "http/http_auth_handler_negotiate_unittest.cc" ]
5084 } 5089 }
5085 5090
5086 if (!use_nss_certs) { 5091 if (!use_nss_certs) {
5087 # Only include this test when using NSS for cert verification. 5092 # Only include this test when using NSS for cert verification.
5088 sources -= [ "cert_net/nss_ocsp_unittest.cc" ] 5093 sources -= [ "cert_net/nss_ocsp_unittest.cc" ]
5089 } 5094 }
5090 5095
5091 if (!use_openssl_certs) {
5092 sources -= [ "ssl/openssl_client_key_store_unittest.cc" ]
5093 }
5094
5095 if (enable_websockets) { 5096 if (enable_websockets) {
5096 sources += [ 5097 sources += [
5097 "server/http_connection_unittest.cc", 5098 "server/http_connection_unittest.cc",
5098 "server/http_server_response_info_unittest.cc", 5099 "server/http_server_response_info_unittest.cc",
5099 "server/http_server_unittest.cc", 5100 "server/http_server_unittest.cc",
5100 "server/web_socket_encoder_unittest.cc", 5101 "server/web_socket_encoder_unittest.cc",
5101 "websockets/websocket_basic_stream_test.cc", 5102 "websockets/websocket_basic_stream_test.cc",
5102 "websockets/websocket_channel_test.cc", 5103 "websockets/websocket_channel_test.cc",
5103 "websockets/websocket_deflate_parameters_test.cc", 5104 "websockets/websocket_deflate_parameters_test.cc",
5104 "websockets/websocket_deflate_predictor_impl_test.cc", 5105 "websockets/websocket_deflate_predictor_impl_test.cc",
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
5291 } 5292 }
5292 5293
5293 if (is_win) { 5294 if (is_win) {
5294 libs = [ 5295 libs = [
5295 "iphlpapi.lib", 5296 "iphlpapi.lib",
5296 "ncrypt.lib", 5297 "ncrypt.lib",
5297 ] 5298 ]
5298 } 5299 }
5299 5300
5300 if (is_chromecast && use_nss_certs) { 5301 if (is_chromecast && use_nss_certs) {
5301 sources += [ "ssl/ssl_platform_key_chromecast_unittest.cc" ] 5302 sources -= [
5302 sources -= [ "ssl/ssl_platform_key_nss_unittest.cc" ] 5303 "ssl/client_cert_store_nss_unittest.cc",
5304 "ssl/ssl_platform_key_nss_unittest.cc",
5305 ]
5303 } 5306 }
5304 5307
5305 # Include transport_security_state_generator tests. 5308 # Include transport_security_state_generator tests.
5306 if (host_toolchain == current_toolchain) { 5309 if (host_toolchain == current_toolchain) {
5307 deps += [ "//net/tools/transport_security_state_generator:transport_security _state_generator_test_sources" ] 5310 deps += [ "//net/tools/transport_security_state_generator:transport_security _state_generator_test_sources" ]
5308 } 5311 }
5309 5312
5310 # Add back some sources that were otherwise filtered out. 5313 # Add back some sources that were otherwise filtered out.
5311 set_sources_assignment_filter([]) 5314 set_sources_assignment_filter([])
5312 sources += net_unfiltered_sources 5315 sources += net_unfiltered_sources
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after
5896 ] 5899 ]
5897 deps = [ 5900 deps = [
5898 ":net_fuzzer_test_support", 5901 ":net_fuzzer_test_support",
5899 ":test_support", 5902 ":test_support",
5900 "//base", 5903 "//base",
5901 "//net", 5904 "//net",
5902 ] 5905 ]
5903 dict = "data/fuzzer_dictionaries/net_spdy_session_fuzzer.dict" 5906 dict = "data/fuzzer_dictionaries/net_spdy_session_fuzzer.dict"
5904 seed_corpus = "data/fuzzer_data/net_spdy_session_fuzzer/" 5907 seed_corpus = "data/fuzzer_data/net_spdy_session_fuzzer/"
5905 } 5908 }
OLDNEW
« no previous file with comments | « crypto/nss_crypto_module_delegate.h ('k') | net/cert/cert_database_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698