#ifndef _INSTALLER_DEFS_H_
#define _INSTALLER_DEFS_H_
-#define OSP_INSTALLER_VERSION "osp-installer version = [2012/11/19]_RC[1]"
+#define OSP_INSTALLER_VERSION "osp-installer version = [2012/11/20]_RC[1]"
#define DIR_BIN L"/bin"
#define DIR_INFO L"/info"
,__continue(true)
,__preloaded(false)
,__hybridService(false)
+,__verificationMode(false)
,__operation(INSTALLER_OPERATION_INSTALL)
,__storage(INSTALLATION_STORAGE_INTERNAL)
,__pPrivilegeList(null)
__hybridService = hybridService;
}
+bool
+InstallationContext::IsVerificationMode(void)
+{
+ return __verificationMode;
+}
+
+void
+InstallationContext::SetVerificationMode(bool verificationMode)
+{
+ __verificationMode = verificationMode;
+}
+
const String&
InstallationContext::GetPackagePath(void) const
{
bool IsHybridService(void);
void SetHybridService(bool hybridService);
+ bool IsVerificationMode(void);
+ void SetVerificationMode(bool verificationMode);
+
const Osp::Base::String& GetPackagePath(void) const;
void SetPackagePath(const Osp::Base::String& packagePath);
bool __continue;
bool __preloaded;
bool __hybridService;
+ bool __verificationMode;
Osp::Base::String __inputPath;
InstallerOperation __operation;
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;
}
__pContext = pContext;
- // signature.xml for beta
- FileAttributes attr;
- result r = E_SUCCESS;
-
- r = File::GetAttributes(__pContext->GetSignatureXmlPath(), attr);
- if (r != E_SUCCESS)
+ if (__pContext->IsVerificationMode() == false)
{
AppLogTag(OSP_INSTALLER, "Signature file not found. path = [%ls]\n", __pContext->GetSignatureXmlPath().GetPointer());
return INSTALLER_ERROR_NONE;
bool
ManifestHandler::OnPrivilegesEndElement(void)
{
- // signature.xml for beta
- FileAttributes attr;
- result r = E_SUCCESS;
-
- r = File::GetAttributes(__pContext->GetSignatureXmlPath(), attr);
- if (r != E_SUCCESS)
+ if (__pContext->IsVerificationMode() == false)
{
AppLogTag(OSP_INSTALLER, "Signature file not found. [%ls]\n", __pContext->GetSignatureXmlPath().GetPointer());
+ result r = E_SUCCESS;
String privileges;
String hmacPrivileges;
String appId = __pPackageInfoImpl->GetAppId();