OpenSC API Referencesc_put_data3openscsc_put_dataStore a primitive data object on a cardSynopsis
#include <opensc.h>
int sc_put_data(sc_card_t *card, unsigned int tag,
const unsigned char *buf, size_t len);
Description
This function is used to store a primitive data object on
card. It corresponds to the PUT DATA command in the
ISO 7816 standard. The data to be sent to the
card is stored in buf, which is
buflen bytes long.
The tag parameter specifies the object to be stored.
Refer to the standard for the correct values to use.
Return value
Returns 0 if successful, or a negative value in case of error.