announce non thread safety
This commit is contained in:
@@ -258,7 +258,24 @@ IFDHGetCapabilities (DWORD Lun, DWORD Tag, PDWORD Length, PUCHAR Value)
|
|||||||
*Length = 1;
|
*Length = 1;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case TAG_IFD_THREAD_SAFE:
|
||||||
|
if (*Length < 1) {
|
||||||
|
Log1(PCSC_LOG_ERROR, "Invalid input data");
|
||||||
|
goto err;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* We are not thread safe due to
|
||||||
|
* the global hostname and ctx */
|
||||||
|
*Value = 0;
|
||||||
|
*Length = 1;
|
||||||
|
break;
|
||||||
|
|
||||||
case TAG_IFD_SLOT_THREAD_SAFE:
|
case TAG_IFD_SLOT_THREAD_SAFE:
|
||||||
|
if (*Length < 1) {
|
||||||
|
Log1(PCSC_LOG_ERROR, "Invalid input data");
|
||||||
|
goto err;
|
||||||
|
}
|
||||||
|
|
||||||
/* driver supports access to multiple slots of the same reader at
|
/* driver supports access to multiple slots of the same reader at
|
||||||
* the same time */
|
* the same time */
|
||||||
*Value = 1;
|
*Value = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user