Re: PKCS11 - Device error when getting token info
From: Jakub Gwozdz (gwozdziu_at_rpg.pl)
Date: 11/18/05
- Next message: Jakub Gwozdz: "Environment variables in custom GINA again"
- Previous message: Jeffrey Tan[MSFT]: "Re: How to grant Access on Files on a share drive?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 18 Nov 2005 13:30:41 +0100
Dnia Fri, 18 Nov 2005 03:11:01 -0800, serji napisał(a):
> hi
>
> As I have said in another posts, I am developing a current GINA that hooks
> in the existing MS GINA. It has to support smart card logon.
>
> The problem now is that SOMETIMES, if i insert the card very quicky, I
> receive a CKR_DEVICE_ERROR error when trying
> to get information of a specific token via C_GetTokenInfo() function.
> For test purposes, when this error occurs, i call to the corresponding
> Microsoft GINA to check if it can read the card
> properly.. and it works. MS code read the card well.
> This makes me think that MS code do something (verifications,
> initializations..¿??) that i dont do.
>
> Have you got any idea what is wrong?
> Thanks a lot and sorry for my poor english!
MSGina.dll doesn't use PKCS#11 interface to the card, but CSP equivalent,
which may differs in implementation from P11, depending on card and
middleware vendor.
Are you sure that you are using P11 correctly (i.e. by calling
C_GetFunctionListPtr, C_Initialize, C_GetSlotList before C_GetTokenInfo()?)
And check if Smart Card Resource Manager is tunning before you load P11.dll
-- Jakub Gwóźdź gwozdziu@rpg.pl
- Next message: Jakub Gwozdz: "Environment variables in custom GINA again"
- Previous message: Jeffrey Tan[MSFT]: "Re: How to grant Access on Files on a share drive?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|