!183 修复profile未验签的问题

Merge pull request !183 from shilei91/master
This commit is contained in:
openharmony_ci 2023-09-27 04:15:41 +00:00 committed by Gitee
commit 1d243f10c1
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -210,7 +210,8 @@ 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 == APP_THIRD_PARTY_PRELOAD ||
pkcs7Context.matchResult.source == OTHER_TRUSTED_SOURCE)) {
if (!HapProfileVerifyUtils::VerifyProfile(profileContext)) {
HAPVERIFY_LOG_ERROR(LABEL, "profile verify failed");
return false;