From c64fd881e931898065fdcac4641b673e392bc233 Mon Sep 17 00:00:00 2001 From: martin Date: Thu, 15 Jan 2009 20:01:09 +0000 Subject: [PATCH] Mac OS X 10.5.6 fixes the ATR padding bug. git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3610 c6295689-39f2-0310-b995-f0e70906c6a9 --- src/libopensc/card.c | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/src/libopensc/card.c b/src/libopensc/card.c index 24a0d5dd..319a07c7 100644 --- a/src/libopensc/card.c +++ b/src/libopensc/card.c @@ -753,33 +753,10 @@ static int match_atr_table(sc_context_t *ctx, struct sc_atr_table *table, u8 *at size_t mbin_len, tbin_len, s, matr_len; size_t fix_hex_len = card_atr_hex_len; size_t fix_bin_len = card_atr_bin_len; -#ifdef __APPLE__ - unsigned int j = 0; -#endif if (ctx->debug >= 4) sc_debug(ctx, "ATR try : %s\n", tatr); -#ifdef __APPLE__ - /* Leopard PCSC bug */ - tbin_len = sizeof(tbin); - sc_hex_to_bin(tatr, tbin, &tbin_len); - - if (card_atr_bin_len == SC_MAX_ATR_SIZE && tbin_len < SC_MAX_ATR_SIZE) { - char card_atr_hex_tmp[3 * SC_MAX_ATR_SIZE]; - for(j=tbin_len;jdebug >= 4) - sc_debug(ctx, "ATR fix : %s\n", card_atr_hex_tmp); - - } -not_apple_bug: -#endif if (tatr_len != fix_hex_len) { if (ctx->debug >= 5) sc_debug(ctx, "ignored - wrong length\n", tatr);