1SC_PUT_DATA(3) OpenSC API reference SC_PUT_DATA(3)
2
3
4
6 sc_put_data - Store a primitive data object on a card
7
9 #include <opensc.h>
10
11 int sc_put_data(sc_card_t *card, unsigned int tag,
12 const unsigned char *buf, size_t len);
13
14
15
17 This function is used to store a primitive data object on card. It
18 corresponds to the PUT DATA command in the ISO 7816 standard. The data
19 to be sent to the card is stored in buf, which is buflen bytes long.
20
21 The tag parameter specifies the object to be stored. 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 05/04/2007 SC_PUT_DATA(3)