The library is initialized using
pskc_global_init() which is a
thread-unsafe function that should be called when the code that
needs the PSKC library functionality is initialized. When the
application no longer needs to use the PSKC Library, it can call
pskc_global_done() to release resources.
pskc_free() function is used to de-allocate memory that was
allocated by the library earlier and returned to the caller.
int pskc_global_init (
This function initializes the PSKC library. Every user of this
library needs to call this function before using other functions.
You should call
pskc_global_done() when use of the PSKC library is
no longer needed.
PSKC_OK (zero) is returned, otherwise an
error code is returned.
void pskc_global_done (
This function deinitializes the PSKC library, which were
pskc_global_init(). After calling this function,
no other PSKC library function may be called except for to
re-initialize the library using
void pskc_global_log (
Enable global debug logging function. The function will be invoked to print various debugging information.
is of the form,
void (*pskc_log_func) (const char *msg);
The container and keypackage variables may be NULL if they are not relevant for the debug information printed.
new global pskc_log_func log function to use.