Configuring Lease Mode
Declare Variables/Constants
#define CONTACT_SERVER "no-net"
sntl_licensing_attr_t *pAttrAppContext = NULL;
sntl_licensing_app_context_t *pAppContext = NULL;
API Calls
To obtain lease, execute the APIs in the specified sequential order only:
sntl_licensing_attr_new(&pAttrAppContext);
sntl_licensing_attr_set(pAttrAppContext, SNTL_ATTR_APPCONTEXT_CONTACT_SERVER, CONTACT_SERVER);
sntl_licensing_app_context_new(0, pAttrAppContext, &pAppContext);
Sample Workflow—sntl_lease_demo
Refer to the C sample sntl_lease_demo (provided with the SCL Add-on for RMS Package) for a specific API function, its parameters, and usage. Here is the workflow of the sample: