General (miscellaneous) library API. More...
Functions | |
ATO_STM_EXPORT const char * | ato_stm_version (void) |
Return the version of the ATO Security Token Manager API. More... | |
ATO_STM_EXPORT int | ato_stm_init (ato_Ctx *ctx, unsigned short flag) |
Initialise the SDK. More... | |
ATO_STM_EXPORT void | ato_stm_deinit (void) |
Deinitialise the SDK. More... | |
ATO_STM_EXPORT const char * | ato_stm_default_templatefile (void) |
The default filename for the STM template file. More... | |
ATO_STM_EXPORT int | ato_stm_loadtemplate (ato_Ctx *ctx, char **buffer, const char *dirname, const char *filename) |
Helper method to load an STM template from a path. More... | |
General (miscellaneous) library API.
ATO_STM_EXPORT const char* ato_stm_version | ( | void | ) |
Return the version of the ATO Security Token Manager API.
ATO_STM_EXPORT int ato_stm_init | ( | ato_Ctx * | ctx, |
unsigned short | flag | ||
) |
Initialise the SDK.
This must be called at application startup prior to any threads being started.
ato_base_init() must be called first.
ctx | the current thread local Context. |
flag | used to control the initialisation process - use ATO_STM_INIT_ALL unless advised otherwise. |
ATO_STM_EXPORT void ato_stm_deinit | ( | void | ) |
Deinitialise the SDK.
This must be called at application shutdown after threads are finished and any allocated objects freed.
ato_base_deinit() should be called after all other deinitialisation routines are called.
ATO_STM_EXPORT const char* ato_stm_default_templatefile | ( | void | ) |
The default filename for the STM template file.
ATO_STM_EXPORT int ato_stm_loadtemplate | ( | ato_Ctx * | ctx, |
char ** | buffer, | ||
const char * | dirname, | ||
const char * | filename | ||
) |
Helper method to load an STM template from a path.
ctx | the current thread local Context. |
buffer | the address of the buffer to load the contents into - must be freed by the caller. |
dirname | the directory to use. Cannot be NULL. Can include or be the filename. |
filename | the filename to use. Can be NULL if just using dirname. |