1SC_GET_DATA(3) OpenSC API reference SC_GET_DATA(3)
2
3
4
6 sc_get_data - Get a primitive data object from a card
7
9 #include <opensc.h>
10
11 int sc_get_data(sc_card_t *card, unsigned int tag,
12 unsigned char *buf, size_t buflen);
13
14
15
17 This function is used to retrieve a primitive data object from card. It
18 corresponds to the GET DATA command in the ISO 7816 standard. The data
19 is stored in buf, which is buflen bytes long.
20
21 The tag parameter specifies the object to be retrieved. Refer to the
22 standard for the correct values to use.
23
25 Returns 0 if successful, or a negative value in case of error.
26
27
28
29opensc 02/16/2010 SC_GET_DATA(3)