| | |
| | | #include <fstream> |
| | | #include <sstream> |
| | | #include <stdlib.h> |
| | | #include "pc-identifiers.h" |
| | | #include "LicenseReader.h" |
| | | #include "base/StringUtils.h" |
| | | #include "base/public-key.h" |
| | |
| | | UserPcIdentifier str_code; |
| | | strncpy(str_code, client_signature.c_str(), sizeof(str_code)); |
| | | EVENT_TYPE event = validate_user_pc_identifier(str_code); |
| | | if (event != OK) { |
| | | if (event != LICENSE_OK) { |
| | | er.addEvent(event, SEVERITY_ERROR); |
| | | } |
| | | } |
| | |
| | | string client_signature = trim_copy( |
| | | ini.GetValue(productNamePtr, "client_signature", "")); |
| | | client_signature.erase( |
| | | std::remove(client_signature.begin(), |
| | | client_signature.end(), "-"), |
| | | std::remove(client_signature.begin(), client_signature.end(), '-'), |
| | | client_signature.end()); |
| | | int from_sw_version = ini.GetLongValue(productNamePtr, |
| | | "from_sw_version", FullLicenseInfo::UNUSED_SOFTWARE_VERSION); |