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

Side by Side Diff: net/BUILD.gn

Issue 2746103003: Add X509CertificateBytes which uses CRYPTO_BUFFER instead of macOS-native certificate types. (Closed)
Patch Set: rebase Created 3 years, 8 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 19 matching lines...) Expand all
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 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 "cert/test_keychain_search_list_mac.h", 585 "cert/test_keychain_search_list_mac.h",
579 "cert/test_root_certs.cc", 586 "cert/test_root_certs.cc",
580 "cert/test_root_certs.h", 587 "cert/test_root_certs.h",
581 "cert/test_root_certs_android.cc", 588 "cert/test_root_certs_android.cc",
582 "cert/test_root_certs_mac.cc", 589 "cert/test_root_certs_mac.cc",
583 "cert/test_root_certs_nss.cc", 590 "cert/test_root_certs_nss.cc",
584 "cert/test_root_certs_openssl.cc", 591 "cert/test_root_certs_openssl.cc",
585 "cert/test_root_certs_win.cc", 592 "cert/test_root_certs_win.cc",
586 "cert/x509_cert_types_mac.cc", 593 "cert/x509_cert_types_mac.cc",
587 "cert/x509_cert_types_win.cc", 594 "cert/x509_cert_types_win.cc",
595 "cert/x509_certificate_bytes.cc",
588 "cert/x509_certificate_ios.cc", 596 "cert/x509_certificate_ios.cc",
589 "cert/x509_certificate_known_roots_win.h", 597 "cert/x509_certificate_known_roots_win.h",
590 "cert/x509_certificate_mac.cc", 598 "cert/x509_certificate_mac.cc",
591 "cert/x509_certificate_nss.cc", 599 "cert/x509_certificate_nss.cc",
592 "cert/x509_certificate_win.cc", 600 "cert/x509_certificate_win.cc",
593 "cert/x509_util_android.cc", 601 "cert/x509_util_android.cc",
594 "cert/x509_util_android.h", 602 "cert/x509_util_android.h",
603 "cert/x509_util_ios.cc",
604 "cert/x509_util_ios.h",
595 "cert/x509_util_mac.cc", 605 "cert/x509_util_mac.cc",
596 "cert/x509_util_mac.h", 606 "cert/x509_util_mac.h",
597 "cert/x509_util_nss.cc", 607 "cert/x509_util_nss.cc",
598 "cert/x509_util_nss.h", 608 "cert/x509_util_nss.h",
599 "cert_net/cert_net_fetcher_impl.cc", 609 "cert_net/cert_net_fetcher_impl.cc",
600 "cert_net/cert_net_fetcher_impl.h", 610 "cert_net/cert_net_fetcher_impl.h",
601 "cert_net/nss_ocsp.cc", 611 "cert_net/nss_ocsp.cc",
602 "cert_net/nss_ocsp.h", 612 "cert_net/nss_ocsp.h",
603 "cookies/canonical_cookie.cc", 613 "cookies/canonical_cookie.cc",
604 "cookies/canonical_cookie.h", 614 "cookies/canonical_cookie.h",
(...skipping 1120 matching lines...) Expand 10 before | Expand all | Expand 10 after
1725 } 1735 }
1726 1736
1727 if (!enable_built_in_dns) { 1737 if (!enable_built_in_dns) {
1728 sources -= [ 1738 sources -= [
1729 "dns/address_sorter_posix.cc", 1739 "dns/address_sorter_posix.cc",
1730 "dns/address_sorter_posix.h", 1740 "dns/address_sorter_posix.h",
1731 "dns/dns_client.cc", 1741 "dns/dns_client.cc",
1732 ] 1742 ]
1733 } 1743 }
1734 1744
1745 if (use_byte_certs) {
1746 if (is_ios) {
1747 sources -= [ "cert/x509_certificate_ios.cc" ]
1748 }
1749 if (is_mac) {
1750 sources -= [ "cert/x509_certificate_mac.cc" ]
1751 }
1752 if (use_nss_certs) {
1753 sources -= [ "cert/x509_certificate_nss.cc" ]
1754 }
1755 if (use_openssl_certs) {
1756 sources -= [ "cert/x509_certificate_openssl.cc" ]
1757 }
1758 if (is_win) {
1759 sources -= [ "cert/x509_certificate_win.cc" ]
1760 }
1761 } else {
1762 sources -= [ "cert/x509_certificate_bytes.cc" ]
1763 }
1764
1735 if (!use_openssl_certs) { 1765 if (!use_openssl_certs) {
1736 sources -= [ 1766 sources -= [
1737 "cert/cert_database_openssl.cc", 1767 "cert/cert_database_openssl.cc",
1738 "cert/cert_verify_proc_openssl.cc", 1768 "cert/cert_verify_proc_openssl.cc",
1739 "cert/cert_verify_proc_openssl.h", 1769 "cert/cert_verify_proc_openssl.h",
1740 "cert/test_root_certs_openssl.cc", 1770 "cert/test_root_certs_openssl.cc",
1741 "cert/x509_certificate_openssl.cc", 1771 "cert/x509_certificate_openssl.cc",
1742 "ssl/openssl_client_key_store.cc", 1772 "ssl/openssl_client_key_store.cc",
1743 "ssl/openssl_client_key_store.h", 1773 "ssl/openssl_client_key_store.h",
1744 ] 1774 ]
(...skipping 3993 matching lines...) Expand 10 before | Expand all | Expand 10 after
5738 ] 5768 ]
5739 deps = [ 5769 deps = [
5740 ":net_fuzzer_test_support", 5770 ":net_fuzzer_test_support",
5741 ":test_support", 5771 ":test_support",
5742 "//base", 5772 "//base",
5743 "//net", 5773 "//net",
5744 ] 5774 ]
5745 dict = "data/fuzzer_dictionaries/net_spdy_session_fuzzer.dict" 5775 dict = "data/fuzzer_dictionaries/net_spdy_session_fuzzer.dict"
5746 seed_corpus = "data/fuzzer_data/net_spdy_session_fuzzer/" 5776 seed_corpus = "data/fuzzer_data/net_spdy_session_fuzzer/"
5747 } 5777 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/ssl_client_certificate_selector_cocoa.mm ('k') | net/cert/cert_verify_proc_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698