!187 回退代码

Merge pull request !187 from shilei91/master
This commit is contained in:
openharmony_ci 2023-09-28 05:01:08 +00:00 committed by Gitee
commit 559601aa55
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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;