| | |
| | | * sw_version_to = (optional int) |
| | | * from_date = YYYY-MM-DD (optional) |
| | | * to_date = YYYY-MM-DD (optional) |
| | | * client_signature = XXXX-XXXX-XXXX-XXXX (optional string 16) |
| | | * client_signature = XXXX-XXXX-XXXX (optional string 16) |
| | | * sig = XXXXXXXXXX (mandatory, 1024) |
| | | * application_data = xxxxxxxxx (optional string 16) |
| | | */ |
| | | const char *license_signature = ini.GetValue(productNamePtr, LICENSE_SIGNATURE, nullptr); |
| | | long license_version = ini.GetLongValue(productNamePtr, LICENSE_VERSION, -1); |
| | | if (license_signature != nullptr && license_version == 200) { |
| | | //没有用这个license_version了 不需要读 |
| | | // long license_version = ini.GetLongValue(productNamePtr, LICENSE_VERSION, -1); |
| | | if (license_signature != nullptr /*&& license_version == 200*/) { |
| | | CSimpleIniA::TNamesDepend keys; |
| | | ini.GetAllKeys(productNamePtr, keys); |
| | | FullLicenseInfo licInfo(*it, product, license_signature); |
| | |
| | | } |
| | | } |
| | | |
| | | #ifdef _DEBUG |
| | | cout << "license to sign [" << oss.str() << "]" << endl; |
| | | #endif |
| | | return oss.str(); |
| | | } |
| | | |