Skip to content

Commit

Permalink
SCardGetStatusChange(): trace the ATR length
Browse files Browse the repository at this point in the history
If DO_TRACE is defined then the API TRACE also contains the ATR length
between ().
We now have:
< [7F819D750040] SCardGetStatusChange [0] Gemalto USB Shell Token V2 00 00 20 0 (0)
> [7F819D750040] SCardGetStatusChange [0] Gemalto USB Shell Token V2 00 00 20 20 (5)
  • Loading branch information
LudovicRousseau committed Jul 14, 2024
1 parent 2c82451 commit f0e444e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/winscard_clnt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1695,8 +1695,9 @@ LONG SCardGetStatusChange(SCARDCONTEXT hContext, DWORD dwTimeout,
#ifdef DO_TRACE
for (j=0; j<cReaders; j++)
{
API_TRACE_IN("[%d] %s %lX %lX", j, rgReaderStates[j].szReader,
rgReaderStates[j].dwCurrentState, rgReaderStates[j].dwEventState)
API_TRACE_IN("[%d] %s %lX %lX (%d)", j, rgReaderStates[j].szReader,
rgReaderStates[j].dwCurrentState, rgReaderStates[j].dwEventState,
rgReaderStates[j].cbAtr)
}
#endif

Expand Down Expand Up @@ -2168,8 +2169,9 @@ LONG SCardGetStatusChange(SCARDCONTEXT hContext, DWORD dwTimeout,
#ifdef DO_TRACE
for (j=0; j<cReaders; j++)
{
API_TRACE_OUT("[%d] %s %X %X", j, rgReaderStates[j].szReader,
rgReaderStates[j].dwCurrentState, rgReaderStates[j].dwEventState)
API_TRACE_OUT("[%d] %s %lX %lX (%d)", j, rgReaderStates[j].szReader,
rgReaderStates[j].dwCurrentState, rgReaderStates[j].dwEventState,
rgReaderStates[j].cbAtr)
}
#endif

Expand Down

0 comments on commit f0e444e

Please sign in to comment.