1SC_GET_DATA(3)               OpenSC API reference               SC_GET_DATA(3)
2
3
4

NAME

6       sc_get_data - Get a primitive data object from a card
7

SYNOPSIS

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

DESCRIPTION

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

RETURN VALUE

25       Returns 0 if successful, or a negative value in case of error.
26
27
28
29opensc                            05/04/2007                    SC_GET_DATA(3)
Impressum