mirror of
https://gitee.com/openharmony/security_appverify
synced 2024-11-30 10:10:59 +00:00
commit
559601aa55
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user