Changeset 3502 for trunk/src/libopensc/card-atrust-acos.c
- Timestamp:
- 04/28/08 09:57:03 (7 months ago)
- Files:
-
- 1 modified
-
trunk/src/libopensc/card-atrust-acos.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libopensc/card-atrust-acos.c
r3318 r3502 40 40 }; 41 41 42 / / sequence and number has to match atr table !42 /* sequence and number has to match atr table ! */ 43 43 static const char *atrust_acos_names[] = { 44 44 ACOS_EMV_A03, … … 81 81 if (sc_hex_to_bin(atrp, defatr, &len)) 82 82 continue; 83 / / we may only verify part of ATR since84 / / part of the hist chars is variable83 /* we may only verify part of ATR since */ 84 /* part of the hist chars is variable */ 85 85 if (len > card->atr_len) 86 86 continue; … … 156 156 if (buflen < 2) 157 157 return SC_ERROR_INTERNAL; 158 if (buf[0] != 0x6f) / / FCI template158 if (buf[0] != 0x6f) /* FCI template */ 159 159 return SC_ERROR_INVALID_DATA; 160 160 len = (size_t)buf[1]; … … 170 170 file->size = 0; 171 171 172 / / get file size172 /* get file size */ 173 173 tag = sc_asn1_find_tag(ctx, p, len, 0x80, &taglen); 174 174 if (tag != NULL && taglen >= 2) { … … 179 179 } 180 180 181 / / get file type181 /* get file type */ 182 182 tag = sc_asn1_find_tag(ctx, p, len, 0x82, &taglen); 183 183 if (tag != NULL) { … … 822 822 } 823 823 824 / / iso error824 /* iso error */ 825 825 return iso_ops->check_sw(card, sw1, sw2); 826 826 }
