key_verify/3—validate and retrieve fields from a license key
The syntax for key_verify/3 is as follows:
key_verify/3 arguments
Argument | Mode | Type | Description |
---|---|---|---|
$KEY | Input | STRING | Specifies the license key |
$FIELDS | Output | LIST_OF STRING | List of fields from key |
$VALID | Output | INTEGER | Key validity (0=invalid, 1=valid) |
Use the key_verify/3 to determine the validity of license key $KEY in $VALID, and to retrieve fields from the key and return them in $FIELDS.
A license key is a string containing licensing information, as provided by BMC.
The application is responsible to determine the exact number of fields that are expected in the key. The $FIELDS argument has to be specified as a list of as many variables as the number of fields.
If the key is invalid, or if the number of fields is not exact, $VALID will be set to 0. Otherwise, it will be set to 1.
key_verify/3 example
$LICDATA.key_validity = $VALID;