General (miscellaneous) library API. More...
Functions | |
ATO_AKM_EXPORT const char * | ato_akm_version (void) |
Return the version of the keystore Manager API. More... | |
ATO_AKM_EXPORT int | ato_akm_init (ato_Ctx *ctx, unsigned short flag) |
Initialise the SDK. More... | |
ATO_AKM_EXPORT void | ato_akm_deinit (void) |
Deinitialise the SDK. More... | |
ATO_AKM_EXPORT const char * | ato_akm_default_dir (void) |
The default directory/folder for the keystore. More... | |
ATO_AKM_EXPORT const char * | ato_akm_default_ksfile (void) |
The default keystore filename. More... | |
ATO_AKM_EXPORT const char * | ato_akm_default_kspath (void) |
The full path for the default keystore including the default filename. More... | |
ATO_AKM_EXPORT int | ato_akm_loadks (ato_Ctx *ctx, char **buffer, const char *dirname, const char *filename) |
Convenience method to load a keystore from the give path "dirname/filename" into a buffer - caller must free. More... | |
ATO_AKM_EXPORT int | ato_akm_saveks (ato_Ctx *ctx, const char *buffer, const char *dirname, const char *filename) |
Convenience method to save a keystore buffer to the given path "dirname/filename". More... | |
General (miscellaneous) library API.
ATO_AKM_EXPORT const char * ato_akm_version | ( | void | ) |
Return the version of the keystore Manager API.
ATO_AKM_EXPORT int ato_akm_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_AKM_INIT_ALL unless advised otherwise. |
ATO_AKM_EXPORT void ato_akm_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_AKM_EXPORT const char * ato_akm_default_dir | ( | void | ) |
The default directory/folder for the keystore.
This is the user's home, platform/OS specific, folder.
ATO_AKM_EXPORT const char * ato_akm_default_ksfile | ( | void | ) |
The default keystore filename.
ATO_AKM_EXPORT const char * ato_akm_default_kspath | ( | void | ) |
The full path for the default keystore including the default filename.
ATO_AKM_EXPORT int ato_akm_loadks | ( | ato_Ctx * | ctx, |
char ** | buffer, | ||
const char * | dirname, | ||
const char * | filename | ||
) |
Convenience method to load a keystore from the give path "dirname/filename" into a buffer - caller must free.
If dirname and/or ato_akm_default_ksfile() are NULL then try to discover the default values from the config file else use the hard coded values provided by ato_akm_default_dir()/ato_akm_default_ksfile().
ctx | the current thread local Context. |
buffer | the address of the buffer that is allocated if successful. |
dirname | the directory to load from |
filename | the keystore filename to load |
ATO_AKM_EXPORT int ato_akm_saveks | ( | ato_Ctx * | ctx, |
const char * | buffer, | ||
const char * | dirname, | ||
const char * | filename | ||
) |
Convenience method to save a keystore buffer to the given path "dirname/filename".
If dirname and/or ato_akm_default_ksfile() are NULL then try to discover the default values from the config file else use the hard coded values provided by ato_akm_default_dir()/ato_akm_default_ksfile().
ctx | the current thread local Context. |
buffer | the buffer containing the raw keystore XML. |
dirname | the directory to save to |
filename | the keystore filename to save |