SCardGetStatusChange(): do not release the mutex if it does not exist
anymore after a pcscd restart
2 lines of code changed in 1 file:
SCardGetStatusChange(): do not check for SCARD_STATE_ATRMATCH,
SCARD_STATE_EXCLUSIVE or SCARD_STATE_INUSE bits when the card is not
present.
Thanks to Matheus Ribeiro for the bug report
1 lines of code changed in 1 file:
SCardGetStatusChange(): add a counter in the upper word of dwEventState
so it is possible to detect a card movement betweeen two calls to
SCardGetStatusChange()
Thanks to Matheus Ribeiro for the patch
29 lines of code changed in 2 files:
use pcscd.h
1 lines of code changed in 1 file:
use pcscd.h when needed.
Thanks to Yziquel Guillaume for the bug report
2 lines of code changed in 2 files:
typo
1 lines of code changed in 1 file:
print sent & received APDU
25 lines of code changed in 1 file:
WrapSHMWrite(): clean the data buffer for SCardTransmit() to clean the
APDU buffer to remove any possible PIN or secret value
Thanks to Nils Larsch for the patch
6 lines of code changed in 1 file:
move definition of min() from winscard_clnt.c to misc.h
4 lines of code changed in 2 files:
profiling: more explicit warning in case of thread
9 lines of code changed in 1 file:
profiling: the mechanism does not work correctly when threads are used.
Display warnings in that case.
8 lines of code changed in 1 file:
profiling: detect missing PROFILE_END calls
13 lines of code changed in 1 file:
profiling: display the return value if different from SCARD_S_SUCCESS
46 lines of code changed in 1 file:
SCardReconnect(): block instead of returning SCARD_E_SHARING_VIOLATION
26 lines of code changed in 1 file:
define RESPONSECODE type only if RESPONSECODE_DEFINED_IN_WINTYPES_H is
not defined (needed to compile the driver with an old pcsc-lite)
2 lines of code changed in 1 file:
CreateContextThread(): avoid a buffer overflow if no more context
available
thanks to Petr Gajdos for the patch
0 lines of code changed in 1 file:
improve Doxygen
4 lines of code changed in 1 file:
when we are waiting for a card insertion a reader may be
connected/disconnected so SCardGetStatusChange() will return but a card
is not inserted
6 lines of code changed in 1 file:
SCardCheckDaemonAvailability(): if the daemon is restarted we invalidate
all the existing handles so SCard functions returns
SCARD_E_INVALID_HANDLE
25 lines of code changed in 1 file:
add prototype for SCardUnload()
2 lines of code changed in 1 file:
move code from SCardRemoveContext() to a new function
SCardCleanContext() and call it from SCardRemoveContext()
22 lines of code changed in 1 file:
move call to SCardCheckDaemonAvailability() from
SCardEstablishContextTH() to SCardEstablishContext() to move it oustide
of SCardLockThread()/SCardUnlockThread() since
SCardCheckDaemonAvailability() may also lock (and then deadlock)
4 lines of code changed in 1 file:
Oops. pcscd.h.in is already in SVN
0 lines of code changed in 1 file:
new file
0 lines of code changed in 1 file:
SCardIsValidContext(): return SCARD_E_INVALID_HANDLE if the daemon has
been restarted
4 lines of code changed in 1 file:
SCardCheckDaemonAvailability(): detects if pcscd has been restarted and
returns SCARD_E_NO_SERVICE in that case
11 lines of code changed in 1 file: