sc_set_card_driver(3)

sc_set_card_driver3

Force the use of a specified smart card driver

Usage

#include <opensc.h>
int sc_set_card_driver(struct sc_context *ctx, const char *short_name);

Overview

This function forces the use of a a specific card driver to be used in context ctx. The name of the driver is specified in short_name. Possible options are:

etoken

flex

cyberflex

gpk

miocos

mcrd

setcos

starcos

tcos

openpgp

jcop

oberthur

belpic

emv

This function only needs to be called if OpenSC fails to auto-detect your card. If used, it should be called immediately after establishing a new context with sc_establish_context(), but before doing anything else with the context.

Return value

If an error occurred, a negative value is returned indicating the error. Otherwise, 0 is returned.

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.