MD_Initialize

This function is used to initialize the message dispatch library. Until this function is called, all other functions will return error code MDR_NOT_INITIALIZED.

The message dispatch library is designed to operate on a stable HSM system (either local or remote to the Host computer). During the initialization of the message dispatch library, the number of accessible HSMs is determined and HSM indices are allocated to accessible HSMs. These variables are utilized in other functions; if the HSM system should change, the message dispatch library should be re-initialized.

Synopsis

#include <md.h>
MD_RV MD_Initialize(void)

Return Value

The function returns either MDR_OK or MDR_UNSUCCESSFUL.