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

Side by Side Diff: net/BUILD.gn

Issue 2898573002: Refactor client cert private key handling. (Closed)
Patch Set: . 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
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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 "socket/socket_performance_watcher_factory.h", 316 "socket/socket_performance_watcher_factory.h",
317 "socket/ssl_client_socket.cc", 317 "socket/ssl_client_socket.cc",
318 "socket/ssl_client_socket.h", 318 "socket/ssl_client_socket.h",
319 "socket/ssl_client_socket_impl.cc", 319 "socket/ssl_client_socket_impl.cc",
320 "socket/ssl_client_socket_impl.h", 320 "socket/ssl_client_socket_impl.h",
321 "socket/ssl_socket.h", 321 "socket/ssl_socket.h",
322 "ssl/channel_id_service.cc", 322 "ssl/channel_id_service.cc",
323 "ssl/channel_id_service.h", 323 "ssl/channel_id_service.h",
324 "ssl/channel_id_store.cc", 324 "ssl/channel_id_store.cc",
325 "ssl/channel_id_store.h", 325 "ssl/channel_id_store.h",
326 "ssl/client_cert_identity.cc",
327 "ssl/client_cert_identity.h",
328 "ssl/client_cert_identity_mac.cc",
329 "ssl/client_cert_identity_mac.h",
326 "ssl/client_key_store.cc", 330 "ssl/client_key_store.cc",
327 "ssl/client_key_store.h", 331 "ssl/client_key_store.h",
328 "ssl/default_channel_id_store.cc", 332 "ssl/default_channel_id_store.cc",
329 "ssl/default_channel_id_store.h", 333 "ssl/default_channel_id_store.h",
330 "ssl/openssl_client_key_store.cc",
331 "ssl/openssl_client_key_store.h",
332 "ssl/openssl_ssl_util.cc", 334 "ssl/openssl_ssl_util.cc",
333 "ssl/openssl_ssl_util.h", 335 "ssl/openssl_ssl_util.h",
334 "ssl/ssl_cert_request_info.cc", 336 "ssl/ssl_cert_request_info.cc",
335 "ssl/ssl_cert_request_info.h", 337 "ssl/ssl_cert_request_info.h",
336 "ssl/ssl_cipher_suite_names.cc", 338 "ssl/ssl_cipher_suite_names.cc",
337 "ssl/ssl_cipher_suite_names.h", 339 "ssl/ssl_cipher_suite_names.h",
338 "ssl/ssl_client_auth_cache.cc", 340 "ssl/ssl_client_auth_cache.cc",
339 "ssl/ssl_client_auth_cache.h", 341 "ssl/ssl_client_auth_cache.h",
340 "ssl/ssl_client_cert_type.h", 342 "ssl/ssl_client_cert_type.h",
341 "ssl/ssl_client_session_cache.cc", 343 "ssl/ssl_client_session_cache.cc",
(...skipping 1286 matching lines...) Expand 10 before | Expand all | Expand 10 after
1628 "ssl/client_cert_store_mac.cc", 1630 "ssl/client_cert_store_mac.cc",
1629 "ssl/client_cert_store_mac.h", 1631 "ssl/client_cert_store_mac.h",
1630 "ssl/client_cert_store_nss.cc", 1632 "ssl/client_cert_store_nss.cc",
1631 "ssl/client_cert_store_nss.h", 1633 "ssl/client_cert_store_nss.h",
1632 "ssl/client_cert_store_win.cc", 1634 "ssl/client_cert_store_win.cc",
1633 "ssl/client_cert_store_win.h", 1635 "ssl/client_cert_store_win.h",
1634 "ssl/ssl_config_service_defaults.cc", 1636 "ssl/ssl_config_service_defaults.cc",
1635 "ssl/ssl_config_service_defaults.h", 1637 "ssl/ssl_config_service_defaults.h",
1636 "ssl/ssl_key_logger.cc", 1638 "ssl/ssl_key_logger.cc",
1637 "ssl/ssl_key_logger.h", 1639 "ssl/ssl_key_logger.h",
1638 "ssl/ssl_platform_key.h",
1639 "ssl/ssl_platform_key_android.cc", 1640 "ssl/ssl_platform_key_android.cc",
1640 "ssl/ssl_platform_key_android.h", 1641 "ssl/ssl_platform_key_android.h",
1641 "ssl/ssl_platform_key_mac.cc", 1642 "ssl/ssl_platform_key_mac.cc",
1642 "ssl/ssl_platform_key_mac.h", 1643 "ssl/ssl_platform_key_mac.h",
1643 "ssl/ssl_platform_key_nss.cc", 1644 "ssl/ssl_platform_key_nss.cc",
1645 "ssl/ssl_platform_key_nss.h",
1644 "ssl/ssl_platform_key_util.cc", 1646 "ssl/ssl_platform_key_util.cc",
1645 "ssl/ssl_platform_key_util.h", 1647 "ssl/ssl_platform_key_util.h",
1646 "ssl/ssl_platform_key_win.cc", 1648 "ssl/ssl_platform_key_win.cc",
1647 "ssl/test_ssl_private_key.cc", 1649 "ssl/test_ssl_private_key.cc",
1648 "ssl/test_ssl_private_key.h", 1650 "ssl/test_ssl_private_key.h",
1649 "ssl/threaded_ssl_private_key.cc", 1651 "ssl/threaded_ssl_private_key.cc",
1650 "ssl/threaded_ssl_private_key.h", 1652 "ssl/threaded_ssl_private_key.h",
1651 "third_party/mozilla_security_manager/nsNSSCertificateDB.cpp", 1653 "third_party/mozilla_security_manager/nsNSSCertificateDB.cpp",
1652 "third_party/mozilla_security_manager/nsNSSCertificateDB.h", 1654 "third_party/mozilla_security_manager/nsNSSCertificateDB.h",
1653 "third_party/mozilla_security_manager/nsPKCS12Blob.cpp", 1655 "third_party/mozilla_security_manager/nsPKCS12Blob.cpp",
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
1777 sources -= [ "cert/x509_certificate_win.cc" ] 1779 sources -= [ "cert/x509_certificate_win.cc" ]
1778 } 1780 }
1779 } else { 1781 } else {
1780 sources -= [ "cert/x509_certificate_bytes.cc" ] 1782 sources -= [ "cert/x509_certificate_bytes.cc" ]
1781 } 1783 }
1782 1784
1783 if (!use_openssl_certs) { 1785 if (!use_openssl_certs) {
1784 sources -= [ 1786 sources -= [
1785 "cert/cert_database_openssl.cc", 1787 "cert/cert_database_openssl.cc",
1786 "cert/x509_certificate_openssl.cc", 1788 "cert/x509_certificate_openssl.cc",
1787 "ssl/openssl_client_key_store.cc",
1788 "ssl/openssl_client_key_store.h",
1789 ] 1789 ]
1790 } else { 1790 } else {
1791 if (is_android) { 1791 if (is_android) {
1792 # Android doesn't use this file even when using OpenSSL. 1792 # Android doesn't use this file even when using OpenSSL.
1793 sources -= [ "cert/cert_database_openssl.cc" ] 1793 sources -= [ "cert/cert_database_openssl.cc" ]
1794 } 1794 }
1795 } 1795 }
1796 1796
1797 if (!use_kerberos || is_android) { 1797 if (!use_kerberos || is_android) {
1798 sources -= [ 1798 sources -= [
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
1850 "cert/cert_verify_proc_nss.cc", 1850 "cert/cert_verify_proc_nss.cc",
1851 "cert/cert_verify_proc_nss.h", 1851 "cert/cert_verify_proc_nss.h",
1852 "cert/test_root_certs_nss.cc", 1852 "cert/test_root_certs_nss.cc",
1853 "cert/x509_util_nss.cc", 1853 "cert/x509_util_nss.cc",
1854 "cert_net/nss_ocsp.cc", 1854 "cert_net/nss_ocsp.cc",
1855 "cert_net/nss_ocsp.h", 1855 "cert_net/nss_ocsp.h",
1856 ] 1856 ]
1857 } 1857 }
1858 1858
1859 if (is_chromecast && use_nss_certs) { 1859 if (is_chromecast && use_nss_certs) {
1860 sources += [ "ssl/ssl_platform_key_chromecast.cc" ] 1860 sources -= [
1861 sources -= [ "ssl/ssl_platform_key_nss.cc" ] 1861 "ssl/client_cert_store_nss.cc",
1862 "ssl/client_cert_store_nss.h",
1863 "ssl/ssl_platform_key_nss.cc",
1864 ]
1862 } 1865 }
1863 1866
1864 if (!enable_mdns) { 1867 if (!enable_mdns) {
1865 sources -= [ 1868 sources -= [
1866 "dns/mdns_cache.cc", 1869 "dns/mdns_cache.cc",
1867 "dns/mdns_cache.h", 1870 "dns/mdns_cache.h",
1868 "dns/mdns_client.cc", 1871 "dns/mdns_client.cc",
1869 "dns/mdns_client.h", 1872 "dns/mdns_client.h",
1870 "dns/mdns_client_impl.cc", 1873 "dns/mdns_client_impl.cc",
1871 "dns/mdns_client_impl.h", 1874 "dns/mdns_client_impl.h",
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after
2469 "proxy/mock_proxy_resolver.cc", 2472 "proxy/mock_proxy_resolver.cc",
2470 "proxy/mock_proxy_resolver.h", 2473 "proxy/mock_proxy_resolver.h",
2471 "proxy/mock_proxy_script_fetcher.cc", 2474 "proxy/mock_proxy_script_fetcher.cc",
2472 "proxy/mock_proxy_script_fetcher.h", 2475 "proxy/mock_proxy_script_fetcher.h",
2473 "proxy/proxy_config_service_common_unittest.cc", 2476 "proxy/proxy_config_service_common_unittest.cc",
2474 "proxy/proxy_config_service_common_unittest.h", 2477 "proxy/proxy_config_service_common_unittest.h",
2475 "socket/socket_test_util.cc", 2478 "socket/socket_test_util.cc",
2476 "socket/socket_test_util.h", 2479 "socket/socket_test_util.h",
2477 "spdy/chromium/spdy_test_util_common.cc", 2480 "spdy/chromium/spdy_test_util_common.cc",
2478 "spdy/chromium/spdy_test_util_common.h", 2481 "spdy/chromium/spdy_test_util_common.h",
2482 "ssl/client_cert_identity_test_util.cc",
2483 "ssl/client_cert_identity_test_util.h",
2484 "ssl/ssl_private_key_test_util.cc",
2485 "ssl/ssl_private_key_test_util.h",
2479 "test/cert_test_util.cc", 2486 "test/cert_test_util.cc",
2480 "test/cert_test_util.h", 2487 "test/cert_test_util.h",
2481 "test/cert_test_util_nss.cc", 2488 "test/cert_test_util_nss.cc",
2482 "test/channel_id_test_util.cc", 2489 "test/channel_id_test_util.cc",
2483 "test/channel_id_test_util.h", 2490 "test/channel_id_test_util.h",
2484 "test/ct_test_util.cc", 2491 "test/ct_test_util.cc",
2485 "test/ct_test_util.h", 2492 "test/ct_test_util.h",
2486 "test/embedded_test_server/default_handlers.cc", 2493 "test/embedded_test_server/default_handlers.cc",
2487 "test/embedded_test_server/default_handlers.h", 2494 "test/embedded_test_server/default_handlers.h",
2488 "test/embedded_test_server/embedded_test_server.cc", 2495 "test/embedded_test_server/embedded_test_server.cc",
(...skipping 2402 matching lines...) Expand 10 before | Expand all | Expand 10 after
4891 "spdy/core/spdy_no_op_visitor.h", 4898 "spdy/core/spdy_no_op_visitor.h",
4892 "spdy/core/spdy_pinnable_buffer_piece_test.cc", 4899 "spdy/core/spdy_pinnable_buffer_piece_test.cc",
4893 "spdy/core/spdy_prefixed_buffer_reader_test.cc", 4900 "spdy/core/spdy_prefixed_buffer_reader_test.cc",
4894 "spdy/core/spdy_protocol_test.cc", 4901 "spdy/core/spdy_protocol_test.cc",
4895 "spdy/core/spdy_protocol_test_utils.cc", 4902 "spdy/core/spdy_protocol_test_utils.cc",
4896 "spdy/core/spdy_protocol_test_utils.h", 4903 "spdy/core/spdy_protocol_test_utils.h",
4897 "spdy/core/spdy_test_utils.cc", 4904 "spdy/core/spdy_test_utils.cc",
4898 "spdy/core/spdy_test_utils.h", 4905 "spdy/core/spdy_test_utils.h",
4899 "spdy/platform/api/spdy_string_utils_test.cc", 4906 "spdy/platform/api/spdy_string_utils_test.cc",
4900 "ssl/channel_id_service_unittest.cc", 4907 "ssl/channel_id_service_unittest.cc",
4908 "ssl/client_cert_identity_unittest.cc",
4901 "ssl/client_cert_store_mac_unittest.cc", 4909 "ssl/client_cert_store_mac_unittest.cc",
4902 "ssl/client_cert_store_nss_unittest.cc", 4910 "ssl/client_cert_store_nss_unittest.cc",
4903 "ssl/client_cert_store_unittest-inl.h", 4911 "ssl/client_cert_store_unittest-inl.h",
4904 "ssl/client_cert_store_win_unittest.cc", 4912 "ssl/client_cert_store_win_unittest.cc",
4905 "ssl/default_channel_id_store_unittest.cc", 4913 "ssl/default_channel_id_store_unittest.cc",
4906 "ssl/openssl_client_key_store_unittest.cc",
4907 "ssl/ssl_cipher_suite_names_unittest.cc", 4914 "ssl/ssl_cipher_suite_names_unittest.cc",
4908 "ssl/ssl_client_auth_cache_unittest.cc", 4915 "ssl/ssl_client_auth_cache_unittest.cc",
4909 "ssl/ssl_client_session_cache_unittest.cc", 4916 "ssl/ssl_client_session_cache_unittest.cc",
4910 "ssl/ssl_config_service_unittest.cc", 4917 "ssl/ssl_config_service_unittest.cc",
4911 "ssl/ssl_config_unittest.cc", 4918 "ssl/ssl_config_unittest.cc",
4912 "ssl/ssl_connection_status_flags_unittest.cc", 4919 "ssl/ssl_connection_status_flags_unittest.cc",
4913 "ssl/ssl_platform_key_android_unittest.cc", 4920 "ssl/ssl_platform_key_android_unittest.cc",
4914 "ssl/ssl_platform_key_mac_unittest.cc", 4921 "ssl/ssl_platform_key_mac_unittest.cc",
4915 "ssl/ssl_platform_key_nss_unittest.cc", 4922 "ssl/ssl_platform_key_nss_unittest.cc",
4916 "ssl/ssl_platform_key_util_unittest.cc", 4923 "ssl/ssl_platform_key_util_unittest.cc",
4917 "ssl/ssl_platform_key_win_unittest.cc", 4924 "ssl/ssl_platform_key_win_unittest.cc",
4918 "ssl/ssl_private_key_test_util.cc",
4919 "ssl/ssl_private_key_test_util.h",
4920 "test/embedded_test_server/embedded_test_server_unittest.cc", 4925 "test/embedded_test_server/embedded_test_server_unittest.cc",
4921 "test/embedded_test_server/http_request_unittest.cc", 4926 "test/embedded_test_server/http_request_unittest.cc",
4922 "test/embedded_test_server/http_response_unittest.cc", 4927 "test/embedded_test_server/http_response_unittest.cc",
4923 "test/python_utils_unittest.cc", 4928 "test/python_utils_unittest.cc",
4924 "test/run_all_unittests.cc", 4929 "test/run_all_unittests.cc",
4925 "third_party/nist-pkits/pkits_testcases-inl.h", 4930 "third_party/nist-pkits/pkits_testcases-inl.h",
4926 "tools/content_decoder_tool/content_decoder_tool.cc", 4931 "tools/content_decoder_tool/content_decoder_tool.cc",
4927 "tools/content_decoder_tool/content_decoder_tool.h", 4932 "tools/content_decoder_tool/content_decoder_tool.h",
4928 "tools/content_decoder_tool/content_decoder_tool_unittest.cc", 4933 "tools/content_decoder_tool/content_decoder_tool_unittest.cc",
4929 "tools/quic/quic_simple_client_test.cc", 4934 "tools/quic/quic_simple_client_test.cc",
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
5121 } 5126 }
5122 if (!use_kerberos) { 5127 if (!use_kerberos) {
5123 sources -= [ "http/http_auth_handler_negotiate_unittest.cc" ] 5128 sources -= [ "http/http_auth_handler_negotiate_unittest.cc" ]
5124 } 5129 }
5125 5130
5126 if (!use_nss_certs) { 5131 if (!use_nss_certs) {
5127 # Only include this test when using NSS for cert verification. 5132 # Only include this test when using NSS for cert verification.
5128 sources -= [ "cert_net/nss_ocsp_unittest.cc" ] 5133 sources -= [ "cert_net/nss_ocsp_unittest.cc" ]
5129 } 5134 }
5130 5135
5131 if (!use_openssl_certs) {
5132 sources -= [ "ssl/openssl_client_key_store_unittest.cc" ]
5133 }
5134
5135 if (enable_websockets) { 5136 if (enable_websockets) {
5136 sources += [ 5137 sources += [
5137 "server/http_connection_unittest.cc", 5138 "server/http_connection_unittest.cc",
5138 "server/http_server_response_info_unittest.cc", 5139 "server/http_server_response_info_unittest.cc",
5139 "server/http_server_unittest.cc", 5140 "server/http_server_unittest.cc",
5140 "server/web_socket_encoder_unittest.cc", 5141 "server/web_socket_encoder_unittest.cc",
5141 "websockets/websocket_basic_stream_test.cc", 5142 "websockets/websocket_basic_stream_test.cc",
5142 "websockets/websocket_channel_test.cc", 5143 "websockets/websocket_channel_test.cc",
5143 "websockets/websocket_deflate_parameters_test.cc", 5144 "websockets/websocket_deflate_parameters_test.cc",
5144 "websockets/websocket_deflate_predictor_impl_test.cc", 5145 "websockets/websocket_deflate_predictor_impl_test.cc",
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
5339 } 5340 }
5340 5341
5341 if (is_win) { 5342 if (is_win) {
5342 libs = [ 5343 libs = [
5343 "iphlpapi.lib", 5344 "iphlpapi.lib",
5344 "ncrypt.lib", 5345 "ncrypt.lib",
5345 ] 5346 ]
5346 } 5347 }
5347 5348
5348 if (is_chromecast && use_nss_certs) { 5349 if (is_chromecast && use_nss_certs) {
5349 sources += [ "ssl/ssl_platform_key_chromecast_unittest.cc" ] 5350 sources -= [
5350 sources -= [ "ssl/ssl_platform_key_nss_unittest.cc" ] 5351 "ssl/client_cert_store_nss_unittest.cc",
5352 "ssl/ssl_platform_key_nss_unittest.cc",
5353 ]
5351 } 5354 }
5352 5355
5353 # Include transport_security_state_generator tests. 5356 # Include transport_security_state_generator tests.
5354 if (host_toolchain == current_toolchain) { 5357 if (host_toolchain == current_toolchain) {
5355 deps += [ "//net/tools/transport_security_state_generator:transport_security _state_generator_test_sources" ] 5358 deps += [ "//net/tools/transport_security_state_generator:transport_security _state_generator_test_sources" ]
5356 } 5359 }
5357 5360
5358 # Add back some sources that were otherwise filtered out. 5361 # Add back some sources that were otherwise filtered out.
5359 set_sources_assignment_filter([]) 5362 set_sources_assignment_filter([])
5360 sources += net_unfiltered_sources 5363 sources += net_unfiltered_sources
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after
5944 ] 5947 ]
5945 deps = [ 5948 deps = [
5946 ":net_fuzzer_test_support", 5949 ":net_fuzzer_test_support",
5947 ":test_support", 5950 ":test_support",
5948 "//base", 5951 "//base",
5949 "//net", 5952 "//net",
5950 ] 5953 ]
5951 dict = "data/fuzzer_dictionaries/net_spdy_session_fuzzer.dict" 5954 dict = "data/fuzzer_dictionaries/net_spdy_session_fuzzer.dict"
5952 seed_corpus = "data/fuzzer_data/net_spdy_session_fuzzer/" 5955 seed_corpus = "data/fuzzer_data/net_spdy_session_fuzzer/"
5953 } 5956 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698