From 20a0100c70ed9095972886ccf067cf03dfb8a405 Mon Sep 17 00:00:00 2001 From: jxw Date: Thu, 10 Jul 2025 06:55:07 +0000 Subject: [PATCH 1/2] update network/netssl/include/net_ssl_c.h. Signed-off-by: jxw --- network/netssl/include/net_ssl_c.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/network/netssl/include/net_ssl_c.h b/network/netssl/include/net_ssl_c.h index 15d86407af3..9d0336d1ff4 100644 --- a/network/netssl/include/net_ssl_c.h +++ b/network/netssl/include/net_ssl_c.h @@ -137,6 +137,21 @@ int32_t OH_Netstack_IsCleartextPermitted(bool *isCleartextPermitted); */ int32_t OH_Netstack_IsCleartextPermittedByHostName(const char *hostname, bool *isCleartextPermitted); + +/** + * @brief Checks whether the component is configured for Cleartext traffic interception. + * + * @return 0 - Success. + * 202 - Non-system applications use system APIs. + * 2100001 - Invalid parameter value. + * @param component Indicates the component name. + * @param componentCfg Indicates output parameter, + * {@code true} if the component is configured for Cleartext traffic interception, {@code false} otherwise. + * @systemapi Hide this for inner system use. + * @since 20 + */ +int32_t OH_Netstack_IsCleartextCfgByComponent(const char *component, bool *componentCfg) + #ifdef __cplusplus } #endif -- Gitee From cbc17137ebb312247d01b8401e4c39737e52e34f Mon Sep 17 00:00:00 2001 From: jxw Date: Thu, 10 Jul 2025 06:56:17 +0000 Subject: [PATCH 2/2] update network/netssl/libnet_ssl_c.json. Signed-off-by: jxw --- network/netssl/libnet_ssl_c.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/network/netssl/libnet_ssl_c.json b/network/netssl/libnet_ssl_c.json index 4336fd70a34..9bf9f66d131 100644 --- a/network/netssl/libnet_ssl_c.json +++ b/network/netssl/libnet_ssl_c.json @@ -22,5 +22,9 @@ { "first_introduced":"18", "name": "OH_Netstack_IsCleartextPermittedByHostName" + }, + { + "first_introduced":"20", + "name": "OH_Netstack_IsCleartextCfgByComponent" } ] -- Gitee