| | |
| | | #include "public-key.h" |
| | | #include <build_properties.h> |
| | | |
| | | #include "os/os-cpp.h" |
| | | |
| | | namespace license { |
| | | |
| | | const char *FullLicenseInfo::UNUSED_TIME = "0000-00-00"; |
| | |
| | | EventRegistry FullLicenseInfo::validate(int sw_version) { |
| | | EventRegistry er; |
| | | os_initialize(); |
| | | bool sigVerified = OsFunctions::verifySignature(printForSign().c_str(), |
| | | FUNCTION_RETURN sigVer = verifySignature(printForSign().c_str(), |
| | | license_signature.c_str()); |
| | | bool sigVerified = sigVer == FUNC_RET_OK; |
| | | if (sigVerified) { |
| | | er.addEvent(LICENSE_VERIFIED, SVRT_INFO); |
| | | } else { |