OLD | NEW |
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 19 matching lines...) Expand all Loading... |
30 # The way the cache uses mmap() is inefficient on some Android devices. If | 30 # The way the cache uses mmap() is inefficient on some Android devices. If |
31 # this flag is set, we hackily avoid using mmap() in the disk cache. We are | 31 # this flag is set, we hackily avoid using mmap() in the disk cache. We are |
32 # pretty confident that mmap-ing the index would not hurt any existing x86 | 32 # pretty confident that mmap-ing the index would not hurt any existing x86 |
33 # android devices, but we cannot be so sure about the variety of ARM devices. | 33 # android devices, but we cannot be so sure about the variety of ARM devices. |
34 # So enable it for x86 only for now. | 34 # So enable it for x86 only for now. |
35 posix_avoid_mmap = is_android && current_cpu != "x86" | 35 posix_avoid_mmap = is_android && current_cpu != "x86" |
36 | 36 |
37 use_v8_in_net = !is_ios && !is_proto_quic | 37 use_v8_in_net = !is_ios && !is_proto_quic |
38 enable_built_in_dns = !is_ios && !is_proto_quic | 38 enable_built_in_dns = !is_ios && !is_proto_quic |
39 | 39 |
| 40 # True if certificates are represented with DER byte buffers. This can be true |
| 41 # in addition to use_openssl_certs or use_nss_certs, in that case byte certs |
| 42 # are used internally but OpenSSL or NSS are used for certificate verification. |
| 43 # TODO(mattm): crbug.com/671420: Implement and enable this for all platforms. |
| 44 use_byte_certs = is_mac |
| 45 |
40 buildflag_header("features") { | 46 buildflag_header("features") { |
41 header = "net_features.h" | 47 header = "net_features.h" |
42 flags = [ | 48 flags = [ |
43 "POSIX_AVOID_MMAP=$posix_avoid_mmap", | 49 "POSIX_AVOID_MMAP=$posix_avoid_mmap", |
44 "DISABLE_FILE_SUPPORT=$disable_file_support", | 50 "DISABLE_FILE_SUPPORT=$disable_file_support", |
45 "DISABLE_FTP_SUPPORT=$disable_ftp_support", | 51 "DISABLE_FTP_SUPPORT=$disable_ftp_support", |
46 "ENABLE_MDNS=$enable_mdns", | 52 "ENABLE_MDNS=$enable_mdns", |
47 "ENABLE_WEBSOCKETS=$enable_websockets", | 53 "ENABLE_WEBSOCKETS=$enable_websockets", |
| 54 "USE_BYTE_CERTS=$use_byte_certs", |
48 ] | 55 ] |
49 } | 56 } |
50 | 57 |
51 config("net_internal_config") { | 58 config("net_internal_config") { |
52 defines = [ | 59 defines = [ |
53 "DLOPEN_KERBEROS", | 60 "DLOPEN_KERBEROS", |
54 "NET_IMPLEMENTATION", | 61 "NET_IMPLEMENTATION", |
55 ] | 62 ] |
56 | 63 |
57 if (use_kerberos) { | 64 if (use_kerberos) { |
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
576 "cert/test_keychain_search_list_mac.h", | 583 "cert/test_keychain_search_list_mac.h", |
577 "cert/test_root_certs.cc", | 584 "cert/test_root_certs.cc", |
578 "cert/test_root_certs.h", | 585 "cert/test_root_certs.h", |
579 "cert/test_root_certs_android.cc", | 586 "cert/test_root_certs_android.cc", |
580 "cert/test_root_certs_mac.cc", | 587 "cert/test_root_certs_mac.cc", |
581 "cert/test_root_certs_nss.cc", | 588 "cert/test_root_certs_nss.cc", |
582 "cert/test_root_certs_openssl.cc", | 589 "cert/test_root_certs_openssl.cc", |
583 "cert/test_root_certs_win.cc", | 590 "cert/test_root_certs_win.cc", |
584 "cert/x509_cert_types_mac.cc", | 591 "cert/x509_cert_types_mac.cc", |
585 "cert/x509_cert_types_win.cc", | 592 "cert/x509_cert_types_win.cc", |
| 593 "cert/x509_certificate_bytes.cc", |
586 "cert/x509_certificate_ios.cc", | 594 "cert/x509_certificate_ios.cc", |
587 "cert/x509_certificate_known_roots_win.h", | 595 "cert/x509_certificate_known_roots_win.h", |
588 "cert/x509_certificate_mac.cc", | 596 "cert/x509_certificate_mac.cc", |
589 "cert/x509_certificate_nss.cc", | 597 "cert/x509_certificate_nss.cc", |
590 "cert/x509_certificate_win.cc", | 598 "cert/x509_certificate_win.cc", |
591 "cert/x509_util_android.cc", | 599 "cert/x509_util_android.cc", |
592 "cert/x509_util_android.h", | 600 "cert/x509_util_android.h", |
| 601 "cert/x509_util_ios.cc", |
| 602 "cert/x509_util_ios.h", |
593 "cert/x509_util_mac.cc", | 603 "cert/x509_util_mac.cc", |
594 "cert/x509_util_mac.h", | 604 "cert/x509_util_mac.h", |
595 "cert/x509_util_nss.cc", | 605 "cert/x509_util_nss.cc", |
596 "cert/x509_util_nss.h", | 606 "cert/x509_util_nss.h", |
597 "cert_net/cert_net_fetcher_impl.cc", | 607 "cert_net/cert_net_fetcher_impl.cc", |
598 "cert_net/cert_net_fetcher_impl.h", | 608 "cert_net/cert_net_fetcher_impl.h", |
599 "cert_net/nss_ocsp.cc", | 609 "cert_net/nss_ocsp.cc", |
600 "cert_net/nss_ocsp.h", | 610 "cert_net/nss_ocsp.h", |
601 "cookies/canonical_cookie.cc", | 611 "cookies/canonical_cookie.cc", |
602 "cookies/canonical_cookie.h", | 612 "cookies/canonical_cookie.h", |
(...skipping 1099 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1702 } | 1712 } |
1703 | 1713 |
1704 if (!enable_built_in_dns) { | 1714 if (!enable_built_in_dns) { |
1705 sources -= [ | 1715 sources -= [ |
1706 "dns/address_sorter_posix.cc", | 1716 "dns/address_sorter_posix.cc", |
1707 "dns/address_sorter_posix.h", | 1717 "dns/address_sorter_posix.h", |
1708 "dns/dns_client.cc", | 1718 "dns/dns_client.cc", |
1709 ] | 1719 ] |
1710 } | 1720 } |
1711 | 1721 |
| 1722 if (use_byte_certs) { |
| 1723 if (is_ios) { |
| 1724 sources -= [ "cert/x509_certificate_ios.cc" ] |
| 1725 } |
| 1726 if (is_mac) { |
| 1727 sources -= [ "cert/x509_certificate_mac.cc" ] |
| 1728 } |
| 1729 if (use_nss_certs) { |
| 1730 sources -= [ "cert/x509_certificate_nss.cc" ] |
| 1731 } |
| 1732 if (use_openssl_certs) { |
| 1733 sources -= [ "cert/x509_certificate_openssl.cc" ] |
| 1734 } |
| 1735 if (is_win) { |
| 1736 sources -= [ "cert/x509_certificate_win.cc" ] |
| 1737 } |
| 1738 } else { |
| 1739 sources -= [ "cert/x509_certificate_bytes.cc" ] |
| 1740 } |
| 1741 |
1712 if (!use_openssl_certs) { | 1742 if (!use_openssl_certs) { |
1713 sources -= [ | 1743 sources -= [ |
1714 "cert/cert_database_openssl.cc", | 1744 "cert/cert_database_openssl.cc", |
1715 "cert/cert_verify_proc_openssl.cc", | 1745 "cert/cert_verify_proc_openssl.cc", |
1716 "cert/cert_verify_proc_openssl.h", | 1746 "cert/cert_verify_proc_openssl.h", |
1717 "cert/test_root_certs_openssl.cc", | 1747 "cert/test_root_certs_openssl.cc", |
1718 "cert/x509_certificate_openssl.cc", | 1748 "cert/x509_certificate_openssl.cc", |
1719 "ssl/openssl_client_key_store.cc", | 1749 "ssl/openssl_client_key_store.cc", |
1720 "ssl/openssl_client_key_store.h", | 1750 "ssl/openssl_client_key_store.h", |
1721 ] | 1751 ] |
(...skipping 3979 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5701 ] | 5731 ] |
5702 deps = [ | 5732 deps = [ |
5703 ":net_fuzzer_test_support", | 5733 ":net_fuzzer_test_support", |
5704 ":test_support", | 5734 ":test_support", |
5705 "//base", | 5735 "//base", |
5706 "//net", | 5736 "//net", |
5707 ] | 5737 ] |
5708 dict = "data/fuzzer_dictionaries/net_spdy_session_fuzzer.dict" | 5738 dict = "data/fuzzer_dictionaries/net_spdy_session_fuzzer.dict" |
5709 seed_corpus = "data/fuzzer_data/net_spdy_session_fuzzer/" | 5739 seed_corpus = "data/fuzzer_data/net_spdy_session_fuzzer/" |
5710 } | 5740 } |
OLD | NEW |