mirror of
https://gitee.com/openharmony/security_appverify
synced 2024-11-23 06:29:44 +00:00
!232 app_system校验profile
Merge pull request !232 from Zhou Shihui/master
This commit is contained in:
commit
403735d00c
@ -232,7 +232,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 == APP_SYSTEM)) {
|
||||
if (!HapProfileVerifyUtils::VerifyProfile(profileContext)) {
|
||||
HAPVERIFY_LOG_ERROR("profile verify failed");
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user