appType = WrtSignatureValidator::TIZEN;
}
- WrtSignatureValidator validator(
- appType,
- !GlobalSettings::OCSPTestModeEnabled(),
- !GlobalSettings::CrlTestModeEnabled(),
- complianceMode);
-
- WrtSignatureValidator::Result result =
- validator.check(data, widgetPath);
+ WrtSignatureValidator::Result result;
+
+ if (m_contextData.widgetConfig.packagingType
+ == WrtDB::PKG_TYPE_DIRECTORY_WEB_APP)
+ {
+ // In directory installation mode, the validation is skipped.
+
+ result = WrtSignatureValidator::SIGNATURE_VERIFIED;
+ }
+ else
+ {
+ WrtSignatureValidator validator(appType,
+ !GlobalSettings::OCSPTestModeEnabled(),
+ !GlobalSettings::CrlTestModeEnabled(),
+ complianceMode);
+
+ result = validator.check(data, widgetPath);
+ }
if (result == WrtSignatureValidator::SIGNATURE_REVOKED) {
LogWarning("Certificate is REVOKED");
std::string WidgetLocation::getTemporaryRootDir() const
{
if (m_type == WrtDB::PKG_TYPE_DIRECTORY_WEB_APP) {
- return getWidgetSource();
+ return getWidgetSource() + WrtDB::GlobalConfig::GetWidgetSrcPath();
}
if(m_type == WrtDB::PKG_TYPE_HYBRID_WEB_APP)
{