diff options
author | Rostislav Kondratenko <r.kondratenko@wwpass.com> | 2018-04-05 17:43:24 +0300 |
---|---|---|
committer | Alexander Zakharov <uglym8@gmail.com> | 2018-04-27 13:46:45 +0300 |
commit | 58f855a3a23ad8861ee8dbec943322049b9fd69b (patch) | |
tree | a4471d3456af581be0c26bb8e774521285c5f9ac | |
parent | 2abd25ae2a5eb1a1c1bdf86529d8bae102017289 (diff) | |
download | rdesktop-58f855a3a23ad8861ee8dbec943322049b9fd69b.zip |
Enable PnP sc reader notifications
-rw-r--r-- | configure.ac | 4 | ||||
-rw-r--r-- | scard.c | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 6c9fe41..6ac9432 100644 --- a/configure.ac +++ b/configure.ac @@ -218,6 +218,10 @@ AS_IF([test "x$enable_smartcard" != "xno"], [ exit 1 fi + AC_MSG_CHECKING([for PCSC-lite >= 1.6.0 (PnP/Notifications support)]) + PKG_CHECK_MODULES(PNP_NOTIFICATIONS, libpcsclite >= 1.6.0, [WITH_PNP_NOTIFICATIONS=1], [WITH_PNP_NOTIFICATIONS=0]) + AC_DEFINE(WITH_PNP_NOTIFICATIONS) + AC_MSG_CHECKING([for old version of PCSC]) AC_TRY_LINK([ #include <stdlib.h> @@ -1232,8 +1232,10 @@ TS_SCardGetStatusChange(STREAM in, STREAM out, RD_BOOL wide) inString(&lcHandle, in, (char **) &(cur->szReader), dataLength, wide)); +#if !WITH_PNP_NOTIFICATIONS if (strcmp(cur->szReader, "\\\\?PnP?\\Notification") == 0) cur->dwCurrentState |= SCARD_STATE_IGNORE; +#endif } logger(SmartCard, Debug, |