1SC_CARD_T(3) OpenSC API reference SC_CARD_T(3)
2
3
4
6 sc_card_t - OpenSC card structure
7
9 #include <opensc.h>
10
11 #define SC_MAX_ATR_SIZE 33
12 #define SC_MAX_CARD_APPS 8
13
14 typedef struct sc_card {
15 struct sc_context *ctx;
16 struct sc_reader *reader;
17 struct sc_slot_info *slot;
18 struct sc_app_info *app[SC_MAX_CARD_APPS];
19 unsigned char atr[SC_MAX_ATR_SIZE];
20 size_t atr_len;
21 } sc_card_t;
22
23
24
25
27 This structure describes a smart card object. It contains the following
28 members:
29
30 ctx
31 The context this card is associated with.
32
33 reader
34 The reader this card is inserted into.
35
36 slot
37 The slot on the reader this card is inserted into.
38
39 atr
40 The ATR (Answer To Reset) of the card.
41
42 atr_len
43 The length of the atr field
44
45
46
47opensc 05/04/2007 SC_CARD_T(3)