From f987f5874f7fbbd368b5f1b9c785e9ef3685eb0b Mon Sep 17 00:00:00 2001 From: Zhou Shihui Date: Mon, 18 Dec 2023 14:49:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Zhou Shihui --- .../innerkits/appverify/include/common/hap_verify_log.h | 4 ++-- .../innerkits/appverify/src/util/hap_profile_verify_utils.cpp | 2 +- interfaces/innerkits/appverify/src/verify/hap_verify_v2.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/interfaces/innerkits/appverify/include/common/hap_verify_log.h b/interfaces/innerkits/appverify/include/common/hap_verify_log.h index c1c430b..0ce4710 100644 --- a/interfaces/innerkits/appverify/include/common/hap_verify_log.h +++ b/interfaces/innerkits/appverify/include/common/hap_verify_log.h @@ -21,8 +21,8 @@ namespace OHOS { namespace Security { namespace Verify { -static constexpr uint32_t SECURITY_DOMAIN = 0xD002F00; -static constexpr OHOS::HiviewDFX::HiLogLabel LABEL = {LOG_CORE, SECURITY_DOMAIN, "HapVerify"}; +static constexpr uint32_t APPVERIFY_DOMAIN = 0xD001120; +static constexpr OHOS::HiviewDFX::HiLogLabel LABEL = {LOG_CORE, APPVERIFY_DOMAIN, "HapVerify"}; #define HAPVERIFY_LOG_DEBUG(label, fmt, ...) \ OHOS::HiviewDFX::HiLog::Debug(label, "%{public}s: " fmt, __func__, ##__VA_ARGS__) diff --git a/interfaces/innerkits/appverify/src/util/hap_profile_verify_utils.cpp b/interfaces/innerkits/appverify/src/util/hap_profile_verify_utils.cpp index 129e010..8973384 100644 --- a/interfaces/innerkits/appverify/src/util/hap_profile_verify_utils.cpp +++ b/interfaces/innerkits/appverify/src/util/hap_profile_verify_utils.cpp @@ -73,7 +73,7 @@ bool HapProfileVerifyUtils::VerifyProfile(Pkcs7Context& pkcs7Context) certSubject.c_str(), certIssuer.c_str()); return false; } - HAPVERIFY_LOG_INFO(LABEL, "profile subject: %{public}s, issuer: %{public}s", + HAPVERIFY_LOG_DEBUG(LABEL, "profile subject: %{public}s, issuer: %{public}s", certSubject.c_str(), certIssuer.c_str()); return true; } diff --git a/interfaces/innerkits/appverify/src/verify/hap_verify_v2.cpp b/interfaces/innerkits/appverify/src/verify/hap_verify_v2.cpp index dfa7398..ae2af2e 100644 --- a/interfaces/innerkits/appverify/src/verify/hap_verify_v2.cpp +++ b/interfaces/innerkits/appverify/src/verify/hap_verify_v2.cpp @@ -151,7 +151,7 @@ bool HapVerifyV2::VerifyAppSourceAndParseProfile(Pkcs7Context& pkcs7Context, HAPVERIFY_LOG_ERROR(LABEL, "Get info of sign cert failed"); return false; } - HAPVERIFY_LOG_INFO(LABEL, "App signature subject: %{public}s, issuer: %{public}s", + HAPVERIFY_LOG_DEBUG(LABEL, "App signature subject: %{public}s, issuer: %{public}s", certSubject.c_str(), pkcs7Context.certIssuer.c_str()); TrustedSourceManager& trustedSourceManager = TrustedSourceManager::GetInstance(); -- Gitee