#include "dinamo.h"
Data Fields | |
char | szAddr[MAX_ADDR_LEN] |
int | nPort |
char | szUserId[MAX_USR_LEN] |
char | szPassword[MAX_USR_PWD] |
DWORD | dwAuthType |
BYTE * | pbStrongAuth |
int | nStrongAuthLen |
Data for opening user/password authenticated sessions with Dinamo with a second authentication factor. This structure is mainly used by the DOpenSession() function.
char szAddr[MAX_ADDR_LEN] |
HSM address (Name or IP in the format xxx.xxx.xxx.xxx).
int nPort |
TCP port (4433).
char szUserId[MAX_USR_LEN] |
Identification of the user in the HSM. The user name can contain MAX_USR_LEN characters. If the user name is shorter than MAX_USR_LEN, complete it with zeros (\0).
char szPassword[MAX_USR_PWD] |
User password . The password can contain MAX_USR_PWD characters. If the password is shorter than MAX_USR_PWD, complete it with zeros (\0).
DWORD dwAuthType |
Type of authentication. Value | Meaning |
---|---|
SA_AUTH_NONE | Uses user and password authentication. Set pbStrongAuth to NULL and nStrongAuthLen to 0 (zero). |
SA_AUTH_OTP | Uses user, password and OTP authentication. Set pbStrongAuth to OTP(One Time Password). Do not include NULL terminator. Set nStrongAuthLen to OTP size in bytes. Do not include NULL terminator. |
SA_AUTH_CERTIFICATE | Uses user, password and certificate authentication (mutual authentication with HSM). Set pbStrongAuth to TLS_MUTUAL_AUTH_INFO and nStrongAuthLen to the size of pbStrongAuth. |
BYTE* pbStrongAuth |
Set according to the authentication type passed in dwAuthType.
int nStrongAuthLen |
Size of data passed in pbStrongAuth. See definition in dwAuthType.