src/library/LicenseReader.cpp | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/library/api/license++.h | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/library/os/linux/os-linux.c | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/library/pc-identifiers.h | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/library/LicenseReader.cpp
@@ -18,6 +18,7 @@ #include <fstream> #include <sstream> #include <stdlib.h> #include "pc-identifiers.h" #include "LicenseReader.h" #include "base/StringUtils.h" #include "base/public-key.h" @@ -68,7 +69,7 @@ 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); } } @@ -149,8 +150,7 @@ 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); src/library/api/license++.h
@@ -13,7 +13,9 @@ #ifdef __unix__ #define DllExport #define MAX_PATH 1024 #ifndef MAX_PATH #define MAX_PATH 1024 #endif #else #include <windows.h> #define DllExport __declspec( dllexport ) src/library/os/linux/os-linux.c
@@ -175,8 +175,8 @@ hexuuid = (char *) malloc(sizeof(char) * strlen(uuid)); memset(buffer_out, 0, out_size); for (i = 0, j = 0; j < len; i++) { if (isxdigit(uuid[j])) { for (i = 0, j = 0; i < len; i++) { if (isxdigit(uuid[i])) { hexuuid[j] = uuid[i]; j++; } else { src/library/pc-identifiers.h
@@ -10,6 +10,10 @@ #include "api/datatypes.h" #include "base/base.h" #ifdef __cplusplus extern "C" { #endif typedef unsigned char PcIdentifier[6]; typedef char UserPcIdentifier[21]; @@ -19,4 +23,7 @@ EVENT_TYPE validate_user_pc_identifier(UserPcIdentifier str_code); #ifdef __cplusplus } #endif #endif /* PC_IDENTIFIERS_H_ */