Quantcast
Channel: Gemalto Sentinel Customer Discussions
Viewing all articles
Browse latest Browse all 1619

Re : How to format Sentinel Hasp HL key?

$
0
0
Hi Siva, 

Thanks for raising the concern.

Yes, we can use License generation api provided with sentinel LDK for format function. You may like to check C# license generation library shared in below location in the LDK setup.

C:\Program Files (x86)\Gemalto Sentinel\Sentinel LDK\API\Licgen\DotNet

To perform HL key format, please call below functions in your application code.

step 1 : licGenHelper.sntl_lg_initialize() to initialize LicGen handle.

step 2 : licGenHelper.sntl_lg_start () and pass parameters such as start_param, license_type, vendor_code, current_state and license_template.

For example :

string start_param = null;

sntl_lg_license_type_t license_type = sntl_lg_license_type_t.SNTL_LG_LICENSE_TYPE_FORMAT_AND_UPDATE;

string vendor_code = /*Vendor code string*/;

string definition = null;

string current_state; /* fill the buffer with data from TestIt.c2v. */

status = licGenHelper.sntl_lg_start(start_param, vendor_code, license_type, definition, current_state);

if (sntl_lg_status_t.SNTL_LG_STATUS_OK != status)

{

/*handle error*/

}


Step 3 :  licGenHelper.sntl_lg_generate_license () and save the license status as V2C file.

Step 4 :  licGenHelper.sntl_lg_cleanup() to remove the handle created in step 1.

Please be suggested to use 'Sentinel Toolbox' to test the API execution flow. 

You may set the prefered language as C# under "Files" > "Settings" > "Toolbox" to show implementation in code snippets.

Please try the same and let me know if you have any further doubts.

Best regards,
Parth


Viewing all articles
Browse latest Browse all 1619

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>