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

Side by Side Diff: net/BUILD.gn

Issue 2898573002: Refactor client cert private key handling. (Closed)
Patch Set: fix member order 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 1292 matching lines...) Expand 10 before | Expand all | Expand 10 after
1634 "ssl/client_cert_store_mac.cc", 1636 "ssl/client_cert_store_mac.cc",
1635 "ssl/client_cert_store_mac.h", 1637 "ssl/client_cert_store_mac.h",
1636 "ssl/client_cert_store_nss.cc", 1638 "ssl/client_cert_store_nss.cc",
1637 "ssl/client_cert_store_nss.h", 1639 "ssl/client_cert_store_nss.h",
1638 "ssl/client_cert_store_win.cc", 1640 "ssl/client_cert_store_win.cc",
1639 "ssl/client_cert_store_win.h", 1641 "ssl/client_cert_store_win.h",
1640 "ssl/ssl_config_service_defaults.cc", 1642 "ssl/ssl_config_service_defaults.cc",
1641 "ssl/ssl_config_service_defaults.h", 1643 "ssl/ssl_config_service_defaults.h",
1642 "ssl/ssl_key_logger.cc", 1644 "ssl/ssl_key_logger.cc",
1643 "ssl/ssl_key_logger.h", 1645 "ssl/ssl_key_logger.h",
1644 "ssl/ssl_platform_key.h",
1645 "ssl/ssl_platform_key_android.cc", 1646 "ssl/ssl_platform_key_android.cc",
1646 "ssl/ssl_platform_key_android.h", 1647 "ssl/ssl_platform_key_android.h",
1647 "ssl/ssl_platform_key_mac.cc", 1648 "ssl/ssl_platform_key_mac.cc",
1648 "ssl/ssl_platform_key_mac.h", 1649 "ssl/ssl_platform_key_mac.h",
1649 "ssl/ssl_platform_key_nss.cc", 1650 "ssl/ssl_platform_key_nss.cc",
1651 "ssl/ssl_platform_key_nss.h",
1650 "ssl/ssl_platform_key_util.cc", 1652 "ssl/ssl_platform_key_util.cc",
1651 "ssl/ssl_platform_key_util.h", 1653 "ssl/ssl_platform_key_util.h",
1652 "ssl/ssl_platform_key_win.cc", 1654 "ssl/ssl_platform_key_win.cc",
1653 "ssl/test_ssl_private_key.cc", 1655 "ssl/test_ssl_private_key.cc",
1654 "ssl/test_ssl_private_key.h", 1656 "ssl/test_ssl_private_key.h",
1655 "ssl/threaded_ssl_private_key.cc", 1657 "ssl/threaded_ssl_private_key.cc",
1656 "ssl/threaded_ssl_private_key.h", 1658 "ssl/threaded_ssl_private_key.h",
1657 "third_party/mozilla_security_manager/nsNSSCertificateDB.cpp", 1659 "third_party/mozilla_security_manager/nsNSSCertificateDB.cpp",
1658 "third_party/mozilla_security_manager/nsNSSCertificateDB.h", 1660 "third_party/mozilla_security_manager/nsNSSCertificateDB.h",
1659 "third_party/mozilla_security_manager/nsPKCS12Blob.cpp", 1661 "third_party/mozilla_security_manager/nsPKCS12Blob.cpp",
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
1783 sources -= [ "cert/x509_certificate_win.cc" ] 1785 sources -= [ "cert/x509_certificate_win.cc" ]
1784 } 1786 }
1785 } else { 1787 } else {
1786 sources -= [ "cert/x509_certificate_bytes.cc" ] 1788 sources -= [ "cert/x509_certificate_bytes.cc" ]
1787 } 1789 }
1788 1790
1789 if (!use_openssl_certs) { 1791 if (!use_openssl_certs) {
1790 sources -= [ 1792 sources -= [
1791 "cert/cert_database_openssl.cc", 1793 "cert/cert_database_openssl.cc",
1792 "cert/x509_certificate_openssl.cc", 1794 "cert/x509_certificate_openssl.cc",
1793 "ssl/openssl_client_key_store.cc",
1794 "ssl/openssl_client_key_store.h",
1795 ] 1795 ]
1796 } else { 1796 } else {
1797 if (is_android) { 1797 if (is_android) {
1798 # Android doesn't use this file even when using OpenSSL. 1798 # Android doesn't use this file even when using OpenSSL.
1799 sources -= [ "cert/cert_database_openssl.cc" ] 1799 sources -= [ "cert/cert_database_openssl.cc" ]
1800 } 1800 }
1801 } 1801 }
1802 1802
1803 if (!use_kerberos || is_android) { 1803 if (!use_kerberos || is_android) {
1804 sources -= [ 1804 sources -= [
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
1856 "cert/cert_verify_proc_nss.cc", 1856 "cert/cert_verify_proc_nss.cc",
1857 "cert/cert_verify_proc_nss.h", 1857 "cert/cert_verify_proc_nss.h",
1858 "cert/test_root_certs_nss.cc", 1858 "cert/test_root_certs_nss.cc",
1859 "cert/x509_util_nss.cc", 1859 "cert/x509_util_nss.cc",
1860 "cert_net/nss_ocsp.cc", 1860 "cert_net/nss_ocsp.cc",
1861 "cert_net/nss_ocsp.h", 1861 "cert_net/nss_ocsp.h",
1862 ] 1862 ]
1863 } 1863 }
1864 1864
1865 if (is_chromecast && use_nss_certs) { 1865 if (is_chromecast && use_nss_certs) {
1866 sources += [ "ssl/ssl_platform_key_chromecast.cc" ] 1866 sources -= [
1867 sources -= [ "ssl/ssl_platform_key_nss.cc" ] 1867 "ssl/client_cert_store_nss.cc",
1868 "ssl/client_cert_store_nss.h",
1869 "ssl/ssl_platform_key_nss.cc",
1870 ]
1868 } 1871 }
1869 1872
1870 if (!enable_mdns) { 1873 if (!enable_mdns) {
1871 sources -= [ 1874 sources -= [
1872 "dns/mdns_cache.cc", 1875 "dns/mdns_cache.cc",
1873 "dns/mdns_cache.h", 1876 "dns/mdns_cache.h",
1874 "dns/mdns_client.cc", 1877 "dns/mdns_client.cc",
1875 "dns/mdns_client.h", 1878 "dns/mdns_client.h",
1876 "dns/mdns_client_impl.cc", 1879 "dns/mdns_client_impl.cc",
1877 "dns/mdns_client_impl.h", 1880 "dns/mdns_client_impl.h",
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after
2474 "proxy/mock_proxy_resolver.cc", 2477 "proxy/mock_proxy_resolver.cc",
2475 "proxy/mock_proxy_resolver.h", 2478 "proxy/mock_proxy_resolver.h",
2476 "proxy/mock_proxy_script_fetcher.cc", 2479 "proxy/mock_proxy_script_fetcher.cc",
2477 "proxy/mock_proxy_script_fetcher.h", 2480 "proxy/mock_proxy_script_fetcher.h",
2478 "proxy/proxy_config_service_common_unittest.cc", 2481 "proxy/proxy_config_service_common_unittest.cc",
2479 "proxy/proxy_config_service_common_unittest.h", 2482 "proxy/proxy_config_service_common_unittest.h",
2480 "socket/socket_test_util.cc", 2483 "socket/socket_test_util.cc",
2481 "socket/socket_test_util.h", 2484 "socket/socket_test_util.h",
2482 "spdy/chromium/spdy_test_util_common.cc", 2485 "spdy/chromium/spdy_test_util_common.cc",
2483 "spdy/chromium/spdy_test_util_common.h", 2486 "spdy/chromium/spdy_test_util_common.h",
2487 "ssl/client_cert_identity_test_util.cc",
2488 "ssl/client_cert_identity_test_util.h",
2489 "ssl/ssl_private_key_test_util.cc",
2490 "ssl/ssl_private_key_test_util.h",
2484 "test/cert_test_util.cc", 2491 "test/cert_test_util.cc",
2485 "test/cert_test_util.h", 2492 "test/cert_test_util.h",
2486 "test/cert_test_util_nss.cc", 2493 "test/cert_test_util_nss.cc",
2487 "test/channel_id_test_util.cc", 2494 "test/channel_id_test_util.cc",
2488 "test/channel_id_test_util.h", 2495 "test/channel_id_test_util.h",
2489 "test/ct_test_util.cc", 2496 "test/ct_test_util.cc",
2490 "test/ct_test_util.h", 2497 "test/ct_test_util.h",
2491 "test/embedded_test_server/default_handlers.cc", 2498 "test/embedded_test_server/default_handlers.cc",
2492 "test/embedded_test_server/default_handlers.h", 2499 "test/embedded_test_server/default_handlers.h",
2493 "test/embedded_test_server/embedded_test_server.cc", 2500 "test/embedded_test_server/embedded_test_server.cc",
(...skipping 2529 matching lines...) Expand 10 before | Expand all | Expand 10 after
5023 "spdy/core/spdy_no_op_visitor.h", 5030 "spdy/core/spdy_no_op_visitor.h",
5024 "spdy/core/spdy_pinnable_buffer_piece_test.cc", 5031 "spdy/core/spdy_pinnable_buffer_piece_test.cc",
5025 "spdy/core/spdy_prefixed_buffer_reader_test.cc", 5032 "spdy/core/spdy_prefixed_buffer_reader_test.cc",
5026 "spdy/core/spdy_protocol_test.cc", 5033 "spdy/core/spdy_protocol_test.cc",
5027 "spdy/core/spdy_protocol_test_utils.cc", 5034 "spdy/core/spdy_protocol_test_utils.cc",
5028 "spdy/core/spdy_protocol_test_utils.h", 5035 "spdy/core/spdy_protocol_test_utils.h",
5029 "spdy/core/spdy_test_utils.cc", 5036 "spdy/core/spdy_test_utils.cc",
5030 "spdy/core/spdy_test_utils.h", 5037 "spdy/core/spdy_test_utils.h",
5031 "spdy/platform/api/spdy_string_utils_test.cc", 5038 "spdy/platform/api/spdy_string_utils_test.cc",
5032 "ssl/channel_id_service_unittest.cc", 5039 "ssl/channel_id_service_unittest.cc",
5040 "ssl/client_cert_identity_unittest.cc",
5033 "ssl/client_cert_store_mac_unittest.cc", 5041 "ssl/client_cert_store_mac_unittest.cc",
5034 "ssl/client_cert_store_nss_unittest.cc", 5042 "ssl/client_cert_store_nss_unittest.cc",
5035 "ssl/client_cert_store_unittest-inl.h", 5043 "ssl/client_cert_store_unittest-inl.h",
5036 "ssl/client_cert_store_win_unittest.cc", 5044 "ssl/client_cert_store_win_unittest.cc",
5037 "ssl/default_channel_id_store_unittest.cc", 5045 "ssl/default_channel_id_store_unittest.cc",
5038 "ssl/openssl_client_key_store_unittest.cc",
5039 "ssl/ssl_cipher_suite_names_unittest.cc", 5046 "ssl/ssl_cipher_suite_names_unittest.cc",
5040 "ssl/ssl_client_auth_cache_unittest.cc", 5047 "ssl/ssl_client_auth_cache_unittest.cc",
5041 "ssl/ssl_client_session_cache_unittest.cc", 5048 "ssl/ssl_client_session_cache_unittest.cc",
5042 "ssl/ssl_config_service_unittest.cc", 5049 "ssl/ssl_config_service_unittest.cc",
5043 "ssl/ssl_config_unittest.cc", 5050 "ssl/ssl_config_unittest.cc",
5044 "ssl/ssl_connection_status_flags_unittest.cc", 5051 "ssl/ssl_connection_status_flags_unittest.cc",
5045 "ssl/ssl_platform_key_android_unittest.cc", 5052 "ssl/ssl_platform_key_android_unittest.cc",
5046 "ssl/ssl_platform_key_mac_unittest.cc", 5053 "ssl/ssl_platform_key_mac_unittest.cc",
5047 "ssl/ssl_platform_key_nss_unittest.cc", 5054 "ssl/ssl_platform_key_nss_unittest.cc",
5048 "ssl/ssl_platform_key_util_unittest.cc", 5055 "ssl/ssl_platform_key_util_unittest.cc",
5049 "ssl/ssl_platform_key_win_unittest.cc", 5056 "ssl/ssl_platform_key_win_unittest.cc",
5050 "ssl/ssl_private_key_test_util.cc",
5051 "ssl/ssl_private_key_test_util.h",
5052 "test/embedded_test_server/embedded_test_server_unittest.cc", 5057 "test/embedded_test_server/embedded_test_server_unittest.cc",
5053 "test/embedded_test_server/http_request_unittest.cc", 5058 "test/embedded_test_server/http_request_unittest.cc",
5054 "test/embedded_test_server/http_response_unittest.cc", 5059 "test/embedded_test_server/http_response_unittest.cc",
5055 "test/python_utils_unittest.cc", 5060 "test/python_utils_unittest.cc",
5056 "test/run_all_unittests.cc", 5061 "test/run_all_unittests.cc",
5057 "third_party/nist-pkits/pkits_testcases-inl.h", 5062 "third_party/nist-pkits/pkits_testcases-inl.h",
5058 "tools/content_decoder_tool/content_decoder_tool.cc", 5063 "tools/content_decoder_tool/content_decoder_tool.cc",
5059 "tools/content_decoder_tool/content_decoder_tool.h", 5064 "tools/content_decoder_tool/content_decoder_tool.h",
5060 "tools/content_decoder_tool/content_decoder_tool_unittest.cc", 5065 "tools/content_decoder_tool/content_decoder_tool_unittest.cc",
5061 "tools/quic/quic_simple_client_test.cc", 5066 "tools/quic/quic_simple_client_test.cc",
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
5230 } 5235 }
5231 if (!use_kerberos) { 5236 if (!use_kerberos) {
5232 sources -= [ "http/http_auth_handler_negotiate_unittest.cc" ] 5237 sources -= [ "http/http_auth_handler_negotiate_unittest.cc" ]
5233 } 5238 }
5234 5239
5235 if (!use_nss_certs) { 5240 if (!use_nss_certs) {
5236 # Only include this test when using NSS for cert verification. 5241 # Only include this test when using NSS for cert verification.
5237 sources -= [ "cert_net/nss_ocsp_unittest.cc" ] 5242 sources -= [ "cert_net/nss_ocsp_unittest.cc" ]
5238 } 5243 }
5239 5244
5240 if (!use_openssl_certs) {
5241 sources -= [ "ssl/openssl_client_key_store_unittest.cc" ]
5242 }
5243
5244 if (enable_websockets) { 5245 if (enable_websockets) {
5245 sources += [ 5246 sources += [
5246 "server/http_connection_unittest.cc", 5247 "server/http_connection_unittest.cc",
5247 "server/http_server_response_info_unittest.cc", 5248 "server/http_server_response_info_unittest.cc",
5248 "server/http_server_unittest.cc", 5249 "server/http_server_unittest.cc",
5249 "server/web_socket_encoder_unittest.cc", 5250 "server/web_socket_encoder_unittest.cc",
5250 "websockets/websocket_basic_stream_test.cc", 5251 "websockets/websocket_basic_stream_test.cc",
5251 "websockets/websocket_channel_test.cc", 5252 "websockets/websocket_channel_test.cc",
5252 "websockets/websocket_deflate_parameters_test.cc", 5253 "websockets/websocket_deflate_parameters_test.cc",
5253 "websockets/websocket_deflate_predictor_impl_test.cc", 5254 "websockets/websocket_deflate_predictor_impl_test.cc",
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
5443 } 5444 }
5444 5445
5445 if (is_win) { 5446 if (is_win) {
5446 libs = [ 5447 libs = [
5447 "iphlpapi.lib", 5448 "iphlpapi.lib",
5448 "ncrypt.lib", 5449 "ncrypt.lib",
5449 ] 5450 ]
5450 } 5451 }
5451 5452
5452 if (is_chromecast && use_nss_certs) { 5453 if (is_chromecast && use_nss_certs) {
5453 sources += [ "ssl/ssl_platform_key_chromecast_unittest.cc" ] 5454 sources -= [
5454 sources -= [ "ssl/ssl_platform_key_nss_unittest.cc" ] 5455 "ssl/client_cert_store_nss_unittest.cc",
5456 "ssl/ssl_platform_key_nss_unittest.cc",
5457 ]
5455 } 5458 }
5456 5459
5457 # Include transport_security_state_generator tests. 5460 # Include transport_security_state_generator tests.
5458 if (host_toolchain == current_toolchain) { 5461 if (host_toolchain == current_toolchain) {
5459 deps += [ "//net/tools/transport_security_state_generator:transport_security _state_generator_test_sources" ] 5462 deps += [ "//net/tools/transport_security_state_generator:transport_security _state_generator_test_sources" ]
5460 } 5463 }
5461 5464
5462 # Add back some sources that were otherwise filtered out. 5465 # Add back some sources that were otherwise filtered out.
5463 set_sources_assignment_filter([]) 5466 set_sources_assignment_filter([])
5464 sources += net_unfiltered_sources 5467 sources += net_unfiltered_sources
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after
6052 ] 6055 ]
6053 deps = [ 6056 deps = [
6054 ":net_fuzzer_test_support", 6057 ":net_fuzzer_test_support",
6055 ":test_support", 6058 ":test_support",
6056 "//base", 6059 "//base",
6057 "//net", 6060 "//net",
6058 ] 6061 ]
6059 dict = "data/fuzzer_dictionaries/net_spdy_session_fuzzer.dict" 6062 dict = "data/fuzzer_dictionaries/net_spdy_session_fuzzer.dict"
6060 seed_corpus = "data/fuzzer_data/net_spdy_session_fuzzer/" 6063 seed_corpus = "data/fuzzer_data/net_spdy_session_fuzzer/"
6061 } 6064 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698