New commit seems broken

46 views
Skip to first unread message

Mihir Shah

unread,
Dec 18, 2020, 5:09:52 AM12/18/20
to licensecc users

Hi,

The current commit v1.0.0-435-g48d2775 seems to be broken.

v1.0.0-430-gecd2f38 worked well and my software could verify license perfectly. I just deployed a new build environment in which v1.0.0-435-g48d2775 is being used, and now the acquire_license() keeps returning LICENSE_CORRUPTED.

Although the license inspector keeps showing license OK.

Has something changed in the code? Is there a way I can debug this better?

I am running the software on a virtual box and am passing callerInfo, and licenseLocation to acquire_license()

`CallerInformations callerInfo;
strcpy(callerInfo.version, "200");
strcpy(callerInfo.feature_name, "MySW");
callerInfo.magic = 0;
LicenseLocation licenseLocation;
licenseLocation.license_data_type = LCC_LICENSE_DATA_TYPE::LICENSE_PATH;
strcpy(licenseLocation.licenseData, "./MySW.lic");
LicenseInfo licenseInfo;
size_t bufSize = LCC_API_PC_IDENTIFIER_SIZE + 1;
char pc_identifier[LCC_API_PC_IDENTIFIER_SIZE + 1];
ExecutionEnvironmentInfo exec_env_info;
bool isPCIdentified = identify_pc(STRATEGY_DEFAULT, pc_identifier, &bufSize, &exec_env_info);

LCC_EVENT_TYPE result = acquire_license(&callerInfo, &licenseLocation, &licenseInfo);`


On further investigation this is failing at /src/library/os/openssl/signature_verifier.cpp:53

if (rsa == NULL) { LOG_ERROR("Error reading public key"); return FUNC_RET_ERROR; }


Kindly help.


Gabriele Contini

unread,
Dec 21, 2020, 12:49:00 AM12/21/20
to licensecc users
Thanks for reporting, i'll check as soon as possible. 
Reply all
Reply to author
Forward
0 new messages