VLS_UPDATE \ LSUpdate
Renews the license by sending an update to the License Manager.
Syntax
LS_STATUS_CODE VLS_UPDATE (LS_HANDLE lshandle);
Argument | Description |
---|---|
lshandle |
The handle previously returned by the corresponding request call. |
Description
Once a license is obtained, the client must periodically renew its license and inform the License Manager that it is alive by calling the update call.
The update call is required only when the automatic license renewal is disabled using the VLSdisableAutoTimer API.
By default, the licensing library defaults to automatic license renewal, wherein application sends an update call after the 80% of the key lifetime has elapsed.
Refer to "License Token Lifetime" under the section "Planning Application Licensing" of the Sentinel RMS SDK Developer Guide for more details.
About LSUpdate
A variant of the VLS_UPDATE function is also available which allows passing additional parameters for specific purposes. Refer to the syntax and parameters below for more details.
The function calls, return codes, and data types that begin with the LS prefix are part of the LSAPI standard, which was followed up till few years ago and has now been dropped. The API that begin with the VLS prefix are the extensions that make licensing easier to implement.
LS_STATUS_CODE LSUpdate (
LS_HANDLE lshandle,
unsigned long ulGraceSwitchToNetworkTm,
long *new_units_reqd,
unsigned char *log_comment,
LS_CHALLENGE *challenge );
Returns
The status code LS_SUCCESS is returned if successful. Otherwise, it will return the following error codes:
Error Code | Description |
VLS_CALLING_ERROR |
>lshandle is a queued handle. Cannot use VLS_UPDATE or LSUpdate to update a queued handle. >challenge argument is non-NULL, but cannot be understood. >The log comment value has exceeded the maximum allowed buffer size. Up to 100 characters are allowed (excluding the null character). If you plan to have only a part of data as anonymized, then use the following formula to calculate the maximum allowed data: 100 bytes = 17x + y, where "x" is the number of words to be anonymized and "y" is the length of the unanonymized data. If you plan to have only anonymized characters in the usage log file, then after the anonymization tag <an>, up to 6 words separated by a space can be included. >The log comment probably consists of the hash (#) sign in the beginning or end of the string. Also, it should not contain consecutive hash signs. |
VLS_NO_LICENSE_GIVEN |
Generic error indicating that license was not updated. |
LS_LICENSETERMINATED |
Default error. Cannot update license because the key lifetime has expired and re-request of the license has failed. |
VLS_NO_SUCH_FEATURE |
License Manager does not have license that matches requested feature, version and capacity. |
LS_NOLICENSESAVAILABLE |
All licenses in use. |
LS_LICENSE_EXPIRED |
License has expired. |
VLS_TRIAL_LIC_ EXHAUSTED |
Trial license expired or trial license usage exhausted. |
VLS_FINGERPRINT_ MISMATCH |
Client-locked; locking criteria does not match. |
VLS_APP_NODE_LOCKED |
Feature is node locked, but the update request was issued from an unauthorized machine. |
VLS_CLK_TAMP_FOUND |
License Manager has determined that the client’s system clock has been modified. The license for this feature has time-tampering protection enabled, so the license operation is denied. |
VLS_VENDORIDMISMATCH |
This error can occur under the following scenarios: >The vendor of the requesting application does not match with the License vendor. >The License addition failed due to mismatch among the vendor of the license and vendor of the isolated License Manager. |
VLS_INVALID_DOMAIN |
The domain of the License Manager is different from that of client. |
VLS_NO_SERVER_ RUNNING |
License Manager on specified host is not available for processing license operation requests. |
VLS_NO_SERVER_ RESPONSE |
Communication with License Manager has timed out. |
VLS_HOST_UNKNOWN |
Invalid hostName was specified. |
VLS_BAD_SERVER_ MESSAGE |
Message returned by License Manager could not be understood. |
LS_NO_NETWORK |
Generic error indicating that the network is unavailable for servicing the license operation. |
LS_NORESOURCES |
An error occurred in attempting to allocate memory needed by function. |
VLS_RESOURCE_LOCK_FAILURE | Failed to fetch the API resource lock. On receiving this error, retry calling this API. |
LS_BADHANDLE | The system is low on memory or is in unstable state. |
For a complete list of the error codes, see Licensing Library Error and Result Codes.