From 26521040d3886c2e055b8c7a46ed4ae448be52ac Mon Sep 17 00:00:00 2001 From: shilei Date: Thu, 28 Sep 2023 03:55:46 +0000 Subject: [PATCH] revert Signed-off-by: shilei Change-Id: I8e42cb5f5f607242b645aebb5c39a010ebc37c38 --- 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