2009/4/17 Marc Rios Valles <m...@c3po.es>: > Hi, Hello,
> I think we (C3PO) have discovered a bug in the file pcsc-reader.c. We are > developing a card driver that needs to call 2 times each execution to > sc_reset because its a card that works under secure_channel and we need to > assure that we break the secure channel befor we recreate it. If I execute > for example 'pkcs11-tool -Il' the first execution works correct, but after > this exec if I reexecute 'pkcs11-tool -Il' it waits for a lock of PCSCD that > will never be released. After some tests we have found that if you make 2 > sc_reset() in the same execution of a tool of opensc that executes that code > (pkcs11-tool or pkcs15-tool for example) the next execution of another tool > waits for this lock. We have been looking at the code of opensc and we have > discovered a possible lock that isn't released. A possible solution is this: What version of pcsc-lite are you using? Are you on GNU/Linux or Mac OS X? Bye -- Dr. Ludovic Rousseau _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel