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

Unified Diff: net/BUILD.gn

Issue 2746103003: Add X509CertificateBytes which uses CRYPTO_BUFFER instead of macOS-native certificate types. (Closed)
Patch Set: . Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: net/BUILD.gn
diff --git a/net/BUILD.gn b/net/BUILD.gn
index f8a9a4cdce9c110ea5d4972f4ebc9f15b11a46ac..ed45d9e75d7e73e3a13bea823643cdf0c7edb0b7 100644
--- a/net/BUILD.gn
+++ b/net/BUILD.gn
@@ -583,6 +583,7 @@ component("net") {
"cert/test_root_certs_win.cc",
"cert/x509_cert_types_mac.cc",
"cert/x509_cert_types_win.cc",
+ "cert/x509_certificate_bytes.cc",
"cert/x509_certificate_ios.cc",
"cert/x509_certificate_known_roots_win.h",
"cert/x509_certificate_mac.cc",
@@ -590,6 +591,8 @@ component("net") {
"cert/x509_certificate_win.cc",
"cert/x509_util_android.cc",
"cert/x509_util_android.h",
+ "cert/x509_util_ios.cc",
+ "cert/x509_util_ios.h",
"cert/x509_util_mac.cc",
"cert/x509_util_mac.h",
"cert/x509_util_nss.cc",
@@ -1705,6 +1708,26 @@ component("net") {
]
}
+ if (use_byte_certs) {
+ if (is_ios) {
+ sources -= [ "cert/x509_certificate_ios.cc" ]
+ }
+ if (is_mac) {
+ sources -= [ "cert/x509_certificate_mac.cc" ]
+ }
+ if (use_nss_certs) {
+ sources -= [ "cert/x509_certificate_nss.cc" ]
+ }
+ if (use_openssl_certs) {
+ sources -= [ "cert/x509_certificate_openssl.cc" ]
+ }
+ if (is_win) {
+ sources -= [ "cert/x509_certificate_win.cc" ]
+ }
+ } else {
+ sources -= [ "cert/x509_certificate_bytes.cc" ]
+ }
+
if (!use_openssl_certs) {
sources -= [
"cert/cert_database_openssl.cc",

Powered by Google App Engine
This is Rietveld 408576698