Example of changing the smart-card PIN.
- See Note on examples.
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
int main()
{
int nRet = 0;
const char *szCurrentPin = "12345678";
const char *szNewPin = "87654321";
if (nRet){
printf("Falha na funcao: DInitialize \nCodigo de erro: %d\n", nRet);
goto clean;
}
printf("Bibliotecas inicializadas.\n");
if (nRet)
{
printf("\nFalha na funcao: DSCChangePIN\nCodigo de erro: %d\n\n", nRet);
goto clean;
}
printf("PIN trocado com sucesso com sucesso.\n");
clean:
printf("Bibliotecas finalizada.\n");
return nRet;
}
Application Programming Interface (API) do HSM Dinamo.
int AAP_API DSCChangePIN(const char *szCurrentPIN, const char *szNewPIN, DWORD dwReserved)
int AAP_API DInitialize(DWORD dwReserved)