MD_GetHsmCount

This function retrieves the number of accessible HSMs at the time the message dispatch library was initialized (when the MD_Initialize() function was called).

Synopsis

#include <md.h>
MD_RV MD_GetHsmCount(uint32* pHsmCount)  

Input Requirements

The message dispatch library has been initialized via the MD_Initialize() function.

Input Parameters

Parameter

Description

pHsmCount

Pointer to the variable which will hold the number of visible HSMs when the function returns. The pointer must not be NULL.

Output Requirements

The HSM Count is returned in pHsmCount.

The function returns the following codes:

Function Code Qualification

MDR_OK

N/A

MDR_INVALID_PARAMETER

If pHsmCount was NULL.

MDR_NOT_INITIALIZE

If the message dispatch library was not previously initialized successfully.