Software activation certificates
Go Up to Additional Data for Server Configuration
The isc_info_svc_get_license
result buffer item returns multiple sets of data as arguments. For each software activation certificate in the file ib_license.dat
on the server, this cluster returns the ID and key strings. If there are multiple certificates installed on the server, the return buffer contains multiple pairs of ID and key strings. The contents of the buffer end when a cluster is identified with the isc_info_flag_end
value. The following table describes the cluster identifiers for the certificate information.
Argument | Purpose | Return length |
Return value |
---|---|---|---|
|
The ID string for a software activation certificate |
2-bytes + string |
String |
|
The corresponding Key string for a software activation certificate |
2-bytes + string |
String |
|
Signals the end of arguments to |
— |
— |
Querying using Services API: software activation certificates
. . . case isc_info_svc_get_license: { printf ("Software activation certificates:\n"); do { switch (*p++) { case isc_spb_lic_key: { path_length = (unsigned short) isc_portable_integer (p, sizeof(unsigned short)); p += sizeof (unsigned short); buffer = (char*) malloc (path_length); strncpy (buffer, p, path_length); buffer [path_length] = '\0'; printf ("\tLicense Key: %s\n", buffer); free(buffer); p += path_length; break; } case isc_spb_lic_id: { path_length = (unsigned short) isc_portable_integer (p, sizeof(unsigned short)); p += sizeof (unsigned short); buffer = (char*) malloc (path_length); strncpy (buffer, p, path_length); buffer [path_length] = '\0'; printf ("\tLicense ID: %s\n", buffer); free(buffer); p += path_length; break; } } } while (*p != isc_info_flag_end); break; } . . .