2010/11/4 Camille Moncelier <moncel...@devlife.org>: > On Thu, 4 Nov 2010 09:37:30 +0100 > Ludovic Rousseau <ludovic.rouss...@gmail.com> wrote: > >> 2010/11/3 Camille Moncelier <moncel...@devlife.org>: >> > In some case readers can be wired to always return >> > CKF_TOKEN_PRESENT even when there's no card (Because there's no >> > mechanical contacts for card insertion, like some SIMcard readers). >> >> So why connect the SIM card reader without any smart card inside? >> The smart card reader is wired to the host and can't be unplugged? >> >> What is your use case exactly? >> >> Bye >> > > I'm using embedded computers with two smartcard readers soldered like > this one: > http://www.globalconnectortechnology.com/sim-connectors/pdf/SIM5051.pdf > > These connectors doesn't have sim inserted contacts so the controller > is wired so it always reports there's a smartcard because it has no way > to tell if there not. > > libp11 fails to access any token if one of the reader fails to read a > token.
I see the problem. I am not sure your patch is complete. With your change pkcs11_init_slot() will never return with an error. So PKCS11_enumerate_slots() (the only user of pkcs11_init_slot()) should also be changed to reflect that. Other comments? Bye -- Dr. Ludovic Rousseau _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel