VLScgSetLogEncryptLevel

Syntax

int VLScgSetLogEncryptLevel (VLScg_HANDLE iHandle, codeT *codeP, char *flag);
Argument Description

iHandle

The instance handle for this library.

codeP

The pointer to the codeT struct.

flag

The allowed values are listed below. For more information, refer to the Log encryption level (log_encrypt_level) described in the License Properties. The allowed values are:

>0: System administrator on the customer's site to set the encryption level.

>1: No encryption.

>2: Data will be readable by the system administrator, but tampering with or deleting an entry can be detected.

>3: Transaction data will be readable by the system administrator, except for license usage data.

>4: All transaction data for the license will be encrypted.

Description

Controls the encryption level of the License Manager’s usage log file.

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 the value is non-numeric.

VLScg_EXCEEDS_MAX_VALUE

If value exceeds VLScg_MAX_ENCRYPTION_LEVEL.

VLScg_LESS_THAN_MIN_ VALUE

If value is lower than VLScg_NO_ENCRYPTION.

For the complete list of the error codes, refer to License Generation and Revocation Error Codes .