sc_card_ctl(3)

sc_card_ctl3

Send a control command to a card

Usage

#include <opensc.h>
int sc_card_ctl(struct sc_card *card, unsigned long cmd, void *args);

Overview

This function is used to send various control commands to the smart card associated with card. The command is specified in cmd, and any command-specific arguments are pointed to by args.

Commands are specific to cards. For more details on which cards accept which commands, check the documentation for your card.

Return value

Returns 0 if successful, or a negative value in case of error.

Releases

3 releases since Debian 4.0 (Etch); the text changed 2 times.

  1. 4.0
  2. 5.0
  3. 6.0

From libopensc2-dev 0.11.13-1.1 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.