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/config/crypto.gni") | 5 import("//build/config/crypto.gni") |
6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
7 | 7 |
8 component("crypto") { | 8 component("crypto") { |
9 output_name = "crcrypto" # Avoid colliding with OpenSSL's libcrypto. | 9 output_name = "crcrypto" # Avoid colliding with OpenSSL's libcrypto. |
10 sources = [ | 10 sources = [ |
| 11 "aead_openssl.cc", |
| 12 "aead_openssl.h", |
11 "apple_keychain.h", | 13 "apple_keychain.h", |
12 "apple_keychain_ios.mm", | 14 "apple_keychain_ios.mm", |
13 "apple_keychain_mac.mm", | 15 "apple_keychain_mac.mm", |
14 "capi_util.cc", | 16 "capi_util.cc", |
15 "capi_util.h", | 17 "capi_util.h", |
16 "crypto_export.h", | 18 "crypto_export.h", |
17 "cssm_init.cc", | 19 "cssm_init.cc", |
18 "cssm_init.h", | 20 "cssm_init.h", |
19 "curve25519-donna.c", | 21 "curve25519-donna.c", |
20 "curve25519.cc", | 22 "curve25519.cc", |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 "third_party/nss/chromium-blapi.h", | 146 "third_party/nss/chromium-blapi.h", |
145 "third_party/nss/chromium-blapit.h", | 147 "third_party/nss/chromium-blapit.h", |
146 "third_party/nss/chromium-nss.h", | 148 "third_party/nss/chromium-nss.h", |
147 "third_party/nss/pk11akey.cc", | 149 "third_party/nss/pk11akey.cc", |
148 "third_party/nss/rsawrapr.c", | 150 "third_party/nss/rsawrapr.c", |
149 "third_party/nss/secsign.cc", | 151 "third_party/nss/secsign.cc", |
150 ] | 152 ] |
151 } else { | 153 } else { |
152 # Remove OpenSSL when using NSS. | 154 # Remove OpenSSL when using NSS. |
153 sources -= [ | 155 sources -= [ |
| 156 "aead_openssl.cc", |
| 157 "aead_openssl.h", |
154 "ec_private_key_openssl.cc", | 158 "ec_private_key_openssl.cc", |
155 "ec_signature_creator_openssl.cc", | 159 "ec_signature_creator_openssl.cc", |
156 "encryptor_openssl.cc", | 160 "encryptor_openssl.cc", |
157 "hmac_openssl.cc", | 161 "hmac_openssl.cc", |
158 "openssl_bio_string.cc", | 162 "openssl_bio_string.cc", |
159 "openssl_bio_string.h", | 163 "openssl_bio_string.h", |
160 "openssl_util.cc", | 164 "openssl_util.cc", |
161 "openssl_util.h", | 165 "openssl_util.h", |
162 "rsa_private_key_openssl.cc", | 166 "rsa_private_key_openssl.cc", |
163 "secure_hash_openssl.cc", | 167 "secure_hash_openssl.cc", |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 public_configs += [ "//third_party/nss:system_nss_no_ssl_config" ] | 340 public_configs += [ "//third_party/nss:system_nss_no_ssl_config" ] |
337 } else { | 341 } else { |
338 # Non-Linux platforms use the hermetic NSS from the tree. | 342 # Non-Linux platforms use the hermetic NSS from the tree. |
339 deps += [ | 343 deps += [ |
340 "//third_party/nss:nspr", | 344 "//third_party/nss:nspr", |
341 "//third_party/nss:nss", | 345 "//third_party/nss:nss", |
342 ] | 346 ] |
343 } | 347 } |
344 } | 348 } |
345 } | 349 } |
OLD | NEW |