mirror of
https://gitee.com/openharmony/security_appverify
synced 2024-12-02 19:47:32 +00:00
commit
1d243f10c1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user