libopensc: improve max_send/recv_size related code comments.

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4670 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
martin 2010-09-01 11:50:39 +00:00
parent 59a389757e
commit 241d3b5d86
2 changed files with 6 additions and 5 deletions

View File

@ -274,7 +274,7 @@ static int sc_check_apdu(sc_card_t *card, const sc_apdu_t *apdu)
(apdu->flags & SC_APDU_FLAGS_CHAINING) == 0)) (apdu->flags & SC_APDU_FLAGS_CHAINING) == 0))
goto error; goto error;
} else if ((apdu->cse & SC_APDU_EXT) != 0) { } else if ((apdu->cse & SC_APDU_EXT) != 0) {
/* check if the card support extended APDUs */ /* check if the card supports extended APDUs */
if ((card->caps & SC_CARD_CAP_APDU_EXT) == 0) { if ((card->caps & SC_CARD_CAP_APDU_EXT) == 0) {
sc_debug(card->ctx, SC_LOG_DEBUG_NORMAL, "card doesn't support extended APDUs"); sc_debug(card->ctx, SC_LOG_DEBUG_NORMAL, "card doesn't support extended APDUs");
goto error; goto error;

View File

@ -193,7 +193,8 @@ struct sc_reader_driver {
const char *short_name; const char *short_name;
struct sc_reader_operations *ops; struct sc_reader_operations *ops;
size_t max_send_size, max_recv_size; size_t max_send_size; /* Max Lc supported by the reader layer */
size_t max_recv_size; /* Mac Le supported by the reader layer */
void *dll; void *dll;
}; };
@ -367,12 +368,12 @@ typedef struct sc_card {
int type; /* Card type, for card driver internal use */ int type; /* Card type, for card driver internal use */
unsigned long caps, flags; unsigned long caps, flags;
unsigned int wait_resend_apdu; /* Delay (msec) before responding to an SW12 = 6CXX */ unsigned int wait_resend_apdu; /* Delay (msec) before responding to an SW = 6CXX */
int cla; int cla;
u8 atr[SC_MAX_ATR_SIZE]; u8 atr[SC_MAX_ATR_SIZE];
size_t atr_len; size_t atr_len;
size_t max_send_size; size_t max_send_size; /* Max Lc supported by the card */
size_t max_recv_size; size_t max_recv_size; /* Max Le supported by the card */
struct sc_app_info *app[SC_MAX_CARD_APPS]; struct sc_app_info *app[SC_MAX_CARD_APPS];
int app_count; int app_count;