isc_license_add()
Go Up to API Function Reference
Adds a certificate ID and key pair to the InterBase license file.
- Note: This function is based on the licensing with any version prior to InterBase 7.
Contents
Syntax
int isc_license_add(char *cert_id, char *cert_key)
Parameter | Type | Description |
---|---|---|
<cert_id> |
char * |
Pointer to a |
<cert_key> |
char * |
Pointer to a |
Description
Adds a line containing the specified certificate ID and key pair to the ib_license.dat
file in the InterBase install directory. This ID/key pair must be a valid authorization code obtained from InterBase. InterBase might require several authorization codes to run and you must call the function once for each ID/key pair you need to add.
Return value
isc_license_add()
returns isc_license_msg_restart
if it successfully adds the authorization code. 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:
Return | Description |
---|---|
|
Authorization code was successfully added. |
|
The authorization code could not be written. |
|
The authorization code was not added to the license file because it is a duplicate of one already present in the file. |
|
The ID/key combination is invalid. |