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

Side by Side Diff: crypto/crypto.gyp

Issue 15793005: Per discussion, implement the Omaha Client Update Protocol (CUP) in src/crypto. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | crypto/cup.h » ('j') | crypto/cup.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 { 5 {
6 'variables': { 6 'variables': {
7 'chromium_code': 1, 7 'chromium_code': 1,
8 # Put all transitive dependencies for Windows HMAC here. 8 # Put all transitive dependencies for Windows HMAC here.
9 # This is required so that we can build them for nacl win64. 9 # This is required so that we can build them for nacl win64.
10 'hmac_win64_related_sources': [ 10 'hmac_win64_related_sources': [
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 ], 44 ],
45 'conditions': [ 45 'conditions': [
46 [ 'chromeos==1', { 46 [ 'chromeos==1', {
47 'sources/': [ ['include', '_chromeos\\.cc$'] ] 47 'sources/': [ ['include', '_chromeos\\.cc$'] ]
48 }, 48 },
49 ], 49 ],
50 ], 50 ],
51 }, { # os_posix != 1 or OS == "mac" or OS == "ios" or OS == "android" 51 }, { # os_posix != 1 or OS == "mac" or OS == "ios" or OS == "android"
52 'sources/': [ 52 'sources/': [
53 ['exclude', '_nss\.cc$'], 53 ['exclude', '_nss\.cc$'],
54 ['include', 'cup_nss\.cc$'],
54 ['include', 'ec_private_key_nss\.cc$'], 55 ['include', 'ec_private_key_nss\.cc$'],
55 ['include', 'ec_signature_creator_nss\.cc$'], 56 ['include', 'ec_signature_creator_nss\.cc$'],
56 ['include', 'encryptor_nss\.cc$'], 57 ['include', 'encryptor_nss\.cc$'],
57 ['include', 'hmac_nss\.cc$'], 58 ['include', 'hmac_nss\.cc$'],
58 ['include', 'signature_verifier_nss\.cc$'], 59 ['include', 'signature_verifier_nss\.cc$'],
59 ['include', 'symmetric_key_nss\.cc$'], 60 ['include', 'symmetric_key_nss\.cc$'],
60 ], 61 ],
61 'sources!': [ 62 'sources!': [
62 'hmac_win.cc', 63 'hmac_win.cc',
63 'openpgp_symmetric_encryption.cc', 64 'openpgp_symmetric_encryption.cc',
64 'openpgp_symmetric_encryption.h', 65 'openpgp_symmetric_encryption.h',
65 'symmetric_key_win.cc', 66 'symmetric_key_win.cc',
66 ], 67 ],
67 }], 68 }],
68 [ 'OS != "mac" and OS != "ios"', { 69 [ 'OS != "mac" and OS != "ios"', {
69 'sources!': [ 70 'sources!': [
70 'apple_keychain.h', 71 'apple_keychain.h',
71 'mock_apple_keychain.cc', 72 'mock_apple_keychain.cc',
72 'mock_apple_keychain.h', 73 'mock_apple_keychain.h',
73 ], 74 ],
74 }], 75 }],
75 [ 'OS == "android"', { 76 [ 'OS == "android"', {
76 'dependencies': [ 77 'dependencies': [
77 '../third_party/openssl/openssl.gyp:openssl', 78 '../third_party/openssl/openssl.gyp:openssl',
78 ], 79 ],
79 'sources/': [ 80 'sources/': [
81 ['exclude', 'cup_nss\.cc$'],
80 ['exclude', 'ec_private_key_nss\.cc$'], 82 ['exclude', 'ec_private_key_nss\.cc$'],
81 ['exclude', 'ec_signature_creator_nss\.cc$'], 83 ['exclude', 'ec_signature_creator_nss\.cc$'],
82 ['exclude', 'encryptor_nss\.cc$'], 84 ['exclude', 'encryptor_nss\.cc$'],
83 ['exclude', 'hmac_nss\.cc$'], 85 ['exclude', 'hmac_nss\.cc$'],
84 ['exclude', 'signature_verifier_nss\.cc$'], 86 ['exclude', 'signature_verifier_nss\.cc$'],
85 ['exclude', 'symmetric_key_nss\.cc$'], 87 ['exclude', 'symmetric_key_nss\.cc$'],
86 ], 88 ],
87 }], 89 }],
88 [ 'os_bsd==1', { 90 [ 'os_bsd==1', {
89 'link_settings': { 91 'link_settings': {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 ], 132 ],
131 }], 133 }],
132 [ 'OS == "win"', { 134 [ 'OS == "win"', {
133 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 135 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
134 'msvs_disabled_warnings': [4267, ], 136 'msvs_disabled_warnings': [4267, ],
135 }], 137 }],
136 [ 'use_openssl==1', { 138 [ 'use_openssl==1', {
137 # TODO(joth): Use a glob to match exclude patterns once the 139 # TODO(joth): Use a glob to match exclude patterns once the
138 # OpenSSL file set is complete. 140 # OpenSSL file set is complete.
139 'sources!': [ 141 'sources!': [
142 'cup_nss.cc',
140 'ec_private_key_nss.cc', 143 'ec_private_key_nss.cc',
141 'ec_signature_creator_nss.cc', 144 'ec_signature_creator_nss.cc',
142 'encryptor_nss.cc', 145 'encryptor_nss.cc',
143 'hmac_nss.cc', 146 'hmac_nss.cc',
144 'nss_util.cc', 147 'nss_util.cc',
145 'nss_util.h', 148 'nss_util.h',
146 'openpgp_symmetric_encryption.cc', 149 'openpgp_symmetric_encryption.cc',
147 'rsa_private_key_nss.cc', 150 'rsa_private_key_nss.cc',
148 'secure_hash_default.cc', 151 'secure_hash_default.cc',
149 'signature_creator_nss.cc', 152 'signature_creator_nss.cc',
150 'signature_verifier_nss.cc', 153 'signature_verifier_nss.cc',
151 'symmetric_key_nss.cc', 154 'symmetric_key_nss.cc',
152 'third_party/nss/chromium-blapi.h', 155 'third_party/nss/chromium-blapi.h',
153 'third_party/nss/chromium-blapit.h', 156 'third_party/nss/chromium-blapit.h',
154 'third_party/nss/chromium-nss.h', 157 'third_party/nss/chromium-nss.h',
155 'third_party/nss/chromium-sha256.h', 158 'third_party/nss/chromium-sha256.h',
156 'third_party/nss/pk11akey.cc', 159 'third_party/nss/pk11akey.cc',
157 'third_party/nss/secsign.cc', 160 'third_party/nss/secsign.cc',
158 'third_party/nss/sha512.cc', 161 'third_party/nss/sha512.cc',
159 ], 162 ],
160 }, { 163 }, {
161 'sources!': [ 164 'sources!': [
165 'cup_openssl.cc',
162 'ec_private_key_openssl.cc', 166 'ec_private_key_openssl.cc',
163 'ec_signature_creator_openssl.cc', 167 'ec_signature_creator_openssl.cc',
164 'encryptor_openssl.cc', 168 'encryptor_openssl.cc',
165 'hmac_openssl.cc', 169 'hmac_openssl.cc',
166 'openssl_util.cc', 170 'openssl_util.cc',
167 'openssl_util.h', 171 'openssl_util.h',
168 'rsa_private_key_openssl.cc', 172 'rsa_private_key_openssl.cc',
169 'secure_hash_openssl.cc', 173 'secure_hash_openssl.cc',
170 'signature_creator_openssl.cc', 174 'signature_creator_openssl.cc',
171 'signature_verifier_openssl.cc', 175 'signature_verifier_openssl.cc',
172 'symmetric_key_openssl.cc', 176 'symmetric_key_openssl.cc',
173 ], 177 ],
174 },], 178 },],
175 ], 179 ],
176 'sources': [ 180 'sources': [
177 # NOTE: all transitive dependencies of HMAC on windows need 181 # NOTE: all transitive dependencies of HMAC on windows need
178 # to be placed in the source list above. 182 # to be placed in the source list above.
179 '<@(hmac_win64_related_sources)', 183 '<@(hmac_win64_related_sources)',
180 'apple_keychain.h', 184 'apple_keychain.h',
181 'apple_keychain_ios.mm', 185 'apple_keychain_ios.mm',
182 'apple_keychain_mac.mm', 186 'apple_keychain_mac.mm',
183 'capi_util.cc', 187 'capi_util.cc',
184 'capi_util.h', 188 'capi_util.h',
185 'crypto_export.h', 189 'crypto_export.h',
186 'crypto_module_blocking_password_delegate.h', 190 'crypto_module_blocking_password_delegate.h',
187 'cssm_init.cc', 191 'cssm_init.cc',
188 'cssm_init.h', 192 'cssm_init.h',
193 'cup.cc',
194 'cup.h',
195 'cup_nss.cc',
196 'cup_openssl.cc',
189 'curve25519.cc', 197 'curve25519.cc',
190 'curve25519.h', 198 'curve25519.h',
191 'curve25519-donna.c', 199 'curve25519-donna.c',
192 'ghash.cc', 200 'ghash.cc',
193 'ghash.h', 201 'ghash.h',
194 'ec_private_key.h', 202 'ec_private_key.h',
195 'ec_private_key_nss.cc', 203 'ec_private_key_nss.cc',
196 'ec_private_key_openssl.cc', 204 'ec_private_key_openssl.cc',
197 'ec_signature_creator.cc', 205 'ec_signature_creator.cc',
198 'ec_signature_creator.h', 206 'ec_signature_creator.h',
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 ], 266 ],
259 }, 267 },
260 { 268 {
261 'target_name': 'crypto_unittests', 269 'target_name': 'crypto_unittests',
262 'type': 'executable', 270 'type': 'executable',
263 'sources': [ 271 'sources': [
264 # Infrastructure files. 272 # Infrastructure files.
265 'run_all_unittests.cc', 273 'run_all_unittests.cc',
266 274
267 # Tests. 275 # Tests.
276 'cup_unittest.cc',
268 'curve25519_unittest.cc', 277 'curve25519_unittest.cc',
269 'ec_private_key_unittest.cc', 278 'ec_private_key_unittest.cc',
270 'ec_signature_creator_unittest.cc', 279 'ec_signature_creator_unittest.cc',
271 'encryptor_unittest.cc', 280 'encryptor_unittest.cc',
272 'ghash_unittest.cc', 281 'ghash_unittest.cc',
273 'hkdf_unittest.cc', 282 'hkdf_unittest.cc',
274 'hmac_unittest.cc', 283 'hmac_unittest.cc',
275 'nss_util_unittest.cc', 284 'nss_util_unittest.cc',
276 'p224_unittest.cc', 285 'p224_unittest.cc',
277 'p224_spake_unittest.cc', 286 'p224_spake_unittest.cc',
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 'configurations': { 379 'configurations': {
371 'Common_Base': { 380 'Common_Base': {
372 'msvs_target_platform': 'x64', 381 'msvs_target_platform': 'x64',
373 }, 382 },
374 }, 383 },
375 }, 384 },
376 ], 385 ],
377 }], 386 }],
378 ], 387 ],
379 } 388 }
OLDNEW
« no previous file with comments | « no previous file | crypto/cup.h » ('j') | crypto/cup.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698