Ludovic Rousseau wrote: > Hello, > > On Mon, Oct 6, 2008 at 8:48 PM, Douglas E. Engert <[EMAIL PROTECTED]> wrote: >> OpenSC will show a slot is present if there is a reader, but >> will segfault if C_GetMechanismList is called for an unused >> virtual slot. I submitted to OpenSC ticket number #181 > > You have not responded to my comment in the bug report [1] > I think your patch is not the correct solution and that the real > problem is elsewhere.
Well, I just got back to this with Sun yesterday after getting a cert to sign the opensc-pkcs11.so. The problem appear to be that they call C_GetMechanismList even if there is no token present for every slot, including virtual slots. If there is a card present, the first 4 slots have p11card pointing at the card. But the next 4 virtual slots have p11card set to NULL. Maybe the fix should be to return CKR_TOKEN_NOT_PRESENT. as the the mechanisms are for the tokens and there is no token in the virtual slot? > > Bye > > [1] http://www.opensc-project.org/opensc/ticket/181 > -- Douglas E. Engert <[EMAIL PROTECTED]> Argonne National Laboratory 9700 South Cass Avenue Argonne, Illinois 60439 (630) 252-5444 _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel