summaryrefslogtreecommitdiff
path: root/src/Step/PackageCheckStep.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Step/PackageCheckStep.cpp')
-rwxr-xr-xsrc/Step/PackageCheckStep.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Step/PackageCheckStep.cpp b/src/Step/PackageCheckStep.cpp
index c005fde..49a77d5 100755
--- a/src/Step/PackageCheckStep.cpp
+++ b/src/Step/PackageCheckStep.cpp
@@ -131,8 +131,16 @@ PackageCheckStep::OnStatePackageCheck(void)
AppLogTag(OSP_INSTALLER, "UnzipTo(manifest.xml) - START");
unzipper.UnzipTo(tempDir, L"info/manifest.xml");
unzipper.UnzipTo(tempDir, L"signature1.xml");
+ unzipper.UnzipTo(tempDir, L"author-signature.xml");
AppLogTag(OSP_INSTALLER, "UnzipTo(manifest.xml) - END");
+ if ((File::IsFileExist(__pContext->GetSignatureXmlPath()) == true) &&
+ (File::IsFileExist(__pContext->GetAuthorSignatureXmlPath()) == true))
+ {
+ AppLogTag(OSP_INSTALLER, "[VerifySignature] VerificationMode ON");
+ __pContext->SetVerificationMode(true);
+ }
+
GoNextState();
return error;
}