VLScgSetClockTamperFlag
Syntax
int VLScgSetClockTamperFlag (VLScg_HANDLE iHandle, codeT *codeP, char *flag);
Argument | Description |
iHandle |
The instance handle for this library. |
codeP |
The pointer to the codeT struct. |
flag |
Valid values are: >VLScg_NO_CHECK_TAMPER_STRING - Do not check clock tamper = “0” >VLScg_CHECK_TAMPER_STRING - Check clock tamper = “1” |
Description
Controls action on detection of clock tampering (being set back) on the machine.
Clock tamper check is only done when the License Manager starts up, but the License Manager does not exit on detection of tampering. Only those licenses that specify they want the check are denied, if tampering is detected. Other features will continue to be served by the License Manager. Even if someone sets the clock back after starting the License Manager, and then dynamically adding a tamper-sensitive license string, the License Manager detects it.
When the License Manager accepts a license string at start-up but detects later that the clock has been set back, it does not grant a license for the feature until the clock is reset to its correct value.
Returns
The status code VLScg_SUCCESS is returned if successful. Otherwise, it will return the following error codes:
Error Code | Description |
VLScg_INVALID_INT_TYPE |
If value is not a decimal number. |
VLScg_INVALID_RANGE |
If value is not in the range allowed. |
For the complete list of the error codes, refer to License Generation and Revocation Error Codes .