Hello everybody, It is the first time I'm developing a code with opensc (I have experience developing smart card application, but with the pkcs11 manufacturer libraries). I have found some problems trying to migrate a code base on the manufacturer pkcs11 libreries of a Starcos 2.3 smartcard to openSC libraries (I have read Starcos 2.3 is fully functional with OpenSC project).
I'm developing in Windows XP OS, and I have compiled the last OpenSC release (version opensc-0.11.12) following the tutorial published in the web site opensc (http://www.opensc-project.org/opensc/wiki/CompilingInstalling) sucessfully. I have already formatted the Starcos SmartCard with the Pkcs15-init tool with the command: # pkcs15-init.exe -E-C This operation is carry out succesfully too. My problems begin when I try to invoke the function C_GetSlotList of the opensc-pcks11.dll library. I'm not able to find a slot with information. All the slot available seem to be empty. The code I'm trying to execute can be find below: CK_RV getSlotList (CK_SLOT_ID_PTR ptrSlot, CK_ULONG number) { CK_RV presentSlot; presentSlot = C_GetSlotList (CK_TRUE, ptrSlot, &number); if (presentSlot != CKR_OK) printf ("PKCS#11 ERROR [ %s ]\n", error2text (presentSlot)); return presentSlot; } ##error2text is a function I use to show the error more friendly. Should I configure the type of smart card I'm using in the code? I mean, is there a instruction I have to invoke to indicate i'm using a starcos smart card? I cannot offer more information about my problem since my program doesn't have runtime errors or compiled errors, can I? Could somebody help me? Thank you in advance. Regards.
_______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel