1SC_CARD_CTL(3) OpenSC API reference SC_CARD_CTL(3)
2
3
4
6 sc_card_ctl - Send a control command to a card
7
9 #include <opensc.h>
10
11 int sc_card_ctl(struct sc_card *card, unsigned long cmd, void *args);
12
13
14
15
17 This function is used to send various control commands to the smart
18 card associated with card. The command is specified in cmd, and any
19 command-specific arguments are pointed to by args.
20
21 Commands are specific to cards. For more details on which cards accept
22 which commands, check the documentation for your card.
23
25 Returns 0 if successful, or a negative value in case of error.
26
27
28
29opensc 02/16/2010 SC_CARD_CTL(3)