PC/SC: temporarily disable blocking C_WaitForSlotEvent until a checked 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
This commit is contained in:
parent
df639efd89
commit
8af1b60afd
|
@ -597,8 +597,9 @@ CK_RV C_WaitForSlotEvent(CK_FLAGS flags, /* blocking/nonblocking flag */
|
||||||
return CKR_ARGUMENTS_BAD;
|
return CKR_ARGUMENTS_BAD;
|
||||||
|
|
||||||
sc_debug(context, SC_LOG_DEBUG_NORMAL, "C_WaitForSlotEvent(block=%d)", !(flags & CKF_DONT_BLOCK));
|
sc_debug(context, SC_LOG_DEBUG_NORMAL, "C_WaitForSlotEvent(block=%d)", !(flags & CKF_DONT_BLOCK));
|
||||||
#if 0
|
#ifndef PCSC_CANCEL_OK
|
||||||
/* pcsc-lite does not implement it in a threaded way */
|
/* 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))
|
if (!(flags & CKF_DONT_BLOCK))
|
||||||
return CKR_FUNCTION_NOT_SUPPORTED;
|
return CKR_FUNCTION_NOT_SUPPORTED;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue