diff --git a/oem_property/common/BUILD.gn b/oem_property/common/BUILD.gn index 184f1b069c8eecf5779c2b356ec6718c3c35279e..1d068b91cd22bcf1a1602650760a437a8e395922 100644 --- a/oem_property/common/BUILD.gn +++ b/oem_property/common/BUILD.gn @@ -31,7 +31,6 @@ ohos_source_set("oem_common_obj") { if (defined(ohos_lite)) { if (ohos_kernel_type == "linux" || ohos_kernel_type == "liteos_a") { - deps += [ "//third_party/openssl/ohos_lite:openssl_shared" ] external_deps = [ "hilog_lite:hilog_shared" ] } else if (ohos_kernel_type == "liteos_m") { deps += [ "$dslm_hilog_path/featured:hilog_static" ] diff --git a/services/common/BUILD.gn b/services/common/BUILD.gn index b41a1aa55c10bbc8e84b321c6cd22036dcc4a086..a1a7a8f85f7cc8ab290cce406dc5b8a2508d9d0a 100644 --- a/services/common/BUILD.gn +++ b/services/common/BUILD.gn @@ -30,16 +30,10 @@ ohos_source_set("service_common_obj") { if (defined(ohos_lite)) { if (ohos_kernel_type == "linux" || ohos_kernel_type == "liteos_a") { - deps += [ - "$dslm_ipc_path/interfaces/innerkits/c/ipc:ipc_single", - "//third_party/openssl/ohos_lite:openssl_shared", - ] + deps += [ "$dslm_ipc_path/interfaces/innerkits/c/ipc:ipc_single" ] external_deps = [ "hilog_lite:hilog_shared" ] } else if (ohos_kernel_type == "liteos_m") { - deps += [ - "$dslm_hilog_path/featured:hilog_static", - "//third_party/openssl/ohos_lite:openssl_static", - ] + deps += [ "$dslm_hilog_path/featured:hilog_static" ] } } else { sanitize = { diff --git a/services/common/dslm_crypto.c b/services/common/dslm_crypto.c index 9e7d1322514045f22124a1d9e432d3d109427213..f33e7e0f542a235f62aaa13baf0b155d7a098dce 100644 --- a/services/common/dslm_crypto.c +++ b/services/common/dslm_crypto.c @@ -18,7 +18,9 @@ #include #include +#ifdef L2_STANDARD #include "openssl/rand.h" +#endif void GenerateRandom(RandomValue *rand, uint32_t length) {