1# Copyright (c) 2020-2022 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14import("//build/ohos_var.gni") 15declare_args() { 16 if (defined(is_double_framework) && is_double_framework) { 17 compatible_with_legacy_build_system = true 18 } else { 19 compatible_with_legacy_build_system = false 20 } 21 if (defined(ohos_kernel_type) && ohos_kernel_type == "liteos_a") { 22 print( 23 "liteos_a doesn't support OPENSSL_cpuid_setup and liblegacy, disable them.") 24 25 # Enabling legacy on liteos_a will result in the following compilation error. 26 # [OHOS ERROR] [4756/5343] clang obj/third_party/openssl/engines/crypto_source.e_afalg.o 27 # [OHOS ERROR] FAILED: obj/third_party/openssl/engines/crypto_source.e_afalg.o 28 # [OHOS ERROR] ccache /home/user/openharmony/master/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang -D_XOPEN_SOURCE=700 -DOHOS_DEBUG -D__LITEOS__ -D__LITEOS_A__ -Oz -flto -mfloat-abi=softfp -mfpu=neon-vfpv4 -mfloat-abi=softfp -mfpu=neon-vfpv4 -mcpu=cortex-a7 -fno-common -fno-builtin -fno-strict-aliasing -Wall -fsigned-char -mno-unaligned-access -fno-omit-frame-pointer -fstack-protector-all -Wa,--noexecstack -DNDEBUG -DOPENSSL_BUILDING_OPENSSL -DOPENSSL_CPUID_OBJ -DOPENSSL_PIC -DENGINESDIR=\"\" -DMODULESDIR=\"\" -DOPENSSLDIR=\"/system/etc\" -DSTATIC_LEGACY -DOPENSSL_USE_NODELETE -fPIC -pthread -DAES_ASM -DBSAES_ASM -DECP_NISTZ256_ASM -DGHASH_ASM -DKECCAK1600_ASM -DOPENSSL_BN_ASM_GF2m -DOPENSSL_BN_ASM_MONT -DPOLY1305_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -Wall -Wno-error=int-conversion -Wno-error=constant-conversion -Wno-error=shift-count-overflow -Wno-error=macro-redefined -Wno-error=implicit-fallthrough -Wno-error=sign-compare -Wno-unused-but-set-variable --target=arm-liteos-ohos --sysroot=/home/user/openharmony/master/out/arm_virt/qemu_small_system_demo/sysroot -std=c99 -I../../../third_party/openssl -I../../../third_party/openssl/crypto -I../../../third_party/openssl/include -I../../../third_party/openssl/providers/common/include -I../../../third_party/openssl/providers/implementations/include -I../../../third_party/openssl/apps/include -I../../../third_party/openssl/crypto/bn -I../../../third_party/openssl/crypto/ec -I../../../third_party/openssl/crypto/ec/curve448 -I../../../third_party/openssl/crypto/modes -I../../../third_party/openssl/crypto/rsa -I../../../third_party/openssl/providers/common/include/prov -Iobj/third_party/openssl/build_all_generated/linux-armv4/apps -Iobj/third_party/openssl/build_all_generated/linux-armv4/crypto -Iobj/third_party/openssl/build_all_generated/linux-armv4/include -Iobj/third_party/openssl/build_all_generated/linux-armv4/include/crypto -Iobj/third_party/openssl/build_all_generated/linux-armv4/include/openssl -Iobj/third_party/openssl/build_all_generated/linux-armv4/providers/common/include -Iobj/third_party/openssl/build_all_generated/linux-armv4/providers/common/include/prov -c ../../../third_party/openssl/engines/e_afalg.c -o obj/third_party/openssl/engines/crypto_source.e_afalg.o 29 # [OHOS ERROR] ../../../third_party/openssl/engines/e_afalg.c:27:10: fatal error: 'linux/version.h' file not found 30 # [OHOS ERROR] #include <linux/version.h> 31 # [OHOS ERROR] ^~~~~~~~~~~~~~~~~ 32 # [OHOS ERROR] 1 error generated. 33 34 # see OPENSSL_cpuid_setup in crypto/armcap.c 35 build_with_liblegacy = false 36 } else { 37 build_with_liblegacy = true 38 } 39 openssl_enabled = true 40} 41 42if (!compatible_with_legacy_build_system) { 43 import("//build/config/config.gni") 44} 45import("//build/ohos.gni") 46 47print("openssl detecting os now...") 48print("current_cpu = ${current_cpu}") 49print("current_os = ${current_os}") 50print("host_os = ${host_os}") 51openssl_selected_platform = "" 52print("is_mingw = ${is_mingw}") 53if (current_cpu == "arm" && !(current_os == "linux" || host_os == "mac")) { 54 print("openssl selected linux-armv4") 55 openssl_selected_platform = "linux-armv4" 56} else if (current_cpu == "arm64" && 57 (!(current_os == "linux" || host_os == "mac") || 58 current_os == "ohos" || 59 (current_os == "linux" || host_os == "linux"))) { 60 print("openssl selected linux-aarch64") 61 openssl_selected_platform = "linux-aarch64" 62} else if ((current_cpu == "x64" || current_cpu == "x86_64") && 63 (current_os == "mac" || current_os == "ios")) { 64 # compilation for ios depends the platform 65 print("openssl selected darwin64-x86_64-cc") 66 openssl_selected_platform = "darwin64-x86_64-cc" 67} else if (current_cpu == "arm64" && 68 (current_os == "mac" || current_os == "ios")) { 69 # ios and macos both use the platform 70 print("openssl selected darwin64-arm64-cc") 71 openssl_selected_platform = "darwin64-arm64-cc" 72} else if ((current_cpu == "x64" || current_cpu == "x86_64") && 73 current_os != "mingw") { 74 print("openssl selected linux-x86_64") 75 openssl_selected_platform = "linux-x86_64" 76} else if (is_mingw) { 77 print("openssl selected mingw64") 78 openssl_selected_platform = "mingw64" 79} else if (current_cpu == "arm" && current_os == "android") { 80 print("openssl selected linux-armv4") 81 openssl_selected_platform = "linux-armv4" 82} else if (current_cpu == "arm64" && current_os == "android") { 83 print("openssl selected linux-aarch64") 84 openssl_selected_platform = "linux-aarch64" 85} else if (current_cpu == "loongarch64" && current_os == "ohos") { 86 print("openssl selected linux64-loongarch64") 87 openssl_selected_platform = "linux64-loongarch64" 88} 89print( 90 "openssl detecting os done. openssl_selected_platform = ${openssl_selected_platform}") 91 92build_all_generated_path = "${target_out_dir}/build_all_generated" 93 94# 升级修改适配检查点1 libcrypto 不同平台汇编代码 95libcrypto_build_all_generated_linux_armv4_sources = [ 96 "${build_all_generated_path}/crypto/aes/aes-armv4.S", 97 "${build_all_generated_path}/crypto/aes/aesv8-armx.S", 98 "${build_all_generated_path}/crypto/aes/bsaes-armv7.S", 99 "${build_all_generated_path}/crypto/armv4cpuid.S", 100 "${build_all_generated_path}/crypto/bn/armv4-gf2m.S", 101 "${build_all_generated_path}/crypto/bn/armv4-mont.S", 102 "${build_all_generated_path}/crypto/chacha/chacha-armv4.S", 103 "${build_all_generated_path}/crypto/ec/ecp_nistz256-armv4.S", 104 "${build_all_generated_path}/crypto/modes/ghash-armv4.S", 105 "${build_all_generated_path}/crypto/modes/ghashv8-armx.S", 106 "${build_all_generated_path}/crypto/poly1305/poly1305-armv4.S", 107 "${build_all_generated_path}/crypto/sha/keccak1600-armv4.S", 108 "${build_all_generated_path}/crypto/sha/sha1-armv4-large.S", 109 "${build_all_generated_path}/crypto/sha/sha256-armv4.S", 110 "${build_all_generated_path}/crypto/sha/sha512-armv4.S", 111] 112 113# 升级修改适配检查点2 libcrypto 不同平台汇编代码 114libcrypto_build_all_generated_linux_aarch64_sources = [ 115 "${build_all_generated_path}/crypto/aes/aesv8-armx.S", 116 "${build_all_generated_path}/crypto/aes/vpaes-armv8.S", 117 "${build_all_generated_path}/crypto/arm64cpuid.S", 118 "${build_all_generated_path}/crypto/bn/armv8-mont.S", 119 "${build_all_generated_path}/crypto/chacha/chacha-armv8.S", 120 "${build_all_generated_path}/crypto/ec/ecp_nistz256-armv8.S", 121 "${build_all_generated_path}/crypto/modes/aes-gcm-armv8_64.S", 122 "${build_all_generated_path}/crypto/modes/ghashv8-armx.S", 123 "${build_all_generated_path}/crypto/poly1305/poly1305-armv8.S", 124 "${build_all_generated_path}/crypto/sha/keccak1600-armv8.S", 125 "${build_all_generated_path}/crypto/sha/sha1-armv8.S", 126 "${build_all_generated_path}/crypto/sha/sha256-armv8.S", 127 "${build_all_generated_path}/crypto/sha/sha512-armv8.S", 128] 129 130# 升级修改适配检查点3 libcrypto 不同平台汇编代码 131libcrypto_build_all_generated_darwin64_x86_64_cc_sources = [ 132 "${build_all_generated_path}/crypto/aes/aes-x86_64.s", 133 "${build_all_generated_path}/crypto/aes/aesni-mb-x86_64.s", 134 "${build_all_generated_path}/crypto/aes/aesni-sha1-x86_64.s", 135 "${build_all_generated_path}/crypto/aes/aesni-sha256-x86_64.s", 136 "${build_all_generated_path}/crypto/aes/aesni-x86_64.s", 137 "${build_all_generated_path}/crypto/aes/bsaes-x86_64.s", 138 "${build_all_generated_path}/crypto/aes/vpaes-x86_64.s", 139 "${build_all_generated_path}/crypto/bn/rsaz-avx2.s", 140 "${build_all_generated_path}/crypto/bn/rsaz-avx512.s", 141 "${build_all_generated_path}/crypto/bn/rsaz-x86_64.s", 142 "${build_all_generated_path}/crypto/bn/x86_64-gf2m.s", 143 "${build_all_generated_path}/crypto/bn/x86_64-mont.s", 144 "${build_all_generated_path}/crypto/bn/x86_64-mont5.s", 145 "${build_all_generated_path}/crypto/camellia/cmll-x86_64.s", 146 "${build_all_generated_path}/crypto/chacha/chacha-x86_64.s", 147 "${build_all_generated_path}/crypto/ec/ecp_nistz256-x86_64.s", 148 "${build_all_generated_path}/crypto/ec/x25519-x86_64.s", 149 "${build_all_generated_path}/crypto/md5/md5-x86_64.s", 150 "${build_all_generated_path}/crypto/modes/aesni-gcm-x86_64.s", 151 "${build_all_generated_path}/crypto/modes/ghash-x86_64.s", 152 "${build_all_generated_path}/crypto/poly1305/poly1305-x86_64.s", 153 "${build_all_generated_path}/crypto/rc4/rc4-md5-x86_64.s", 154 "${build_all_generated_path}/crypto/rc4/rc4-x86_64.s", 155 "${build_all_generated_path}/crypto/sha/keccak1600-x86_64.s", 156 "${build_all_generated_path}/crypto/sha/sha1-mb-x86_64.s", 157 "${build_all_generated_path}/crypto/sha/sha1-x86_64.s", 158 "${build_all_generated_path}/crypto/sha/sha256-mb-x86_64.s", 159 "${build_all_generated_path}/crypto/sha/sha256-x86_64.s", 160 "${build_all_generated_path}/crypto/sha/sha512-x86_64.s", 161 "${build_all_generated_path}/crypto/whrlpool/wp-x86_64.s", 162 "${build_all_generated_path}/crypto/x86_64cpuid.s", 163] 164if (build_with_liblegacy) { 165 libcrypto_build_all_generated_darwin64_x86_64_cc_sources += 166 [ "${build_all_generated_path}/engines/e_padlock-x86_64.s" ] 167} 168 169# 升级修改适配检查点4 libcrypto 不同平台汇编代码 170libcrypto_build_all_generated_darwin64_arm64_cc_sources = [ 171 "${build_all_generated_path}/crypto/aes/aesv8-armx.S", 172 "${build_all_generated_path}/crypto/aes/vpaes-armv8.S", 173 "${build_all_generated_path}/crypto/arm64cpuid.S", 174 "${build_all_generated_path}/crypto/bn/armv8-mont.S", 175 "${build_all_generated_path}/crypto/chacha/chacha-armv8.S", 176 "${build_all_generated_path}/crypto/ec/ecp_nistz256-armv8.S", 177 "${build_all_generated_path}/crypto/modes/aes-gcm-armv8_64.S", 178 "${build_all_generated_path}/crypto/modes/ghashv8-armx.S", 179 "${build_all_generated_path}/crypto/poly1305/poly1305-armv8.S", 180 "${build_all_generated_path}/crypto/sha/keccak1600-armv8.S", 181 "${build_all_generated_path}/crypto/sha/sha1-armv8.S", 182 "${build_all_generated_path}/crypto/sha/sha256-armv8.S", 183 "${build_all_generated_path}/crypto/sha/sha512-armv8.S", 184] 185 186# 升级修改适配检查点5 libcrypto 不同平台汇编代码 187libcrypto_build_all_generated_linux_x86_64_sources = [ 188 "${build_all_generated_path}/crypto/aes/aes-x86_64.s", 189 "${build_all_generated_path}/crypto/aes/aesni-mb-x86_64.s", 190 "${build_all_generated_path}/crypto/aes/aesni-sha1-x86_64.s", 191 "${build_all_generated_path}/crypto/aes/aesni-sha256-x86_64.s", 192 "${build_all_generated_path}/crypto/aes/aesni-x86_64.s", 193 "${build_all_generated_path}/crypto/aes/bsaes-x86_64.s", 194 "${build_all_generated_path}/crypto/aes/vpaes-x86_64.s", 195 "${build_all_generated_path}/crypto/bn/rsaz-avx2.s", 196 "${build_all_generated_path}/crypto/bn/rsaz-avx512.s", 197 "${build_all_generated_path}/crypto/bn/rsaz-x86_64.s", 198 "${build_all_generated_path}/crypto/bn/x86_64-gf2m.s", 199 "${build_all_generated_path}/crypto/bn/x86_64-mont.s", 200 "${build_all_generated_path}/crypto/bn/x86_64-mont5.s", 201 "${build_all_generated_path}/crypto/camellia/cmll-x86_64.s", 202 "${build_all_generated_path}/crypto/chacha/chacha-x86_64.s", 203 "${build_all_generated_path}/crypto/ec/ecp_nistz256-x86_64.s", 204 "${build_all_generated_path}/crypto/ec/x25519-x86_64.s", 205 "${build_all_generated_path}/crypto/md5/md5-x86_64.s", 206 "${build_all_generated_path}/crypto/modes/aesni-gcm-x86_64.s", 207 "${build_all_generated_path}/crypto/modes/ghash-x86_64.s", 208 "${build_all_generated_path}/crypto/poly1305/poly1305-x86_64.s", 209 "${build_all_generated_path}/crypto/rc4/rc4-md5-x86_64.s", 210 "${build_all_generated_path}/crypto/rc4/rc4-x86_64.s", 211 "${build_all_generated_path}/crypto/sha/keccak1600-x86_64.s", 212 "${build_all_generated_path}/crypto/sha/sha1-mb-x86_64.s", 213 "${build_all_generated_path}/crypto/sha/sha1-x86_64.s", 214 "${build_all_generated_path}/crypto/sha/sha256-mb-x86_64.s", 215 "${build_all_generated_path}/crypto/sha/sha256-x86_64.s", 216 "${build_all_generated_path}/crypto/sha/sha512-x86_64.s", 217 "${build_all_generated_path}/crypto/whrlpool/wp-x86_64.s", 218 "${build_all_generated_path}/crypto/x86_64cpuid.s", 219] 220if (build_with_liblegacy) { 221 libcrypto_build_all_generated_linux_x86_64_sources += 222 [ "${build_all_generated_path}/engines/e_padlock-x86_64.s" ] 223} 224 225# 升级修改适配检查点2 libcrypto 不同平台汇编代码 226libcrypto_build_all_generated_linux_loongarch64_sources = [ 227 "${build_all_generated_path}/crypto/loongarch64cpuid.s", 228 "${build_all_generated_path}/crypto/md5/md5-loongarch64.S", 229] 230 231# 升级修改适配检查点6 libcrypto 不同平台汇编代码 232libcrypto_build_all_generated_mingw64_sources = [ 233 "${build_all_generated_path}/crypto/aes/aes-x86_64.s", 234 "${build_all_generated_path}/crypto/aes/aesni-mb-x86_64.s", 235 "${build_all_generated_path}/crypto/aes/aesni-sha1-x86_64.s", 236 "${build_all_generated_path}/crypto/aes/aesni-sha256-x86_64.s", 237 "${build_all_generated_path}/crypto/aes/aesni-x86_64.s", 238 "${build_all_generated_path}/crypto/aes/bsaes-x86_64.s", 239 "${build_all_generated_path}/crypto/aes/vpaes-x86_64.s", 240 "${build_all_generated_path}/crypto/bn/rsaz-avx2.s", 241 "${build_all_generated_path}/crypto/bn/rsaz-avx512.s", 242 "${build_all_generated_path}/crypto/bn/rsaz-x86_64.s", 243 "${build_all_generated_path}/crypto/bn/x86_64-gf2m.s", 244 "${build_all_generated_path}/crypto/bn/x86_64-mont.s", 245 "${build_all_generated_path}/crypto/bn/x86_64-mont5.s", 246 "${build_all_generated_path}/crypto/camellia/cmll-x86_64.s", 247 "${build_all_generated_path}/crypto/chacha/chacha-x86_64.s", 248 "${build_all_generated_path}/crypto/ec/ecp_nistz256-x86_64.s", 249 "${build_all_generated_path}/crypto/ec/x25519-x86_64.s", 250 "${build_all_generated_path}/crypto/md5/md5-x86_64.s", 251 "${build_all_generated_path}/crypto/modes/aesni-gcm-x86_64.s", 252 "${build_all_generated_path}/crypto/modes/ghash-x86_64.s", 253 "${build_all_generated_path}/crypto/poly1305/poly1305-x86_64.s", 254 "${build_all_generated_path}/crypto/rc4/rc4-md5-x86_64.s", 255 "${build_all_generated_path}/crypto/rc4/rc4-x86_64.s", 256 "${build_all_generated_path}/crypto/sha/keccak1600-x86_64.s", 257 "${build_all_generated_path}/crypto/sha/sha1-mb-x86_64.s", 258 "${build_all_generated_path}/crypto/sha/sha1-x86_64.s", 259 "${build_all_generated_path}/crypto/sha/sha256-mb-x86_64.s", 260 "${build_all_generated_path}/crypto/sha/sha256-x86_64.s", 261 "${build_all_generated_path}/crypto/sha/sha512-x86_64.s", 262 "${build_all_generated_path}/crypto/whrlpool/wp-x86_64.s", 263 "${build_all_generated_path}/crypto/x86_64cpuid.s", 264] 265if (build_with_liblegacy) { 266 libcrypto_build_all_generated_mingw64_sources += 267 [ "${build_all_generated_path}/engines/e_padlock-x86_64.s" ] 268} 269 270libcrypto_build_all_generated_selected_platform_sources = [] 271if (openssl_selected_platform == "linux-armv4") { 272 libcrypto_build_all_generated_selected_platform_sources += 273 libcrypto_build_all_generated_linux_armv4_sources 274} else if (openssl_selected_platform == "linux-aarch64") { 275 libcrypto_build_all_generated_selected_platform_sources += 276 libcrypto_build_all_generated_linux_aarch64_sources 277} else if (openssl_selected_platform == "darwin64-x86_64-cc") { 278 libcrypto_build_all_generated_selected_platform_sources += 279 libcrypto_build_all_generated_darwin64_x86_64_cc_sources 280} else if (openssl_selected_platform == "darwin64-arm64-cc") { 281 libcrypto_build_all_generated_selected_platform_sources += 282 libcrypto_build_all_generated_darwin64_arm64_cc_sources 283} else if (openssl_selected_platform == "linux-x86_64") { 284 libcrypto_build_all_generated_selected_platform_sources += 285 libcrypto_build_all_generated_linux_x86_64_sources 286} else if (openssl_selected_platform == "mingw64") { 287 libcrypto_build_all_generated_selected_platform_sources += 288 libcrypto_build_all_generated_mingw64_sources 289} else if (openssl_selected_platform == "linux64-loongarch64") { 290 libcrypto_build_all_generated_selected_platform_sources += 291 libcrypto_build_all_generated_linux_loongarch64_sources 292} 293 294# 升级修改适配检查点7 libcommon 生成的源码列表 295libcommon_build_all_generated_selected_platform_sources = [ 296 "${build_all_generated_path}/providers/common/der/der_digests_gen.c", 297 "${build_all_generated_path}/providers/common/der/der_dsa_gen.c", 298 "${build_all_generated_path}/providers/common/der/der_ec_gen.c", 299 "${build_all_generated_path}/providers/common/der/der_ecx_gen.c", 300 "${build_all_generated_path}/providers/common/der/der_rsa_gen.c", 301 "${build_all_generated_path}/providers/common/der/der_wrap_gen.c", 302] 303 304# 升级修改适配检查点8 libdefault 生成的源码列表 305libdefault_build_all_generated_selected_platform_sources = 306 [ "${build_all_generated_path}/providers/common/der/der_sm2_gen.c" ] 307 308# We make use of both exec_script and action to build openssl build_all_generated items. 309# 310# Some modules use openssl in an incorrect way, leading to the confusing building sequences, 311# so the user modules building fail because openssl headers have not been generated at the building time. 312# The exec_script in the global area will be executed before ninja command, 313# and it ensures that the headers is generated properly before the building of any modules. 314# 315# Openssl generate some assembly codes before it is building. 316# The sources list in BUILD.gn include the assembly codes. 317# The gn build system requires that all items in sources list should be the output of another build item. 318# So we use an empty action to generate the assembly codes. 319# Actually we generate the assembly codes in exec_script, not in action. 320# 321# The gn build system requires the script in exec_script and action should be python script, 322# so we invoke the shell script in python script 323print(exec_script( 324 rebase_path("//third_party/openssl/run_command.py"), 325 [ 326 rebase_path( 327 "//third_party/openssl/make_openssl_build_all_generated.sh"), 328 rebase_path("//third_party/openssl"), 329 rebase_path("${build_all_generated_path}"), 330 openssl_selected_platform, 331 "${build_with_liblegacy}", 332 ], 333 "string", 334 [])) 335action("openssl_build_all_generated") { 336 script = rebase_path("//third_party/openssl/empty.py") 337 outputs = [] 338 outputs += libcommon_build_all_generated_selected_platform_sources 339 outputs += libdefault_build_all_generated_selected_platform_sources 340 outputs += libcrypto_build_all_generated_selected_platform_sources 341 outputs += [ "${build_all_generated_path}/apps/progs.c" ] 342 if (openssl_selected_platform == "mingw64") { 343 outputs += [ "${build_all_generated_path}/apps/openssl.rc" ] 344 } 345} 346 347openssl_internal_cflags = [ 348 "-Wall", 349 350 # ../../third_party/openssl/crypto/o_str.c:309:9: error: incompatible integer to pointer conversion assigning to 'char *' from 'int' [-Werror,-Wint-conversion] 351 # err = strerror_r(errnum, buf, buflen); 352 # ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 353 "-Wno-error=int-conversion", 354 355 # ../../third_party/openssl/crypto/bn/bn_conv.c:92:34: error: implicit conversion from 'unsigned long long' to 'unsigned long' changes value from 10000000000000000000 to 2313682944 [-Werror,-Wconstant-conversion] 356 # *lp = BN_div_word(t, BN_DEC_CONV); 357 # ~~~~~~~~~~~ ^~~~~~~~~~~ 358 "-Wno-error=constant-conversion", 359 360 # ../../third_party/openssl/crypto/bn/bn_exp.c:382:38: error: shift count >= width of type [-Werror,-Wshift-count-overflow] 361 # if (m->d[j - 1] & (((BN_ULONG)1) << (BN_BITS2 - 1))) { 362 # ^ ~~~~~~~~~~~~~~ 363 "-Wno-error=shift-count-overflow", 364 365 # ../../third_party/openssl/crypto/conf/conf_def.c:31:11: error: 'stat' macro redefined [-Werror,-Wmacro-redefined] 366 # # define stat _stat 367 # ^ 368 # ../../prebuilts/mingw-w64/ohos/linux-x86_64/clang-mingw/x86_64-w64-mingw32/include/sys/stat.h:279:9: note: previous definition is here 369 # #define stat _stat64 370 # ^ 371 # 1 error generated. 372 "-Wno-error=macro-redefined", 373 374 "-Wno-error=implicit-fallthrough", 375 "-Wno-error=sign-compare", 376] 377if (!compatible_with_legacy_build_system) { 378 openssl_internal_cflags += [ 379 # Fix llvm-15 build error 380 "-Wno-unused-but-set-variable", 381 ] 382} 383 384if (current_cpu == "loongarch64") { 385 openssl_internal_cflags -= [ 386 "-Wno-error=constant-conversion", 387 "-Wno-error=macro-redefined", 388 ] 389} 390 391# 升级修改适配检查点9 内部公共头文件目录列表 392crypto_config_common_private_include_dirs = [ 393 # -I args from Makefile 394 ".", 395 "crypto", 396 "include", 397 "providers/common/include", 398 "providers/implementations/include", 399 400 # internal include dirs 401 "apps/include", 402 "crypto/bn", 403 "crypto/ec", 404 "crypto/ec/curve448", 405 "crypto/modes", 406 "crypto/rsa", 407 "providers/common/include/prov", 408 409 "${build_all_generated_path}/apps", 410 "${build_all_generated_path}/crypto", 411 "${build_all_generated_path}/include", 412 "${build_all_generated_path}/include/crypto", 413 "${build_all_generated_path}/include/openssl", 414 "${build_all_generated_path}/providers/common/include", 415 "${build_all_generated_path}/providers/common/include/prov", 416] 417crypto_config_common_public_include_dirs = [ 418 "include", 419 "${build_all_generated_path}/include", 420] 421 422# located at /system/etc/ 423ohos_prebuilt_etc("openssl.cnf") { 424 source = "open_harmony_openssl_config/openssl.cnf" 425 if (compatible_with_legacy_build_system) { 426 subsystem_name = "security" 427 part_name = "huks" 428 } else { 429 subsystem_name = "thirdparty" 430 part_name = "openssl" 431 } 432} 433 434# 升级修改适配检查点10 内部公共编译选项宏列表 435crypto_config_common_cflags = [ 436 "-Wa,--noexecstack", 437 "-DNDEBUG", 438 "-DOPENSSL_BUILDING_OPENSSL", 439 "-DOPENSSL_CPUID_OBJ", 440 "-DOPENSSL_PIC", 441 442 # use `openssl version -a` cmd to see runtime OPENSSLDIR, ENGINESDIR, MODULESDIR value 443 444 # the origin value generated by Configure 445 # linux-armv4, linux-aarch64, darwin64-x86_64-cc, darwin64-arm64-cc 446 # /usr/local/lib/engines-3 447 # linux-x86_64, mingw64 448 # /usr/local/lib64/engines-3 449 "-DENGINESDIR=\"\"", 450 451 # the origin value generated by Configure 452 # linux-armv4, linux-aarch64, darwin64-x86_64-cc, darwin64-arm64-cc 453 # /usr/local/lib/ossl-modules 454 # linux-x86_64, mingw64 455 # /usr/local/lib64/ossl-modules 456 "-DMODULESDIR=\"\"", 457 458 # the origin value generated by Configure 459 # /usr/local/ssl 460 # we set the variable as the following to locate openssl.cnf 461 "-DOPENSSLDIR=\"/system/etc\"", 462] 463if (build_with_liblegacy) { 464 crypto_config_common_cflags += [ "-DSTATIC_LEGACY" ] 465} 466 467# 升级修改适配检查点11 内部不同平台编译选项列表 468crypto_config_linux_armv4_cflags = [ 469 "-DOPENSSL_USE_NODELETE", 470 "-fPIC", 471 "-pthread", 472 473 "-DAES_ASM", 474 "-DBSAES_ASM", 475 "-DECP_NISTZ256_ASM", 476 "-DGHASH_ASM", 477 "-DKECCAK1600_ASM", 478 "-DOPENSSL_BN_ASM_GF2m", 479 "-DOPENSSL_BN_ASM_MONT", 480 "-DPOLY1305_ASM", 481 "-DSHA1_ASM", 482 "-DSHA256_ASM", 483 "-DSHA512_ASM", 484] 485 486# 升级修改适配检查点12 内部不同平台编译选项列表 487crypto_config_linux_aarch64_cflags = [ 488 "-DOPENSSL_USE_NODELETE", 489 "-fPIC", 490 "-pthread", 491 492 "-DECP_NISTZ256_ASM", 493 "-DKECCAK1600_ASM", 494 "-DOPENSSL_BN_ASM_MONT", 495 "-DPOLY1305_ASM", 496 "-DSHA1_ASM", 497 "-DSHA256_ASM", 498 "-DSHA512_ASM", 499 "-DVPAES_ASM", 500] 501 502# 升级修改适配检查点13 内部不同平台编译选项列表 503crypto_config_darwin64_x86_64_cc_cflags = [ 504 "-fPIC", 505 "-DL_ENDIAN", 506 "-D_REENTRANT", 507 "-DOPENSSL_IA32_SSE2", 508 509 "-DAES_ASM", 510 "-DBSAES_ASM", 511 "-DCMLL_ASM", 512 "-DECP_NISTZ256_ASM", 513 "-DGHASH_ASM", 514 "-DKECCAK1600_ASM", 515 "-DMD5_ASM", 516 "-DOPENSSL_BN_ASM_GF2m", 517 "-DOPENSSL_BN_ASM_MONT", 518 "-DOPENSSL_BN_ASM_MONT5", 519 "-DPOLY1305_ASM", 520 "-DSHA1_ASM", 521 "-DSHA256_ASM", 522 "-DSHA512_ASM", 523 "-DVPAES_ASM", 524 "-DWHIRLPOOL_ASM", 525 "-DX25519_ASM", 526] 527if (build_with_liblegacy) { 528 crypto_config_darwin64_x86_64_cc_cflags += [ "-DPADLOCK_ASM" ] 529} 530 531# 升级修改适配检查点14 内部不同平台编译选项列表 532crypto_config_darwin64_arm64_cc_cflags = [ 533 "-DL_ENDIAN", 534 "-D_REENTRANT", 535 "-fPIC", 536 537 "-DECP_NISTZ256_ASM", 538 "-DKECCAK1600_ASM", 539 "-DOPENSSL_BN_ASM_MONT", 540 "-DPOLY1305_ASM", 541 "-DSHA1_ASM", 542 "-DSHA256_ASM", 543 "-DSHA512_ASM", 544 "-DVPAES_ASM", 545] 546 547# 升级修改适配检查点15 内部不同平台编译选项列表 548crypto_config_linux_x86_64_cflags = [ 549 "-DL_ENDIAN", 550 "-DOPENSSL_IA32_SSE2", 551 "-DOPENSSL_USE_NODELETE", 552 "-fPIC", 553 "-m64", 554 "-pthread", 555 556 "-DAES_ASM", 557 "-DBSAES_ASM", 558 "-DCMLL_ASM", 559 "-DECP_NISTZ256_ASM", 560 "-DGHASH_ASM", 561 "-DKECCAK1600_ASM", 562 "-DMD5_ASM", 563 "-DOPENSSL_BN_ASM_GF2m", 564 "-DOPENSSL_BN_ASM_MONT", 565 "-DOPENSSL_BN_ASM_MONT5", 566 "-DPOLY1305_ASM", 567 "-DSHA1_ASM", 568 "-DSHA256_ASM", 569 "-DSHA512_ASM", 570 "-DVPAES_ASM", 571 "-DWHIRLPOOL_ASM", 572 "-DX25519_ASM", 573] 574if (build_with_liblegacy) { 575 crypto_config_linux_x86_64_cflags += [ "-DPADLOCK_ASM" ] 576} 577 578# 升级修改适配检查点16 内部不同平台编译选项列表 579crypto_config_mingw64_cflags = [ 580 "-D_MT", 581 "-D_UNICODE", 582 "-DL_ENDIAN", 583 "-DOPENSSL_IA32_SSE2", 584 "-DUNICODE", 585 "-DWIN32_LEAN_AND_MEAN", 586 "-m64", 587 588 "-DAES_ASM", 589 "-DBSAES_ASM", 590 "-DCMLL_ASM", 591 "-DECP_NISTZ256_ASM", 592 "-DGHASH_ASM", 593 "-DKECCAK1600_ASM", 594 "-DMD5_ASM", 595 "-DOPENSSL_BN_ASM_GF2m", 596 "-DOPENSSL_BN_ASM_MONT", 597 "-DOPENSSL_BN_ASM_MONT5", 598 "-DPOLY1305_ASM", 599 "-DSHA1_ASM", 600 "-DSHA256_ASM", 601 "-DSHA512_ASM", 602 "-DVPAES_ASM", 603 "-DWHIRLPOOL_ASM", 604 "-DX25519_ASM", 605] 606if (build_with_liblegacy) { 607 crypto_config_mingw64_cflags += [ "-DPADLOCK_ASM" ] 608} 609 610crypto_config_linux_loongarch64_cflags = [ 611 "-DOPENSSL_USE_NODELETE", 612 "-fPIC", 613 "-pthread", 614 "-Wall", 615 "-O3", 616 "-DNDEBUG", 617 "-MMD", 618 "-MF", 619 "-DOPENSSL_BUILDING_OPENSSL", 620 "-DOPENSSL_PIC", 621] 622 623crypto_config_current_platform_cflags = [] 624if (openssl_selected_platform == "linux-armv4") { 625 crypto_config_current_platform_cflags += crypto_config_linux_armv4_cflags 626} else if (openssl_selected_platform == "linux-aarch64") { 627 crypto_config_current_platform_cflags += crypto_config_linux_aarch64_cflags 628} else if (openssl_selected_platform == "darwin64-x86_64-cc") { 629 crypto_config_current_platform_cflags += 630 crypto_config_darwin64_x86_64_cc_cflags 631} else if (openssl_selected_platform == "darwin64-arm64-cc") { 632 crypto_config_current_platform_cflags += 633 crypto_config_darwin64_arm64_cc_cflags 634} else if (openssl_selected_platform == "linux-x86_64") { 635 crypto_config_current_platform_cflags += crypto_config_linux_x86_64_cflags 636} else if (openssl_selected_platform == "mingw64") { 637 crypto_config_current_platform_cflags += crypto_config_mingw64_cflags 638} else if (openssl_selected_platform == "linux64-loongarch64") { 639 crypto_config_current_platform_cflags += 640 crypto_config_linux_loongarch64_cflags 641} 642 643mingw32_libs_path = [] 644mingw32_libs = [] 645if (is_mingw || is_win) { 646 mingw32_libs_path += [ "//prebuilts/mingw-w64/ohos/linux-x86_64/clang-mingw/x86_64-w64-mingw32/lib" ] 647 mingw32_libs += [ 648 "ws2_32", 649 "crypt32", 650 ] 651} 652 653config("crypto_config_private") { 654 include_dirs = crypto_config_common_private_include_dirs 655 cflags = crypto_config_common_cflags + crypto_config_current_platform_cflags + 656 openssl_internal_cflags 657 lib_dirs = mingw32_libs_path 658 libs = mingw32_libs 659} 660 661config("crypto_config_public") { 662 include_dirs = crypto_config_common_public_include_dirs 663 libs = mingw32_libs 664} 665 666# 升级修改适配检查点17 libcommon 原目录源码列表 667libcommon_common_sources = [ 668 "providers/common/der/der_dsa_key.c", 669 "providers/common/der/der_dsa_sig.c", 670 "providers/common/der/der_ec_key.c", 671 "providers/common/der/der_ec_sig.c", 672 "providers/common/der/der_ecx_key.c", 673 "providers/common/der/der_rsa_key.c", 674 "providers/common/provider_ctx.c", 675 "providers/common/provider_err.c", 676 "providers/implementations/ciphers/ciphercommon.c", 677 "providers/implementations/ciphers/ciphercommon_block.c", 678 "providers/implementations/ciphers/ciphercommon_ccm.c", 679 "providers/implementations/ciphers/ciphercommon_ccm_hw.c", 680 "providers/implementations/ciphers/ciphercommon_gcm.c", 681 "providers/implementations/ciphers/ciphercommon_gcm_hw.c", 682 "providers/implementations/ciphers/ciphercommon_hw.c", 683 "providers/implementations/digests/digestcommon.c", 684 "ssl/record/tls_pad.c", 685] 686 687# 升级修改适配检查点18 libdefault 原目录源码列表 688libdefault_common_sources = [ 689 "providers/common/bio_prov.c", 690 "providers/common/capabilities.c", 691 "providers/common/der/der_rsa_sig.c", 692 "providers/common/der/der_sm2_key.c", 693 "providers/common/der/der_sm2_sig.c", 694 "providers/common/digest_to_nid.c", 695 "providers/common/provider_seeding.c", 696 "providers/common/provider_util.c", 697 "providers/common/securitycheck.c", 698 "providers/common/securitycheck_default.c", 699 "providers/implementations/asymciphers/rsa_enc.c", 700 "providers/implementations/asymciphers/sm2_enc.c", 701 "providers/implementations/ciphers/cipher_aes.c", 702 "providers/implementations/ciphers/cipher_aes_cbc_hmac_sha.c", 703 "providers/implementations/ciphers/cipher_aes_cbc_hmac_sha1_hw.c", 704 "providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c", 705 "providers/implementations/ciphers/cipher_aes_ccm.c", 706 "providers/implementations/ciphers/cipher_aes_ccm_hw.c", 707 "providers/implementations/ciphers/cipher_aes_gcm.c", 708 "providers/implementations/ciphers/cipher_aes_gcm_hw.c", 709 "providers/implementations/ciphers/cipher_aes_hw.c", 710 "providers/implementations/ciphers/cipher_aes_ocb.c", 711 "providers/implementations/ciphers/cipher_aes_ocb_hw.c", 712 "providers/implementations/ciphers/cipher_aes_siv.c", 713 "providers/implementations/ciphers/cipher_aes_siv_hw.c", 714 "providers/implementations/ciphers/cipher_aes_wrp.c", 715 "providers/implementations/ciphers/cipher_aes_xts.c", 716 "providers/implementations/ciphers/cipher_aes_xts_fips.c", 717 "providers/implementations/ciphers/cipher_aes_xts_hw.c", 718 "providers/implementations/ciphers/cipher_aria.c", 719 "providers/implementations/ciphers/cipher_aria_ccm.c", 720 "providers/implementations/ciphers/cipher_aria_ccm_hw.c", 721 "providers/implementations/ciphers/cipher_aria_gcm.c", 722 "providers/implementations/ciphers/cipher_aria_gcm_hw.c", 723 "providers/implementations/ciphers/cipher_aria_hw.c", 724 "providers/implementations/ciphers/cipher_camellia.c", 725 "providers/implementations/ciphers/cipher_camellia_hw.c", 726 "providers/implementations/ciphers/cipher_chacha20.c", 727 "providers/implementations/ciphers/cipher_chacha20_hw.c", 728 "providers/implementations/ciphers/cipher_chacha20_poly1305.c", 729 "providers/implementations/ciphers/cipher_chacha20_poly1305_hw.c", 730 "providers/implementations/ciphers/cipher_cts.c", 731 "providers/implementations/ciphers/cipher_null.c", 732 "providers/implementations/ciphers/cipher_sm4.c", 733 "providers/implementations/ciphers/cipher_sm4_ccm.c", 734 "providers/implementations/ciphers/cipher_sm4_ccm_hw.c", 735 "providers/implementations/ciphers/cipher_sm4_gcm.c", 736 "providers/implementations/ciphers/cipher_sm4_gcm_hw.c", 737 "providers/implementations/ciphers/cipher_sm4_hw.c", 738 "providers/implementations/ciphers/cipher_tdes.c", 739 "providers/implementations/ciphers/cipher_tdes_common.c", 740 "providers/implementations/ciphers/cipher_tdes_default.c", 741 "providers/implementations/ciphers/cipher_tdes_default_hw.c", 742 "providers/implementations/ciphers/cipher_tdes_hw.c", 743 "providers/implementations/ciphers/cipher_tdes_wrap.c", 744 "providers/implementations/ciphers/cipher_tdes_wrap_hw.c", 745 "providers/implementations/digests/blake2_prov.c", 746 "providers/implementations/digests/blake2b_prov.c", 747 "providers/implementations/digests/blake2s_prov.c", 748 "providers/implementations/digests/md5_prov.c", 749 "providers/implementations/digests/md5_sha1_prov.c", 750 "providers/implementations/digests/null_prov.c", 751 "providers/implementations/digests/ripemd_prov.c", 752 "providers/implementations/digests/sha2_prov.c", 753 "providers/implementations/digests/sha3_prov.c", 754 "providers/implementations/digests/sm3_prov.c", 755 "providers/implementations/encode_decode/decode_der2key.c", 756 "providers/implementations/encode_decode/decode_epki2pki.c", 757 "providers/implementations/encode_decode/decode_msblob2key.c", 758 "providers/implementations/encode_decode/decode_pem2der.c", 759 "providers/implementations/encode_decode/decode_pvk2key.c", 760 "providers/implementations/encode_decode/decode_spki2typespki.c", 761 "providers/implementations/encode_decode/encode_key2any.c", 762 "providers/implementations/encode_decode/encode_key2blob.c", 763 "providers/implementations/encode_decode/encode_key2ms.c", 764 "providers/implementations/encode_decode/encode_key2text.c", 765 "providers/implementations/encode_decode/endecoder_common.c", 766 "providers/implementations/exchange/dh_exch.c", 767 "providers/implementations/exchange/ecdh_exch.c", 768 "providers/implementations/exchange/ecx_exch.c", 769 "providers/implementations/exchange/kdf_exch.c", 770 "providers/implementations/kdfs/hkdf.c", 771 "providers/implementations/kdfs/kbkdf.c", 772 "providers/implementations/kdfs/krb5kdf.c", 773 "providers/implementations/kdfs/pbkdf2.c", 774 "providers/implementations/kdfs/pbkdf2_fips.c", 775 "providers/implementations/kdfs/pkcs12kdf.c", 776 "providers/implementations/kdfs/scrypt.c", 777 "providers/implementations/kdfs/sshkdf.c", 778 "providers/implementations/kdfs/sskdf.c", 779 "providers/implementations/kdfs/tls1_prf.c", 780 "providers/implementations/kdfs/x942kdf.c", 781 "providers/implementations/kem/rsa_kem.c", 782 "providers/implementations/keymgmt/dh_kmgmt.c", 783 "providers/implementations/keymgmt/dsa_kmgmt.c", 784 "providers/implementations/keymgmt/ec_kmgmt.c", 785 "providers/implementations/keymgmt/ecx_kmgmt.c", 786 "providers/implementations/keymgmt/kdf_legacy_kmgmt.c", 787 "providers/implementations/keymgmt/mac_legacy_kmgmt.c", 788 "providers/implementations/keymgmt/rsa_kmgmt.c", 789 "providers/implementations/macs/blake2b_mac.c", 790 "providers/implementations/macs/blake2s_mac.c", 791 "providers/implementations/macs/cmac_prov.c", 792 "providers/implementations/macs/gmac_prov.c", 793 "providers/implementations/macs/hmac_prov.c", 794 "providers/implementations/macs/kmac_prov.c", 795 "providers/implementations/macs/poly1305_prov.c", 796 "providers/implementations/macs/siphash_prov.c", 797 "providers/implementations/rands/crngt.c", 798 "providers/implementations/rands/drbg.c", 799 "providers/implementations/rands/drbg_ctr.c", 800 "providers/implementations/rands/drbg_hash.c", 801 "providers/implementations/rands/drbg_hmac.c", 802 "providers/implementations/rands/seed_src.c", 803 "providers/implementations/rands/seeding/rand_cpu_x86.c", 804 "providers/implementations/rands/seeding/rand_tsc.c", 805 "providers/implementations/rands/seeding/rand_unix.c", 806 "providers/implementations/rands/seeding/rand_win.c", 807 "providers/implementations/rands/test_rng.c", 808 "providers/implementations/signature/dsa_sig.c", 809 "providers/implementations/signature/ecdsa_sig.c", 810 "providers/implementations/signature/eddsa_sig.c", 811 "providers/implementations/signature/mac_legacy_sig.c", 812 "providers/implementations/signature/rsa_sig.c", 813 "providers/implementations/signature/sm2_sig.c", 814 "providers/implementations/storemgmt/file_store.c", 815 "providers/implementations/storemgmt/file_store_any2obj.c", 816 "ssl/s3_cbc.c", 817] 818 819# 升级修改适配检查点19 liblegacy 源码列表 820if (build_with_liblegacy) { 821 liblegacy_sources = [ 822 "providers/implementations/ciphers/cipher_blowfish.c", 823 "providers/implementations/ciphers/cipher_blowfish_hw.c", 824 "providers/implementations/ciphers/cipher_cast5.c", 825 "providers/implementations/ciphers/cipher_cast5_hw.c", 826 "providers/implementations/ciphers/cipher_des.c", 827 "providers/implementations/ciphers/cipher_des_hw.c", 828 "providers/implementations/ciphers/cipher_desx.c", 829 "providers/implementations/ciphers/cipher_desx_hw.c", 830 "providers/implementations/ciphers/cipher_idea.c", 831 "providers/implementations/ciphers/cipher_idea_hw.c", 832 "providers/implementations/ciphers/cipher_rc2.c", 833 "providers/implementations/ciphers/cipher_rc2_hw.c", 834 "providers/implementations/ciphers/cipher_rc4.c", 835 "providers/implementations/ciphers/cipher_rc4_hmac_md5.c", 836 "providers/implementations/ciphers/cipher_rc4_hmac_md5_hw.c", 837 "providers/implementations/ciphers/cipher_rc4_hw.c", 838 "providers/implementations/ciphers/cipher_seed.c", 839 "providers/implementations/ciphers/cipher_seed_hw.c", 840 "providers/implementations/digests/md4_prov.c", 841 "providers/implementations/digests/mdc2_prov.c", 842 "providers/implementations/digests/wp_prov.c", 843 "providers/implementations/kdfs/pbkdf1.c", 844 ] 845} 846 847ohos_source_set("crypto_source") { 848 if (!compatible_with_legacy_build_system) { 849 subsystem_name = "thirdparty" 850 part_name = "openssl" 851 } 852 853 # 升级修改适配检查点20 libcrypto 原目录源码列表 854 sources = [ 855 "crypto/aes/aes_cfb.c", 856 "crypto/aes/aes_ecb.c", 857 "crypto/aes/aes_ige.c", 858 "crypto/aes/aes_misc.c", 859 "crypto/aes/aes_ofb.c", 860 "crypto/aes/aes_wrap.c", 861 "crypto/aria/aria.c", 862 "crypto/asn1/a_bitstr.c", 863 "crypto/asn1/a_d2i_fp.c", 864 "crypto/asn1/a_digest.c", 865 "crypto/asn1/a_dup.c", 866 "crypto/asn1/a_gentm.c", 867 "crypto/asn1/a_i2d_fp.c", 868 "crypto/asn1/a_int.c", 869 "crypto/asn1/a_mbstr.c", 870 "crypto/asn1/a_object.c", 871 "crypto/asn1/a_octet.c", 872 "crypto/asn1/a_print.c", 873 "crypto/asn1/a_sign.c", 874 "crypto/asn1/a_strex.c", 875 "crypto/asn1/a_strnid.c", 876 "crypto/asn1/a_time.c", 877 "crypto/asn1/a_type.c", 878 "crypto/asn1/a_utctm.c", 879 "crypto/asn1/a_utf8.c", 880 "crypto/asn1/a_verify.c", 881 "crypto/asn1/ameth_lib.c", 882 "crypto/asn1/asn1_err.c", 883 "crypto/asn1/asn1_gen.c", 884 "crypto/asn1/asn1_item_list.c", 885 "crypto/asn1/asn1_lib.c", 886 "crypto/asn1/asn1_parse.c", 887 "crypto/asn1/asn_mime.c", 888 "crypto/asn1/asn_moid.c", 889 "crypto/asn1/asn_mstbl.c", 890 "crypto/asn1/asn_pack.c", 891 "crypto/asn1/bio_asn1.c", 892 "crypto/asn1/bio_ndef.c", 893 "crypto/asn1/d2i_param.c", 894 "crypto/asn1/d2i_pr.c", 895 "crypto/asn1/d2i_pu.c", 896 "crypto/asn1/evp_asn1.c", 897 "crypto/asn1/f_int.c", 898 "crypto/asn1/f_string.c", 899 "crypto/asn1/i2d_evp.c", 900 "crypto/asn1/n_pkey.c", 901 "crypto/asn1/nsseq.c", 902 "crypto/asn1/p5_pbe.c", 903 "crypto/asn1/p5_pbev2.c", 904 "crypto/asn1/p5_scrypt.c", 905 "crypto/asn1/p8_pkey.c", 906 "crypto/asn1/t_bitst.c", 907 "crypto/asn1/t_pkey.c", 908 "crypto/asn1/t_spki.c", 909 "crypto/asn1/tasn_dec.c", 910 "crypto/asn1/tasn_enc.c", 911 "crypto/asn1/tasn_fre.c", 912 "crypto/asn1/tasn_new.c", 913 "crypto/asn1/tasn_prn.c", 914 "crypto/asn1/tasn_scn.c", 915 "crypto/asn1/tasn_typ.c", 916 "crypto/asn1/tasn_utl.c", 917 "crypto/asn1/x_algor.c", 918 "crypto/asn1/x_bignum.c", 919 "crypto/asn1/x_info.c", 920 "crypto/asn1/x_int64.c", 921 "crypto/asn1/x_long.c", 922 "crypto/asn1/x_pkey.c", 923 "crypto/asn1/x_sig.c", 924 "crypto/asn1/x_spki.c", 925 "crypto/asn1/x_val.c", 926 "crypto/asn1_dsa.c", 927 "crypto/async/arch/async_null.c", 928 "crypto/async/arch/async_posix.c", 929 "crypto/async/arch/async_win.c", 930 "crypto/async/async.c", 931 "crypto/async/async_err.c", 932 "crypto/async/async_wait.c", 933 "crypto/bf/bf_cfb64.c", 934 "crypto/bf/bf_ecb.c", 935 "crypto/bf/bf_enc.c", 936 "crypto/bf/bf_ofb64.c", 937 "crypto/bf/bf_skey.c", 938 "crypto/bio/bf_buff.c", 939 "crypto/bio/bf_lbuf.c", 940 "crypto/bio/bf_nbio.c", 941 "crypto/bio/bf_null.c", 942 "crypto/bio/bf_prefix.c", 943 "crypto/bio/bf_readbuff.c", 944 "crypto/bio/bio_addr.c", 945 "crypto/bio/bio_cb.c", 946 "crypto/bio/bio_dump.c", 947 "crypto/bio/bio_err.c", 948 "crypto/bio/bio_lib.c", 949 "crypto/bio/bio_meth.c", 950 "crypto/bio/bio_print.c", 951 "crypto/bio/bio_sock.c", 952 "crypto/bio/bio_sock2.c", 953 "crypto/bio/bss_acpt.c", 954 "crypto/bio/bss_bio.c", 955 "crypto/bio/bss_conn.c", 956 "crypto/bio/bss_core.c", 957 "crypto/bio/bss_dgram.c", 958 "crypto/bio/bss_fd.c", 959 "crypto/bio/bss_file.c", 960 "crypto/bio/bss_log.c", 961 "crypto/bio/bss_mem.c", 962 "crypto/bio/bss_null.c", 963 "crypto/bio/bss_sock.c", 964 "crypto/bio/ossl_core_bio.c", 965 "crypto/bn/bn_add.c", 966 "crypto/bn/bn_blind.c", 967 "crypto/bn/bn_const.c", 968 "crypto/bn/bn_conv.c", 969 "crypto/bn/bn_ctx.c", 970 "crypto/bn/bn_depr.c", 971 "crypto/bn/bn_dh.c", 972 "crypto/bn/bn_div.c", 973 "crypto/bn/bn_err.c", 974 "crypto/bn/bn_exp.c", 975 "crypto/bn/bn_exp2.c", 976 "crypto/bn/bn_gcd.c", 977 "crypto/bn/bn_gf2m.c", 978 "crypto/bn/bn_intern.c", 979 "crypto/bn/bn_kron.c", 980 "crypto/bn/bn_lib.c", 981 "crypto/bn/bn_mod.c", 982 "crypto/bn/bn_mont.c", 983 "crypto/bn/bn_mpi.c", 984 "crypto/bn/bn_mul.c", 985 "crypto/bn/bn_nist.c", 986 "crypto/bn/bn_prime.c", 987 "crypto/bn/bn_print.c", 988 "crypto/bn/bn_rand.c", 989 "crypto/bn/bn_recp.c", 990 "crypto/bn/bn_rsa_fips186_4.c", 991 "crypto/bn/bn_shift.c", 992 "crypto/bn/bn_sqr.c", 993 "crypto/bn/bn_sqrt.c", 994 "crypto/bn/bn_srp.c", 995 "crypto/bn/bn_word.c", 996 "crypto/bn/bn_x931p.c", 997 "crypto/bsearch.c", 998 "crypto/buffer/buf_err.c", 999 "crypto/buffer/buffer.c", 1000 "crypto/camellia/cmll_cfb.c", 1001 "crypto/camellia/cmll_ctr.c", 1002 "crypto/camellia/cmll_ecb.c", 1003 "crypto/camellia/cmll_misc.c", 1004 "crypto/camellia/cmll_ofb.c", 1005 "crypto/cast/c_cfb64.c", 1006 "crypto/cast/c_ecb.c", 1007 "crypto/cast/c_enc.c", 1008 "crypto/cast/c_ofb64.c", 1009 "crypto/cast/c_skey.c", 1010 "crypto/cmac/cmac.c", 1011 "crypto/cmp/cmp_asn.c", 1012 "crypto/cmp/cmp_client.c", 1013 "crypto/cmp/cmp_ctx.c", 1014 "crypto/cmp/cmp_err.c", 1015 "crypto/cmp/cmp_hdr.c", 1016 "crypto/cmp/cmp_http.c", 1017 "crypto/cmp/cmp_msg.c", 1018 "crypto/cmp/cmp_protect.c", 1019 "crypto/cmp/cmp_server.c", 1020 "crypto/cmp/cmp_status.c", 1021 "crypto/cmp/cmp_util.c", 1022 "crypto/cmp/cmp_vfy.c", 1023 "crypto/cms/cms_asn1.c", 1024 "crypto/cms/cms_att.c", 1025 "crypto/cms/cms_cd.c", 1026 "crypto/cms/cms_dd.c", 1027 "crypto/cms/cms_dh.c", 1028 "crypto/cms/cms_ec.c", 1029 "crypto/cms/cms_enc.c", 1030 "crypto/cms/cms_env.c", 1031 "crypto/cms/cms_err.c", 1032 "crypto/cms/cms_ess.c", 1033 "crypto/cms/cms_io.c", 1034 "crypto/cms/cms_kari.c", 1035 "crypto/cms/cms_lib.c", 1036 "crypto/cms/cms_pwri.c", 1037 "crypto/cms/cms_rsa.c", 1038 "crypto/cms/cms_sd.c", 1039 "crypto/cms/cms_smime.c", 1040 "crypto/comp/c_zlib.c", 1041 "crypto/comp/comp_err.c", 1042 "crypto/comp/comp_lib.c", 1043 "crypto/conf/conf_api.c", 1044 "crypto/conf/conf_def.c", 1045 "crypto/conf/conf_err.c", 1046 "crypto/conf/conf_lib.c", 1047 "crypto/conf/conf_mall.c", 1048 "crypto/conf/conf_mod.c", 1049 "crypto/conf/conf_sap.c", 1050 "crypto/conf/conf_ssl.c", 1051 "crypto/context.c", 1052 "crypto/core_algorithm.c", 1053 "crypto/core_fetch.c", 1054 "crypto/core_namemap.c", 1055 "crypto/cpt_err.c", 1056 "crypto/cpuid.c", 1057 "crypto/crmf/crmf_asn.c", 1058 "crypto/crmf/crmf_err.c", 1059 "crypto/crmf/crmf_lib.c", 1060 "crypto/crmf/crmf_pbm.c", 1061 "crypto/cryptlib.c", 1062 "crypto/ct/ct_b64.c", 1063 "crypto/ct/ct_err.c", 1064 "crypto/ct/ct_log.c", 1065 "crypto/ct/ct_oct.c", 1066 "crypto/ct/ct_policy.c", 1067 "crypto/ct/ct_prn.c", 1068 "crypto/ct/ct_sct.c", 1069 "crypto/ct/ct_sct_ctx.c", 1070 "crypto/ct/ct_vfy.c", 1071 "crypto/ct/ct_x509v3.c", 1072 "crypto/ctype.c", 1073 "crypto/cversion.c", 1074 "crypto/der_writer.c", 1075 "crypto/des/cbc_cksm.c", 1076 "crypto/des/cbc_enc.c", 1077 "crypto/des/cfb64ede.c", 1078 "crypto/des/cfb64enc.c", 1079 "crypto/des/cfb_enc.c", 1080 "crypto/des/des_enc.c", 1081 "crypto/des/ecb3_enc.c", 1082 "crypto/des/ecb_enc.c", 1083 "crypto/des/fcrypt.c", 1084 "crypto/des/fcrypt_b.c", 1085 "crypto/des/ofb64ede.c", 1086 "crypto/des/ofb64enc.c", 1087 "crypto/des/ofb_enc.c", 1088 "crypto/des/pcbc_enc.c", 1089 "crypto/des/qud_cksm.c", 1090 "crypto/des/rand_key.c", 1091 "crypto/des/set_key.c", 1092 "crypto/des/str2key.c", 1093 "crypto/des/xcbc_enc.c", 1094 "crypto/dh/dh_ameth.c", 1095 "crypto/dh/dh_asn1.c", 1096 "crypto/dh/dh_backend.c", 1097 "crypto/dh/dh_check.c", 1098 "crypto/dh/dh_depr.c", 1099 "crypto/dh/dh_err.c", 1100 "crypto/dh/dh_gen.c", 1101 "crypto/dh/dh_group_params.c", 1102 "crypto/dh/dh_kdf.c", 1103 "crypto/dh/dh_key.c", 1104 "crypto/dh/dh_lib.c", 1105 "crypto/dh/dh_meth.c", 1106 "crypto/dh/dh_pmeth.c", 1107 "crypto/dh/dh_prn.c", 1108 "crypto/dh/dh_rfc5114.c", 1109 "crypto/dsa/dsa_ameth.c", 1110 "crypto/dsa/dsa_asn1.c", 1111 "crypto/dsa/dsa_backend.c", 1112 "crypto/dsa/dsa_check.c", 1113 "crypto/dsa/dsa_depr.c", 1114 "crypto/dsa/dsa_err.c", 1115 "crypto/dsa/dsa_gen.c", 1116 "crypto/dsa/dsa_key.c", 1117 "crypto/dsa/dsa_lib.c", 1118 "crypto/dsa/dsa_meth.c", 1119 "crypto/dsa/dsa_ossl.c", 1120 "crypto/dsa/dsa_pmeth.c", 1121 "crypto/dsa/dsa_prn.c", 1122 "crypto/dsa/dsa_sign.c", 1123 "crypto/dsa/dsa_vrf.c", 1124 "crypto/dso/dso_dl.c", 1125 "crypto/dso/dso_dlfcn.c", 1126 "crypto/dso/dso_err.c", 1127 "crypto/dso/dso_lib.c", 1128 "crypto/dso/dso_openssl.c", 1129 "crypto/dso/dso_vms.c", 1130 "crypto/dso/dso_win32.c", 1131 "crypto/ebcdic.c", 1132 "crypto/ec/curve25519.c", 1133 "crypto/ec/curve448/arch_32/f_impl32.c", 1134 "crypto/ec/curve448/arch_64/f_impl64.c", 1135 "crypto/ec/curve448/curve448.c", 1136 "crypto/ec/curve448/curve448_tables.c", 1137 "crypto/ec/curve448/eddsa.c", 1138 "crypto/ec/curve448/f_generic.c", 1139 "crypto/ec/curve448/scalar.c", 1140 "crypto/ec/ec2_oct.c", 1141 "crypto/ec/ec2_smpl.c", 1142 "crypto/ec/ec_ameth.c", 1143 "crypto/ec/ec_asn1.c", 1144 "crypto/ec/ec_backend.c", 1145 "crypto/ec/ec_check.c", 1146 "crypto/ec/ec_curve.c", 1147 "crypto/ec/ec_cvt.c", 1148 "crypto/ec/ec_deprecated.c", 1149 "crypto/ec/ec_err.c", 1150 "crypto/ec/ec_key.c", 1151 "crypto/ec/ec_kmeth.c", 1152 "crypto/ec/ec_lib.c", 1153 "crypto/ec/ec_mult.c", 1154 "crypto/ec/ec_oct.c", 1155 "crypto/ec/ec_pmeth.c", 1156 "crypto/ec/ec_print.c", 1157 "crypto/ec/ecdh_kdf.c", 1158 "crypto/ec/ecdh_ossl.c", 1159 "crypto/ec/ecdsa_ossl.c", 1160 "crypto/ec/ecdsa_sign.c", 1161 "crypto/ec/ecdsa_vrf.c", 1162 "crypto/ec/eck_prn.c", 1163 "crypto/ec/ecp_mont.c", 1164 "crypto/ec/ecp_nist.c", 1165 "crypto/ec/ecp_nistz256.c", 1166 "crypto/ec/ecp_oct.c", 1167 "crypto/ec/ecp_smpl.c", 1168 "crypto/ec/ecx_backend.c", 1169 "crypto/ec/ecx_key.c", 1170 "crypto/ec/ecx_meth.c", 1171 "crypto/encode_decode/decoder_err.c", 1172 "crypto/encode_decode/decoder_lib.c", 1173 "crypto/encode_decode/decoder_meth.c", 1174 "crypto/encode_decode/decoder_pkey.c", 1175 "crypto/encode_decode/encoder_err.c", 1176 "crypto/encode_decode/encoder_lib.c", 1177 "crypto/encode_decode/encoder_meth.c", 1178 "crypto/encode_decode/encoder_pkey.c", 1179 "crypto/engine/eng_all.c", 1180 "crypto/engine/eng_cnf.c", 1181 "crypto/engine/eng_ctrl.c", 1182 "crypto/engine/eng_dyn.c", 1183 "crypto/engine/eng_err.c", 1184 "crypto/engine/eng_fat.c", 1185 "crypto/engine/eng_init.c", 1186 "crypto/engine/eng_lib.c", 1187 "crypto/engine/eng_list.c", 1188 "crypto/engine/eng_openssl.c", 1189 "crypto/engine/eng_pkey.c", 1190 "crypto/engine/eng_rdrand.c", 1191 "crypto/engine/eng_table.c", 1192 "crypto/engine/tb_asnmth.c", 1193 "crypto/engine/tb_cipher.c", 1194 "crypto/engine/tb_dh.c", 1195 "crypto/engine/tb_digest.c", 1196 "crypto/engine/tb_dsa.c", 1197 "crypto/engine/tb_eckey.c", 1198 "crypto/engine/tb_pkmeth.c", 1199 "crypto/engine/tb_rand.c", 1200 "crypto/engine/tb_rsa.c", 1201 "crypto/err/err.c", 1202 "crypto/err/err_all.c", 1203 "crypto/err/err_all_legacy.c", 1204 "crypto/err/err_blocks.c", 1205 "crypto/err/err_prn.c", 1206 "crypto/ess/ess_asn1.c", 1207 "crypto/ess/ess_err.c", 1208 "crypto/ess/ess_lib.c", 1209 "crypto/evp/asymcipher.c", 1210 "crypto/evp/bio_b64.c", 1211 "crypto/evp/bio_enc.c", 1212 "crypto/evp/bio_md.c", 1213 "crypto/evp/bio_ok.c", 1214 "crypto/evp/c_allc.c", 1215 "crypto/evp/c_alld.c", 1216 "crypto/evp/cmeth_lib.c", 1217 "crypto/evp/ctrl_params_translate.c", 1218 "crypto/evp/dh_ctrl.c", 1219 "crypto/evp/dh_support.c", 1220 "crypto/evp/digest.c", 1221 "crypto/evp/dsa_ctrl.c", 1222 "crypto/evp/e_aes.c", 1223 "crypto/evp/e_aes_cbc_hmac_sha1.c", 1224 "crypto/evp/e_aes_cbc_hmac_sha256.c", 1225 "crypto/evp/e_aria.c", 1226 "crypto/evp/e_bf.c", 1227 "crypto/evp/e_camellia.c", 1228 "crypto/evp/e_cast.c", 1229 "crypto/evp/e_chacha20_poly1305.c", 1230 "crypto/evp/e_des.c", 1231 "crypto/evp/e_des3.c", 1232 "crypto/evp/e_idea.c", 1233 "crypto/evp/e_null.c", 1234 "crypto/evp/e_old.c", 1235 "crypto/evp/e_rc2.c", 1236 "crypto/evp/e_rc4.c", 1237 "crypto/evp/e_rc4_hmac_md5.c", 1238 "crypto/evp/e_rc5.c", 1239 "crypto/evp/e_seed.c", 1240 "crypto/evp/e_sm4.c", 1241 "crypto/evp/e_xcbc_d.c", 1242 "crypto/evp/ec_ctrl.c", 1243 "crypto/evp/ec_support.c", 1244 "crypto/evp/encode.c", 1245 "crypto/evp/evp_cnf.c", 1246 "crypto/evp/evp_enc.c", 1247 "crypto/evp/evp_err.c", 1248 "crypto/evp/evp_fetch.c", 1249 "crypto/evp/evp_key.c", 1250 "crypto/evp/evp_lib.c", 1251 "crypto/evp/evp_pbe.c", 1252 "crypto/evp/evp_pkey.c", 1253 "crypto/evp/evp_rand.c", 1254 "crypto/evp/evp_utils.c", 1255 "crypto/evp/exchange.c", 1256 "crypto/evp/kdf_lib.c", 1257 "crypto/evp/kdf_meth.c", 1258 "crypto/evp/kem.c", 1259 "crypto/evp/keymgmt_lib.c", 1260 "crypto/evp/keymgmt_meth.c", 1261 "crypto/evp/legacy_blake2.c", 1262 "crypto/evp/legacy_md4.c", 1263 "crypto/evp/legacy_md5.c", 1264 "crypto/evp/legacy_md5_sha1.c", 1265 "crypto/evp/legacy_mdc2.c", 1266 "crypto/evp/legacy_ripemd.c", 1267 "crypto/evp/legacy_sha.c", 1268 "crypto/evp/legacy_wp.c", 1269 "crypto/evp/m_null.c", 1270 "crypto/evp/m_sigver.c", 1271 "crypto/evp/mac_lib.c", 1272 "crypto/evp/mac_meth.c", 1273 "crypto/evp/names.c", 1274 "crypto/evp/p5_crpt.c", 1275 "crypto/evp/p5_crpt2.c", 1276 "crypto/evp/p_dec.c", 1277 "crypto/evp/p_enc.c", 1278 "crypto/evp/p_legacy.c", 1279 "crypto/evp/p_lib.c", 1280 "crypto/evp/p_open.c", 1281 "crypto/evp/p_seal.c", 1282 "crypto/evp/p_sign.c", 1283 "crypto/evp/p_verify.c", 1284 "crypto/evp/pbe_scrypt.c", 1285 "crypto/evp/pmeth_check.c", 1286 "crypto/evp/pmeth_gn.c", 1287 "crypto/evp/pmeth_lib.c", 1288 "crypto/evp/signature.c", 1289 "crypto/ex_data.c", 1290 "crypto/ffc/ffc_backend.c", 1291 "crypto/ffc/ffc_dh.c", 1292 "crypto/ffc/ffc_key_generate.c", 1293 "crypto/ffc/ffc_key_validate.c", 1294 "crypto/ffc/ffc_params.c", 1295 "crypto/ffc/ffc_params_generate.c", 1296 "crypto/ffc/ffc_params_validate.c", 1297 "crypto/getenv.c", 1298 "crypto/hmac/hmac.c", 1299 "crypto/http/http_client.c", 1300 "crypto/http/http_err.c", 1301 "crypto/http/http_lib.c", 1302 "crypto/idea/i_cbc.c", 1303 "crypto/idea/i_cfb64.c", 1304 "crypto/idea/i_ecb.c", 1305 "crypto/idea/i_ofb64.c", 1306 "crypto/idea/i_skey.c", 1307 "crypto/info.c", 1308 "crypto/init.c", 1309 "crypto/initthread.c", 1310 "crypto/kdf/kdf_err.c", 1311 "crypto/lhash/lh_stats.c", 1312 "crypto/lhash/lhash.c", 1313 "crypto/md4/md4_dgst.c", 1314 "crypto/md4/md4_one.c", 1315 "crypto/md5/md5_dgst.c", 1316 "crypto/md5/md5_one.c", 1317 "crypto/md5/md5_sha1.c", 1318 "crypto/mdc2/mdc2_one.c", 1319 "crypto/mdc2/mdc2dgst.c", 1320 "crypto/mem.c", 1321 "crypto/mem_sec.c", 1322 "crypto/modes/cbc128.c", 1323 "crypto/modes/ccm128.c", 1324 "crypto/modes/cfb128.c", 1325 "crypto/modes/ctr128.c", 1326 "crypto/modes/cts128.c", 1327 "crypto/modes/gcm128.c", 1328 "crypto/modes/ocb128.c", 1329 "crypto/modes/ofb128.c", 1330 "crypto/modes/siv128.c", 1331 "crypto/modes/wrap128.c", 1332 "crypto/modes/xts128.c", 1333 "crypto/o_dir.c", 1334 "crypto/o_fopen.c", 1335 "crypto/o_init.c", 1336 "crypto/o_str.c", 1337 "crypto/o_time.c", 1338 "crypto/objects/o_names.c", 1339 "crypto/objects/obj_dat.c", 1340 "crypto/objects/obj_err.c", 1341 "crypto/objects/obj_lib.c", 1342 "crypto/objects/obj_xref.c", 1343 "crypto/ocsp/ocsp_asn.c", 1344 "crypto/ocsp/ocsp_cl.c", 1345 "crypto/ocsp/ocsp_err.c", 1346 "crypto/ocsp/ocsp_ext.c", 1347 "crypto/ocsp/ocsp_http.c", 1348 "crypto/ocsp/ocsp_lib.c", 1349 "crypto/ocsp/ocsp_prn.c", 1350 "crypto/ocsp/ocsp_srv.c", 1351 "crypto/ocsp/ocsp_vfy.c", 1352 "crypto/ocsp/v3_ocsp.c", 1353 "crypto/packet.c", 1354 "crypto/param_build.c", 1355 "crypto/param_build_set.c", 1356 "crypto/params.c", 1357 "crypto/params_dup.c", 1358 "crypto/params_from_text.c", 1359 "crypto/passphrase.c", 1360 "crypto/pem/pem_all.c", 1361 "crypto/pem/pem_err.c", 1362 "crypto/pem/pem_info.c", 1363 "crypto/pem/pem_lib.c", 1364 "crypto/pem/pem_oth.c", 1365 "crypto/pem/pem_pk8.c", 1366 "crypto/pem/pem_pkey.c", 1367 "crypto/pem/pem_sign.c", 1368 "crypto/pem/pem_x509.c", 1369 "crypto/pem/pem_xaux.c", 1370 "crypto/pem/pvkfmt.c", 1371 "crypto/pkcs12/p12_add.c", 1372 "crypto/pkcs12/p12_asn.c", 1373 "crypto/pkcs12/p12_attr.c", 1374 "crypto/pkcs12/p12_crpt.c", 1375 "crypto/pkcs12/p12_crt.c", 1376 "crypto/pkcs12/p12_decr.c", 1377 "crypto/pkcs12/p12_init.c", 1378 "crypto/pkcs12/p12_key.c", 1379 "crypto/pkcs12/p12_kiss.c", 1380 "crypto/pkcs12/p12_mutl.c", 1381 "crypto/pkcs12/p12_npas.c", 1382 "crypto/pkcs12/p12_p8d.c", 1383 "crypto/pkcs12/p12_p8e.c", 1384 "crypto/pkcs12/p12_sbag.c", 1385 "crypto/pkcs12/p12_utl.c", 1386 "crypto/pkcs12/pk12err.c", 1387 "crypto/pkcs7/bio_pk7.c", 1388 "crypto/pkcs7/pk7_asn1.c", 1389 "crypto/pkcs7/pk7_attr.c", 1390 "crypto/pkcs7/pk7_doit.c", 1391 "crypto/pkcs7/pk7_lib.c", 1392 "crypto/pkcs7/pk7_mime.c", 1393 "crypto/pkcs7/pk7_smime.c", 1394 "crypto/pkcs7/pkcs7err.c", 1395 "crypto/poly1305/poly1305.c", 1396 "crypto/property/defn_cache.c", 1397 "crypto/property/property.c", 1398 "crypto/property/property_err.c", 1399 "crypto/property/property_parse.c", 1400 "crypto/property/property_query.c", 1401 "crypto/property/property_string.c", 1402 "crypto/provider.c", 1403 "crypto/provider_child.c", 1404 "crypto/provider_conf.c", 1405 "crypto/provider_core.c", 1406 "crypto/provider_predefined.c", 1407 "crypto/punycode.c", 1408 "crypto/rand/prov_seed.c", 1409 "crypto/rand/rand_deprecated.c", 1410 "crypto/rand/rand_err.c", 1411 "crypto/rand/rand_lib.c", 1412 "crypto/rand/rand_meth.c", 1413 "crypto/rand/rand_pool.c", 1414 "crypto/rand/randfile.c", 1415 "crypto/rc2/rc2_cbc.c", 1416 "crypto/rc2/rc2_ecb.c", 1417 "crypto/rc2/rc2_skey.c", 1418 "crypto/rc2/rc2cfb64.c", 1419 "crypto/rc2/rc2ofb64.c", 1420 "crypto/ripemd/rmd_dgst.c", 1421 "crypto/ripemd/rmd_one.c", 1422 "crypto/rsa/rsa_ameth.c", 1423 "crypto/rsa/rsa_asn1.c", 1424 "crypto/rsa/rsa_backend.c", 1425 "crypto/rsa/rsa_chk.c", 1426 "crypto/rsa/rsa_crpt.c", 1427 "crypto/rsa/rsa_depr.c", 1428 "crypto/rsa/rsa_err.c", 1429 "crypto/rsa/rsa_gen.c", 1430 "crypto/rsa/rsa_lib.c", 1431 "crypto/rsa/rsa_meth.c", 1432 "crypto/rsa/rsa_mp.c", 1433 "crypto/rsa/rsa_mp_names.c", 1434 "crypto/rsa/rsa_none.c", 1435 "crypto/rsa/rsa_oaep.c", 1436 "crypto/rsa/rsa_ossl.c", 1437 "crypto/rsa/rsa_pk1.c", 1438 "crypto/rsa/rsa_pmeth.c", 1439 "crypto/rsa/rsa_prn.c", 1440 "crypto/rsa/rsa_pss.c", 1441 "crypto/rsa/rsa_saos.c", 1442 "crypto/rsa/rsa_schemes.c", 1443 "crypto/rsa/rsa_sign.c", 1444 "crypto/rsa/rsa_sp800_56b_check.c", 1445 "crypto/rsa/rsa_sp800_56b_gen.c", 1446 "crypto/rsa/rsa_x931.c", 1447 "crypto/rsa/rsa_x931g.c", 1448 "crypto/seed/seed.c", 1449 "crypto/seed/seed_cbc.c", 1450 "crypto/seed/seed_cfb.c", 1451 "crypto/seed/seed_ecb.c", 1452 "crypto/seed/seed_ofb.c", 1453 "crypto/self_test_core.c", 1454 "crypto/sha/sha1_one.c", 1455 "crypto/sha/sha1dgst.c", 1456 "crypto/sha/sha256.c", 1457 "crypto/sha/sha3.c", 1458 "crypto/sha/sha512.c", 1459 "crypto/siphash/siphash.c", 1460 "crypto/sm2/sm2_crypt.c", 1461 "crypto/sm2/sm2_err.c", 1462 "crypto/sm2/sm2_key.c", 1463 "crypto/sm2/sm2_sign.c", 1464 "crypto/sm3/legacy_sm3.c", 1465 "crypto/sm3/sm3.c", 1466 "crypto/sm4/sm4.c", 1467 "crypto/sparse_array.c", 1468 "crypto/srp/srp_lib.c", 1469 "crypto/srp/srp_vfy.c", 1470 "crypto/stack/stack.c", 1471 "crypto/store/store_err.c", 1472 "crypto/store/store_init.c", 1473 "crypto/store/store_lib.c", 1474 "crypto/store/store_meth.c", 1475 "crypto/store/store_register.c", 1476 "crypto/store/store_result.c", 1477 "crypto/store/store_strings.c", 1478 "crypto/threads_lib.c", 1479 "crypto/threads_none.c", 1480 "crypto/threads_pthread.c", 1481 "crypto/threads_win.c", 1482 "crypto/trace.c", 1483 "crypto/ts/ts_asn1.c", 1484 "crypto/ts/ts_conf.c", 1485 "crypto/ts/ts_err.c", 1486 "crypto/ts/ts_lib.c", 1487 "crypto/ts/ts_req_print.c", 1488 "crypto/ts/ts_req_utils.c", 1489 "crypto/ts/ts_rsp_print.c", 1490 "crypto/ts/ts_rsp_sign.c", 1491 "crypto/ts/ts_rsp_utils.c", 1492 "crypto/ts/ts_rsp_verify.c", 1493 "crypto/ts/ts_verify_ctx.c", 1494 "crypto/txt_db/txt_db.c", 1495 "crypto/ui/ui_err.c", 1496 "crypto/ui/ui_lib.c", 1497 "crypto/ui/ui_null.c", 1498 "crypto/ui/ui_openssl.c", 1499 "crypto/ui/ui_util.c", 1500 "crypto/uid.c", 1501 "crypto/whrlpool/wp_dgst.c", 1502 "crypto/x509/by_dir.c", 1503 "crypto/x509/by_file.c", 1504 "crypto/x509/by_store.c", 1505 "crypto/x509/pcy_cache.c", 1506 "crypto/x509/pcy_data.c", 1507 "crypto/x509/pcy_lib.c", 1508 "crypto/x509/pcy_map.c", 1509 "crypto/x509/pcy_node.c", 1510 "crypto/x509/pcy_tree.c", 1511 "crypto/x509/t_crl.c", 1512 "crypto/x509/t_req.c", 1513 "crypto/x509/t_x509.c", 1514 "crypto/x509/v3_addr.c", 1515 "crypto/x509/v3_admis.c", 1516 "crypto/x509/v3_akeya.c", 1517 "crypto/x509/v3_akid.c", 1518 "crypto/x509/v3_asid.c", 1519 "crypto/x509/v3_bcons.c", 1520 "crypto/x509/v3_bitst.c", 1521 "crypto/x509/v3_conf.c", 1522 "crypto/x509/v3_cpols.c", 1523 "crypto/x509/v3_crld.c", 1524 "crypto/x509/v3_enum.c", 1525 "crypto/x509/v3_extku.c", 1526 "crypto/x509/v3_genn.c", 1527 "crypto/x509/v3_ia5.c", 1528 "crypto/x509/v3_info.c", 1529 "crypto/x509/v3_int.c", 1530 "crypto/x509/v3_ist.c", 1531 "crypto/x509/v3_lib.c", 1532 "crypto/x509/v3_ncons.c", 1533 "crypto/x509/v3_pci.c", 1534 "crypto/x509/v3_pcia.c", 1535 "crypto/x509/v3_pcons.c", 1536 "crypto/x509/v3_pku.c", 1537 "crypto/x509/v3_pmaps.c", 1538 "crypto/x509/v3_prn.c", 1539 "crypto/x509/v3_purp.c", 1540 "crypto/x509/v3_san.c", 1541 "crypto/x509/v3_skid.c", 1542 "crypto/x509/v3_sxnet.c", 1543 "crypto/x509/v3_tlsf.c", 1544 "crypto/x509/v3_utf8.c", 1545 "crypto/x509/v3_utl.c", 1546 "crypto/x509/v3err.c", 1547 "crypto/x509/x509_att.c", 1548 "crypto/x509/x509_cmp.c", 1549 "crypto/x509/x509_d2.c", 1550 "crypto/x509/x509_def.c", 1551 "crypto/x509/x509_err.c", 1552 "crypto/x509/x509_ext.c", 1553 "crypto/x509/x509_lu.c", 1554 "crypto/x509/x509_meth.c", 1555 "crypto/x509/x509_obj.c", 1556 "crypto/x509/x509_r2x.c", 1557 "crypto/x509/x509_req.c", 1558 "crypto/x509/x509_set.c", 1559 "crypto/x509/x509_trust.c", 1560 "crypto/x509/x509_txt.c", 1561 "crypto/x509/x509_v3.c", 1562 "crypto/x509/x509_vfy.c", 1563 "crypto/x509/x509_vpm.c", 1564 "crypto/x509/x509cset.c", 1565 "crypto/x509/x509name.c", 1566 "crypto/x509/x509rset.c", 1567 "crypto/x509/x509spki.c", 1568 "crypto/x509/x509type.c", 1569 "crypto/x509/x_all.c", 1570 "crypto/x509/x_attrib.c", 1571 "crypto/x509/x_crl.c", 1572 "crypto/x509/x_exten.c", 1573 "crypto/x509/x_name.c", 1574 "crypto/x509/x_pubkey.c", 1575 "crypto/x509/x_req.c", 1576 "crypto/x509/x_x509.c", 1577 "crypto/x509/x_x509a.c", 1578 "providers/baseprov.c", 1579 "providers/defltprov.c", 1580 "providers/nullprov.c", 1581 "providers/prov_running.c", 1582 ] 1583 if (build_with_liblegacy) { 1584 sources += [ 1585 "engines/e_capi.c", 1586 "engines/e_padlock.c", 1587 "providers/legacyprov.c", 1588 ] 1589 } 1590 sources += libcommon_common_sources 1591 sources += libcommon_build_all_generated_selected_platform_sources 1592 sources += libdefault_common_sources 1593 sources += libdefault_build_all_generated_selected_platform_sources 1594 sources += libcrypto_build_all_generated_selected_platform_sources 1595 if (build_with_liblegacy) { 1596 sources += liblegacy_sources 1597 } 1598 1599 if (openssl_selected_platform == "linux-armv4") { 1600 # 升级修改适配检查点21 libcrypto 不同平台c源码列表 1601 sources += [ 1602 "crypto/aes/aes_cbc.c", 1603 "crypto/armcap.c", 1604 "crypto/bn/bn_asm.c", 1605 "crypto/camellia/camellia.c", 1606 "crypto/camellia/cmll_cbc.c", 1607 "crypto/rc4/rc4_enc.c", 1608 "crypto/rc4/rc4_skey.c", 1609 "crypto/whrlpool/wp_block.c", 1610 ] 1611 if (build_with_liblegacy) { 1612 sources += [ "engines/e_afalg.c" ] 1613 } 1614 } else if (openssl_selected_platform == "linux-aarch64") { 1615 # 升级修改适配检查点22 libcrypto 不同平台c源码列表 1616 sources += [ 1617 "crypto/aes/aes_cbc.c", 1618 "crypto/aes/aes_core.c", 1619 "crypto/armcap.c", 1620 "crypto/bn/bn_asm.c", 1621 "crypto/camellia/camellia.c", 1622 "crypto/camellia/cmll_cbc.c", 1623 "crypto/rc4/rc4_enc.c", 1624 "crypto/rc4/rc4_skey.c", 1625 "crypto/whrlpool/wp_block.c", 1626 ] 1627 if (build_with_liblegacy) { 1628 sources += [ "engines/e_afalg.c" ] 1629 } 1630 } else if (openssl_selected_platform == "darwin64-x86_64-cc") { 1631 # 升级修改适配检查点23 libcrypto 不同平台c源码列表 1632 sources += [ 1633 "crypto/bn/asm/x86_64-gcc.c", 1634 "crypto/bn/rsaz_exp.c", 1635 "crypto/bn/rsaz_exp_x2.c", 1636 ] 1637 } else if (openssl_selected_platform == "darwin64-arm64-cc") { 1638 # 升级修改适配检查点24 libcrypto 不同平台c源码列表 1639 sources += [ 1640 "crypto/aes/aes_cbc.c", 1641 "crypto/aes/aes_core.c", 1642 "crypto/armcap.c", 1643 "crypto/bn/bn_asm.c", 1644 "crypto/camellia/camellia.c", 1645 "crypto/camellia/cmll_cbc.c", 1646 "crypto/rc4/rc4_enc.c", 1647 "crypto/rc4/rc4_skey.c", 1648 "crypto/whrlpool/wp_block.c", 1649 ] 1650 } else if (openssl_selected_platform == "linux-x86_64") { 1651 # 升级修改适配检查点25 libcrypto 不同平台c源码列表 1652 sources += [ 1653 "crypto/bn/asm/x86_64-gcc.c", 1654 "crypto/bn/rsaz_exp.c", 1655 "crypto/bn/rsaz_exp_x2.c", 1656 ] 1657 if (build_with_liblegacy) { 1658 sources += [ "engines/e_afalg.c" ] 1659 } 1660 } else if (openssl_selected_platform == "mingw64") { 1661 # 升级修改适配检查点26 libcrypto 不同平台c源码列表 1662 sources += [ 1663 "crypto/bn/asm/x86_64-gcc.c", 1664 "crypto/bn/rsaz_exp.c", 1665 "crypto/bn/rsaz_exp_x2.c", 1666 ] 1667 } else if (openssl_selected_platform == "linux64-loongarch64") { 1668 sources += [ 1669 "crypto/aes/aes_cbc.c", 1670 "crypto/aes/aes_core.c", 1671 "crypto/bn/bn_asm.c", 1672 "crypto/camellia/camellia.c", 1673 "crypto/camellia/cmll_cbc.c", 1674 "crypto/loongarchcap.c", 1675 "crypto/rc4/rc4_enc.c", 1676 "crypto/rc4/rc4_skey.c", 1677 "crypto/whrlpool/wp_block.c", 1678 1679 # v_check bind_engine multi defined 1680 "engines/e_afalg.c", 1681 1682 # ChaCha20_ctr32 1683 "crypto/chacha/chacha_enc.c", 1684 1685 # ./crypto/sha/keccak1600.c:1096 SHA3_squeeze func 1686 "crypto/sha/keccak1600.c", 1687 ] 1688 1689 sources -= [ 1690 # ecp_nistz256_xxx func 1691 "crypto/ec/ecp_nistz256.c", 1692 1693 # v_check bind_engine multi defined 1694 "engines/e_capi.c", 1695 ] 1696 } 1697 1698 configs = [ ":crypto_config_private" ] 1699 public_configs = [ ":crypto_config_public" ] 1700 deps = [ ":openssl_build_all_generated" ] 1701} 1702 1703ohos_static_library("libcrypto_static") { 1704 if (!compatible_with_legacy_build_system) { 1705 subsystem_name = "thirdparty" 1706 part_name = "openssl" 1707 } 1708 deps = [ ":crypto_source" ] 1709 public_configs = [ ":crypto_config_public" ] 1710 complete_static_lib = true 1711} 1712 1713if (is_mingw || is_mac) { 1714 ohos_shared_library("libcrypto_restool") { 1715 sources = [] 1716 configs = [] 1717 deps = [ ":crypto_source" ] 1718 if (openssl_selected_platform == "mingw64") { 1719 sources += [ "crypto/dllmain.c" ] 1720 configs += [ ":crypto_config_private" ] 1721 } 1722 if (compatible_with_legacy_build_system) { 1723 subsystem_name = "security" 1724 part_name = "huks" 1725 } else { 1726 subsystem_name = "thirdparty" 1727 part_name = "openssl" 1728 } 1729 public_configs = [ ":crypto_config_public" ] 1730 install_images = [ 1731 "system", 1732 "updater", 1733 ] 1734 } 1735} 1736 1737ohos_shared_library("libcrypto_shared") { 1738 sources = [] 1739 configs = [] 1740 deps = [ 1741 ":crypto_source", 1742 ":openssl.cnf", 1743 ] 1744 if (openssl_selected_platform == "mingw64") { 1745 sources += [ "crypto/dllmain.c" ] 1746 configs += [ ":crypto_config_private" ] 1747 } 1748 if (current_os == "ios") { 1749 ldflags = [ 1750 "-Wl", 1751 "-install_name", 1752 "@rpath/libcrypto_openssl.framework/libcrypto_openssl", 1753 ] 1754 output_name = "crypto_openssl" 1755 } else { 1756 output_name = "libcrypto_openssl" 1757 } 1758 if (compatible_with_legacy_build_system) { 1759 subsystem_name = "security" 1760 part_name = "huks" 1761 } else { 1762 subsystem_name = "thirdparty" 1763 part_name = "openssl" 1764 } 1765 if (!compatible_with_legacy_build_system) { 1766 innerapi_tags = [ 1767 "platformsdk", 1768 "chipsetsdk", 1769 ] 1770 } 1771 public_configs = [ ":crypto_config_public" ] 1772 install_images = [ 1773 "system", 1774 "updater", 1775 ] 1776} 1777 1778if (current_os == "ios") { 1779 ohos_combine_darwin_framework("libcrypto_openssl") { 1780 deps = [ ":libcrypto_shared" ] 1781 subsystem_name = "thirdparty" 1782 part_name = "openssl" 1783 } 1784} 1785 1786unused_variables = [] 1787unused_variables += unused_variables 1788unused_variables += crypto_config_common_private_include_dirs 1789unused_variables += crypto_config_common_public_include_dirs 1790unused_variables += crypto_config_common_cflags 1791unused_variables += crypto_config_linux_armv4_cflags 1792unused_variables += crypto_config_linux_aarch64_cflags 1793unused_variables += crypto_config_darwin64_x86_64_cc_cflags 1794unused_variables += crypto_config_darwin64_arm64_cc_cflags 1795unused_variables += crypto_config_linux_x86_64_cflags 1796unused_variables += crypto_config_mingw64_cflags 1797unused_variables += crypto_config_linux_loongarch64_cflags 1798unused_variables += libcommon_common_sources 1799unused_variables += libdefault_common_sources 1800unused_variables += libcrypto_build_all_generated_linux_armv4_sources 1801unused_variables += libcrypto_build_all_generated_linux_aarch64_sources 1802unused_variables += libcrypto_build_all_generated_darwin64_x86_64_cc_sources 1803unused_variables += libcrypto_build_all_generated_darwin64_arm64_cc_sources 1804unused_variables += libcrypto_build_all_generated_linux_x86_64_sources 1805unused_variables += libcrypto_build_all_generated_mingw64_sources 1806unused_variables += libcrypto_build_all_generated_linux_loongarch64_sources 1807 1808config("ssl_config_private") { 1809 include_dirs = crypto_config_common_private_include_dirs 1810 cflags = crypto_config_common_cflags + crypto_config_current_platform_cflags + 1811 openssl_internal_cflags 1812} 1813 1814config("ssl_config_public") { 1815 include_dirs = crypto_config_common_public_include_dirs 1816} 1817 1818ohos_source_set("ssl_source") { 1819 if (!compatible_with_legacy_build_system) { 1820 subsystem_name = "thirdparty" 1821 part_name = "openssl" 1822 } 1823 1824 # 升级修改适配检查点27 libssl 源码列表 1825 sources = [ 1826 "ssl/bio_ssl.c", 1827 "ssl/d1_lib.c", 1828 "ssl/d1_msg.c", 1829 "ssl/d1_srtp.c", 1830 "ssl/methods.c", 1831 "ssl/pqueue.c", 1832 "ssl/record/dtls1_bitmap.c", 1833 "ssl/record/rec_layer_d1.c", 1834 "ssl/record/rec_layer_s3.c", 1835 "ssl/record/ssl3_buffer.c", 1836 "ssl/record/ssl3_record.c", 1837 "ssl/record/ssl3_record_tls13.c", 1838 "ssl/s3_enc.c", 1839 "ssl/s3_lib.c", 1840 "ssl/s3_msg.c", 1841 "ssl/ssl_asn1.c", 1842 "ssl/ssl_cert.c", 1843 "ssl/ssl_ciph.c", 1844 "ssl/ssl_conf.c", 1845 "ssl/ssl_err.c", 1846 "ssl/ssl_err_legacy.c", 1847 "ssl/ssl_init.c", 1848 "ssl/ssl_lib.c", 1849 "ssl/ssl_mcnf.c", 1850 "ssl/ssl_rsa.c", 1851 "ssl/ssl_rsa_legacy.c", 1852 "ssl/ssl_sess.c", 1853 "ssl/ssl_stat.c", 1854 "ssl/ssl_txt.c", 1855 "ssl/ssl_utst.c", 1856 "ssl/statem/extensions.c", 1857 "ssl/statem/extensions_clnt.c", 1858 "ssl/statem/extensions_cust.c", 1859 "ssl/statem/extensions_srvr.c", 1860 "ssl/statem/statem.c", 1861 "ssl/statem/statem_clnt.c", 1862 "ssl/statem/statem_dtls.c", 1863 "ssl/statem/statem_lib.c", 1864 "ssl/statem/statem_srvr.c", 1865 "ssl/t1_enc.c", 1866 "ssl/t1_lib.c", 1867 "ssl/t1_trce.c", 1868 "ssl/tls13_enc.c", 1869 "ssl/tls_depr.c", 1870 "ssl/tls_srp.c", 1871 ] 1872 1873 configs = [ ":ssl_config_private" ] 1874 public_configs = [ ":ssl_config_public" ] 1875 deps = [ ":openssl_build_all_generated" ] 1876} 1877 1878ohos_static_library("libssl_static") { 1879 if (!compatible_with_legacy_build_system) { 1880 subsystem_name = "thirdparty" 1881 part_name = "openssl" 1882 } 1883 deps = [ ":ssl_source" ] 1884 public_configs = [ ":ssl_config_public" ] 1885 complete_static_lib = true 1886} 1887 1888ohos_shared_library("libssl_shared") { 1889 deps = [ 1890 ":libcrypto_shared", 1891 ":openssl.cnf", 1892 ":ssl_source", 1893 ] 1894 if (current_os == "ios") { 1895 ldflags = [ 1896 "-Wl", 1897 "-install_name", 1898 "@rpath/libssl_openssl.framework/libssl_openssl", 1899 ] 1900 output_name = "ssl_openssl" 1901 } else { 1902 output_name = "libssl_openssl" 1903 } 1904 if (compatible_with_legacy_build_system) { 1905 subsystem_name = "developtools" 1906 part_name = "profiler" 1907 } else { 1908 subsystem_name = "thirdparty" 1909 part_name = "openssl" 1910 } 1911 1912 if (!compatible_with_legacy_build_system) { 1913 innerapi_tags = [ 1914 "platformsdk", 1915 "chipsetsdk", 1916 ] 1917 } 1918 public_configs = [ 1919 ":crypto_config_public", 1920 ":ssl_config_public", 1921 ] 1922 1923 install_images = [ 1924 "system", 1925 1926 # compile libssl_openssl.z.so to the updater image for wpa to use 1927 "updater", 1928 ] 1929} 1930 1931if (current_os == "ios") { 1932 ohos_combine_darwin_framework("libssl_openssl") { 1933 deps = [ ":libssl_shared" ] 1934 subsystem_name = "thirdparty" 1935 part_name = "openssl" 1936 } 1937} 1938 1939ohos_static_library("libapps") { 1940 # 升级修改适配检查点28 libapps 源码列表 1941 sources = [ 1942 "apps/lib/app_libctx.c", 1943 "apps/lib/app_params.c", 1944 "apps/lib/app_provider.c", 1945 "apps/lib/app_rand.c", 1946 "apps/lib/app_x509.c", 1947 "apps/lib/apps.c", 1948 "apps/lib/apps_ui.c", 1949 "apps/lib/columns.c", 1950 "apps/lib/engine.c", 1951 "apps/lib/engine_loader.c", 1952 "apps/lib/fmt.c", 1953 "apps/lib/http_server.c", 1954 "apps/lib/names.c", 1955 "apps/lib/opt.c", 1956 "apps/lib/s_cb.c", 1957 "apps/lib/s_socket.c", 1958 "apps/lib/tlssrp_depr.c", 1959 ] 1960 if (openssl_selected_platform == "mingw64") { 1961 sources += [ "apps/lib/win32_init.c" ] 1962 } 1963 if (!compatible_with_legacy_build_system) { 1964 subsystem_name = "thirdparty" 1965 part_name = "openssl" 1966 } 1967 configs = [ ":crypto_config_private" ] 1968} 1969 1970ohos_executable("openssl") { 1971 # 升级修改适配检查点29 apps/openssl 源码列表 1972 sources = [ 1973 "${build_all_generated_path}/apps/progs.c", 1974 "apps/asn1parse.c", 1975 "apps/ca.c", 1976 "apps/ciphers.c", 1977 "apps/cmp.c", 1978 "apps/cms.c", 1979 "apps/crl.c", 1980 "apps/crl2pkcs7.c", 1981 "apps/dgst.c", 1982 "apps/dhparam.c", 1983 "apps/dsa.c", 1984 "apps/dsaparam.c", 1985 "apps/ec.c", 1986 "apps/ecparam.c", 1987 "apps/enc.c", 1988 "apps/engine.c", 1989 "apps/errstr.c", 1990 "apps/fipsinstall.c", 1991 "apps/gendsa.c", 1992 "apps/genpkey.c", 1993 "apps/genrsa.c", 1994 "apps/info.c", 1995 "apps/kdf.c", 1996 "apps/lib/cmp_mock_srv.c", 1997 "apps/list.c", 1998 "apps/mac.c", 1999 "apps/nseq.c", 2000 "apps/ocsp.c", 2001 "apps/openssl.c", 2002 "apps/passwd.c", 2003 "apps/pkcs12.c", 2004 "apps/pkcs7.c", 2005 "apps/pkcs8.c", 2006 "apps/pkey.c", 2007 "apps/pkeyparam.c", 2008 "apps/pkeyutl.c", 2009 "apps/prime.c", 2010 "apps/rand.c", 2011 "apps/rehash.c", 2012 "apps/req.c", 2013 "apps/rsa.c", 2014 "apps/rsautl.c", 2015 "apps/s_client.c", 2016 "apps/s_server.c", 2017 "apps/s_time.c", 2018 "apps/sess_id.c", 2019 "apps/smime.c", 2020 "apps/speed.c", 2021 "apps/spkac.c", 2022 "apps/srp.c", 2023 "apps/storeutl.c", 2024 "apps/ts.c", 2025 "apps/verify.c", 2026 "apps/version.c", 2027 "apps/x509.c", 2028 ] 2029 if (openssl_selected_platform == "mingw64") { 2030 sources += [ "${build_all_generated_path}/apps/openssl.rc" ] 2031 } 2032 deps = [ 2033 ":libapps", 2034 ":libcrypto_shared", 2035 ":libssl_shared", 2036 ":openssl.cnf", 2037 ":openssl_build_all_generated", 2038 ] 2039 if (compatible_with_legacy_build_system) { 2040 subsystem_name = "security" 2041 part_name = "huks" 2042 } else { 2043 subsystem_name = "thirdparty" 2044 part_name = "openssl" 2045 } 2046 configs = [ ":crypto_config_private" ] 2047} 2048# 升级修改适配检查点 汇总 2049# 2050# libcommon = 2051# libcommon 生成的源码列表(7) + 2052# libcommon 原目录源码列表(17) 2053# 2054# libdefault = 2055# libdefault 生成的源码列表(8) + 2056# libdefault 原目录源码列表(18) 2057# 2058# liblegacy = 2059# liblegacy 源码列表(19) 2060# 2061# libcrypto = 2062# libcrypto 不同平台汇编代码(1,2,3,4,5,6) + 2063# libcrypto 不同平台c源码列表(21,22,23,24,25,26) + 2064# libcrypto 原目录源码列表(20) + 2065# libcommon + 2066# libdefault + 2067# liblegacy 2068# 2069# libssl = 2070# libssl 源码列表(27) 2071# 2072# libapps = 2073# libapps 源码列表(28) 2074# 2075# apps/openssl = 2076# apps/openssl 源码列表(29) + 2077# libapps 2078# 2079# 编译选项 = 2080# 内部公共头文件目录列表(9) + 2081# 内部公共编译选项宏列表(10) + 2082# 内部不同平台编译选项列表(11,12,13,14,15,16) 2083