VLSdecodeUpgradelockCode

Syntax

int VLSdecodeUpgradelockCode (char  *upgrade_lock_code, char  *compacted_upd_lock_code, 
  			      int length, ulcCode **ulcCodePP  );
Argument Description

upgrade_lock_ code

Upgrade locking code to be decoded.

compacted_upd_ lock_code

Upgrade locking code string after removing comment chars and white spaces. This can also be set as null.

length

Length of compacted_upd_lock_code in case it is not null.

ulcCodePP

Pointer to the pointer of ulcCode structure.

Description

Decodes the upgrade locking code.

Returns

The status code LS_SUCCESS is returned if successful. Otherwise, it will return the following error codes:

Error Code Description

LS_NORESOURCES

If vendor identification is invalid.

LS_NO_SUCCESS

Failed to decrypt the license.

VLS_INTERNAL_ERROR

If an error occurred while allocating internal memory for ucodeT struct.

For the complete list of the error codes, refer to Upgrade License Error Codes.