isc_license_display()

From InterBase
Jump to: navigation, search

Go Up to API Function Reference


Copies ID/key pairs from the InterBase license file into a buffer.

Syntax

unsigned short isc_license_display(char *buf, unsigned short buf_len)

Parameter Type Description

<buf>

char <*>

  • A character buffer for the result.
  • Must be allocated by the programmer.
  • isc_license_get_message() returns an error if <buf> is not long enough.
  • Must be NULL-terminated.

<buf_len>

short

  • Length of <buf>

Description

Places all certificate ID/key pairs that are currently in ib_license.dat into <buf>, separated by commas and NULL-terminated.

Return value

Returns zero if it succeeds. Otherwise, it returns the length that <buf> must have in order to contain the message text, and <buf> itself contains NULL.