Differences From Artifact [5e1ae9e427]:
- File
cackey.c
— part of check-in
[5ba02cbd65]
at
2010-05-23 05:36:13
on branch trunk
— Updated to strip library more on Linux, and work on Solaris
Updated to try to support more protocols (user: rkeene, size: 161536) [annotate] [blame] [check-ins using]
To Artifact [c8c7e5c610]:
- File
cackey.c
— part of check-in
[170e3dfda4]
at
2010-05-23 07:07:11
on branch trunk
— Added more debugging for failed realloc()s
Added ifdefs to support more versions of PCSC in debug mode (user: rkeene, size: 161607) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
193 194 195 196 197 198 199 | fprintf(stderr, "%s():%i: ", func, line); fprintf(stderr, "REALLOC(%p) = %p", ptr, retval); fprintf(stderr, "\n"); fflush(stderr); } if (retval == NULL) { | | | 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 | fprintf(stderr, "%s():%i: ", func, line); fprintf(stderr, "REALLOC(%p) = %p", ptr, retval); fprintf(stderr, "\n"); fflush(stderr); } if (retval == NULL) { CACKEY_DEBUG_PRINTF(" *** ERROR *** realloc returned NULL (size = %lu)", (unsigned long) size); } return(retval); } static char *CACKEY_DEBUG_FUNC_STRDUP(const char *ptr, const char *func, int line) { char *retval; |
︙ | ︙ | |||
385 386 387 388 389 390 391 | return("SCARD_E_DUPLICATE_READER"); case SCARD_E_CARD_UNSUPPORTED: return("SCARD_E_CARD_UNSUPPORTED"); case SCARD_E_NO_SERVICE: return("SCARD_E_NO_SERVICE"); case SCARD_E_SERVICE_STOPPED: return("SCARD_E_SERVICE_STOPPED"); | < < > > > > | 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 | return("SCARD_E_DUPLICATE_READER"); case SCARD_E_CARD_UNSUPPORTED: return("SCARD_E_CARD_UNSUPPORTED"); case SCARD_E_NO_SERVICE: return("SCARD_E_NO_SERVICE"); case SCARD_E_SERVICE_STOPPED: return("SCARD_E_SERVICE_STOPPED"); case SCARD_E_UNSUPPORTED_FEATURE: return("SCARD_E_UNSUPPORTED_FEATURE"); #ifdef SCARD_W_INSERTED_CARD case SCARD_W_INSERTED_CARD: return("SCARD_W_INSERTED_CARD"); #endif #ifdef SCARD_E_NO_READERS_AVAILABLE case SCARD_E_NO_READERS_AVAILABLE: return("SCARD_E_NO_READERS_AVAILABLE"); #endif } return("UNKNOWN"); |
︙ | ︙ |