#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <memory.h>
int main(int argc,char *argv[])
{
CK_ULONG ulSlotCount = 0;
CK_ULONG i = 0;
if (
CKR_OK != (rv = C_Initialize( &initArgs ))) {
printf( "PKCS11 example8: failed C_Initialize (error:%x)", (unsigned int) rv );
return -1;
}
{
{
for( i=0; i < ulSlotCount; i++ ) printf( "%ld> slot identifer [%ld]\n", i, slotList[i] );
}
else printf( "PKCS11 example8: failed P6R_GetSlotList get slot identifer values (error:%x)", (unsigned int) rv );
}
else printf( "PKCS11 example8: failed P6R_GetSlotList get slot count (error:%x)", (unsigned int) rv );
printf( "PKCS11 example8: failed C_Finalize %lx", rv );
return -3;
}
return 0;
}