isc_license_check()

From InterBase

Go Up to API Function Reference


Checks whether the supplied ID/key pair is valid.

Syntax

 int isc_license_check(char *cert_id, char *cert_key)
Parameter Type Description

<cert_id>

char *

Pointer to a NULL-terminated character buffer containing the certificate ID to be checked

<cert_key>

char *

Pointer to a NULL-terminated character buffer containing the certificate key to be checked

Description

Checks whether the specified ID/key pair is valid and could be added to ib_license.dat. Calling this function does not actually add anything to the file.

Return value

isc_license_check() returns isc_license_success if it determines that the authorization code could be added. If it returns an error, pass the return value to isc_license_get_msg() to obtain the exact error message. The possible return values are:

Error codes from isc_license_check()
Return Description

isc_license_success

Authorization code could be successfully added.

isc_license_msg_dupid

The authorization code was not added to the license file because it is a duplicate of one already present in the file.

isc_license_msg_convertfailed

The ID/key combination is invalid.

Advance To: