[Issue#] N/A
[Problem] occure crash during RDS update
[Cause] side effect from skip to validate a signature.
[Solution] Fixed validate signature logic.
[SCMRequest] N/A
WrtSignatureValidator::Result result;
+ WrtSignatureValidator validator(
+ appType,
+ !GlobalSettings::
+ OCSPTestModeEnabled(),
+ !GlobalSettings::
+ CrlTestModeEnabled(),
+ complianceMode);
+
+ result = validator.check(data, widgetPath);
+
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) {