File: sc_card_t.3

package info (click to toggle)
opensc 0.11.1-2etch2
  • links: PTS
  • area: main
  • in suites: etch
  • size: 7,284 kB
  • ctags: 7,257
  • sloc: ansic: 69,499; sh: 9,480; xml: 4,191; makefile: 346; lex: 92; perl: 25
file content (73 lines) | stat: -rw-r--r-- 1,100 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
.\"Generated by db2man.xsl. Don't modify this, modify the source.
.de Sh \" Subsection
.br
.if t .Sp
.ne 5
.PP
\fB\\$1\fR
.PP
..
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.de Ip \" List item
.br
.ie \\n(.$>=3 .ne \\$3
.el .ne 3
.IP "\\$1" \\$2
..
.TH "SC_CARD_T" 3 "" "" "OpenSC API Reference"
.SH NAME
sc_card_t \- OpenSC card structure
.SH "SYNOPSIS"

.PP


.nf

#include <opensc\&.h>

#define SC_MAX_ATR_SIZE         33
#define SC_MAX_CARD_APPS         8

typedef struct sc_card {
	struct sc_context *ctx;
	struct sc_reader *reader;
	struct sc_slot_info *slot;
	struct sc_app_info *app[SC_MAX_CARD_APPS];
	unsigned char atr[SC_MAX_ATR_SIZE];
	size_t atr_len;
} sc_card_t;

            
.fi
 

.SH "DESCRIPTION"

.PP
This structure describes a smart card object\&. It contains the following members: 

.TP
ctx
The context this card is associated with\&.

.TP
reader
The reader this card is inserted into\&.

.TP
slot
The slot on the reader this card is inserted into\&.

.TP
atr
The ATR (Answer To Reset) of the card\&.

.TP
atr_len
The length of the atr field