blocking C_WaitForSlotEvent()

Jakub Jelen <[email protected]>
Newsgroups gmane.comp.encryption.opensc.devel
Message-ID <[email protected]>
Hello all,

The source of the pkcs11-global.c [1] says that the blocking call does 
not work in some pcsc-lite versions. From the git/svn history [2], the 
versions are before pcsc-lite 1.5.3, the changelog points more to the 
version 1.5.4 fixing various use cases of the SCardGetStatusChange() calls.

I tested with current pcsc-lite and with the condition removed and basic 
use case with waiting for slot status change from PKCS#11 in single 
thread worked flawlessly.

Is there something more needed than adding a check for pcsc-lite 1.6 in 
the configure scripts to allow this functionality again? Are there any 
test cases to make sure it works fine with Firefox for example?

[1] 
https://github.com/OpenSC/OpenSC/blob/master/src/pkcs11/pkcs11-global.c#L645
[2] 
https://github.com/OpenSC/OpenSC/commit/8af1b60afdad95f569279528ff96dda9d1d4e9f8
[3] 
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi?p=pcsclite/PCSC.git;a=blob;f=ChangeLog;hb=HEAD#l535

Kind regards,

-- 
Jakub Jelen
Software Engineer
Security Technologies
Red Hat


------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.