Config Function

Description

Configures the behavior of the Licensing API for a specific application run-time session.

This function can be used to:

>Specify the identity string to be used to access a cloud license (for identity-based licensing).

>Specify the server certificate for HTTPS communication.

>(Sentinel EMS only) Request the credentials to be used to access a cloud license.

> (Sentinel EMS only) Specify the JWT to be used to access a cloud license.

>(Sentinel EMS only) Configure collection of usage data for Sentinel Data Platform.

Syntax

hasp_status_t HASP_CALLCONV hasp_config(const char *config, hasp_vendor_code_t vendor_code);

Parameters

config

Definition of the configuration data in XML format.

For more information, see XML Tags for the HASP_CONFIG Function.

vendor_code Bytes that contain the Vendor Code

Return Values

HASP_STATUS_OK

HASP_INVALID_PARAMETER

HASP_INV_FORMAT

HASP_INSUF_MEM

HASP_INT_ERR

Usage Notes

Call this function before you call the Login Function function.

The configuration defined by the function remains active for the duration of the application run-time session.

The required Vendor Codes are stored in a VendorCodes folder in your system. Without the correct Vendor Code, the function call cannot succeed.

Related Topics

XML Tags for the HASP_CONFIG Function