From 1c7091c45a2ef807bd8998b483d45843baf8a5f3 Mon Sep 17 00:00:00 2001 From: openharmony_ci <120357966@qq.com> Date: Thu, 28 Sep 2023 01:39:06 +0000 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E9=80=80=20'Pull=20Request=20!183=20:?= =?UTF-8?q?=20=E4=BF=AE=E5=A4=8Dprofile=E6=9C=AA=E9=AA=8C=E7=AD=BE?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- interfaces/innerkits/appverify/src/verify/hap_verify_v2.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/interfaces/innerkits/appverify/src/verify/hap_verify_v2.cpp b/interfaces/innerkits/appverify/src/verify/hap_verify_v2.cpp index 32c213a..6379eb2 100644 --- a/interfaces/innerkits/appverify/src/verify/hap_verify_v2.cpp +++ b/interfaces/innerkits/appverify/src/verify/hap_verify_v2.cpp @@ -210,8 +210,7 @@ bool HapVerifyV2::VerifyAppSourceAndParseProfile(Pkcs7Context& pkcs7Context, bool HapVerifyV2::VerifyProfileSignature(const Pkcs7Context& pkcs7Context, Pkcs7Context& profileContext) { if (pkcs7Context.matchResult.matchState == MATCH_WITH_SIGN && - (pkcs7Context.matchResult.source == APP_THIRD_PARTY_PRELOAD || - pkcs7Context.matchResult.source == OTHER_TRUSTED_SOURCE)) { + pkcs7Context.matchResult.source == APP_THIRD_PARTY_PRELOAD) { if (!HapProfileVerifyUtils::VerifyProfile(profileContext)) { HAPVERIFY_LOG_ERROR(LABEL, "profile verify failed"); return false; -- Gitee