Skip to content

Commit

Permalink
PC/SC: temporarily disable blocking C_WaitForSlotEvent until a checke…
Browse files Browse the repository at this point in the history
…d version for pcsc-lite 1.5.3-1.6.4 exists.

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4835 c6295689-39f2-0310-b995-f0e70906c6a9
  • Loading branch information
martin committed Oct 28, 2010
1 parent df639ef commit 8af1b60
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pkcs11/pkcs11-global.c
Original file line number Diff line number Diff line change
Expand Up @@ -597,8 +597,9 @@ CK_RV C_WaitForSlotEvent(CK_FLAGS flags, /* blocking/nonblocking flag */
return CKR_ARGUMENTS_BAD;

sc_debug(context, SC_LOG_DEBUG_NORMAL, "C_WaitForSlotEvent(block=%d)", !(flags & CKF_DONT_BLOCK));
#if 0
/* pcsc-lite does not implement it in a threaded way */
#ifndef PCSC_CANCEL_OK
/* Not all pcsc-lite versions implement consistently used functions as they are */
/* FIXME: add proper checking into build to check correct pcsc-lite version for SCardStatusChange/SCardCancel */
if (!(flags & CKF_DONT_BLOCK))
return CKR_FUNCTION_NOT_SUPPORTED;
#endif
Expand Down

0 comments on commit 8af1b60

Please sign in to comment.