From c28d5cc336ccbedadfbc8696836ea378aa28f054 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B6=82=E9=98=94?= Date: Mon, 5 May 2025 15:20:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9Efeature=E7=89=B9=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 涂阔 --- BUILD.gn | 6 ++++++ bundle.json | 3 ++- mbedtls.gni | 1 + 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/BUILD.gn b/BUILD.gn index f7eeeac70..9fbc9e0b6 100755 --- a/BUILD.gn +++ b/BUILD.gn @@ -128,6 +128,12 @@ if (defined(ohos_lite)) { } ohos_shared_library("mbedtls_shared") { + if (mbedtls_enable_ssl_srv == true) { + defines = [ + "MBEDTLS_SSL_SRV_C", + ] + } + branch_protector_ret = "pac_ret" public_configs = [ ":mbedtls_config" ] output_name = "mbedtls" diff --git a/bundle.json b/bundle.json index 04fdbedf5..628dd8c42 100755 --- a/bundle.json +++ b/bundle.json @@ -14,7 +14,8 @@ "subsystem": "thirdparty", "syscap": [], "features": [ - "mbedtls_porting_path" + "mbedtls_porting_path", + "mbedtls_enable_ssl_srv" ], "adapted_system_type": [ "mini", diff --git a/mbedtls.gni b/mbedtls.gni index 4cd41d4bf..670a812cc 100644 --- a/mbedtls.gni +++ b/mbedtls.gni @@ -33,6 +33,7 @@ defines = [] declare_args() { # custom compile flag for bestechnic mbedtls_porting_path = "" + mbedtls_enable_ssl_srv = false } LIBRARYFILES = [ -- Gitee