1SC_SET_CARD_DRIVER(3) OpenSC API reference SC_SET_CARD_DRIVER(3)
2
3
4
6 sc_set_card_driver - Force the use of a specified smart card driver
7
9 #include <opensc.h>
10
11 int sc_set_card_driver(struct sc_context *ctx, const char *short_name);
12
13
14
16 This function forces the use of a a specific card driver to be used in
17 context ctx. The name of the driver is specified in short_name.
18 Possible options are:
19 etoken
20 flex
21 cyberflex
22 gpk
23 miocos
24 mcrd
25 setcos
26 starcos
27 tcos
28 openpgp
29 jcop
30 oberthur
31 belpic
32 emv
33
34 This function only needs to be called if OpenSC fails to auto-detect
35 your card. If used, it should be called immediately after establishing
36 a new context with sc_establish_context(), but before doing anything
37 else with the context.
38
40 If an error occurred, a negative value is returned indicating the
41 error. Otherwise, 0 is returned.
42
43
44
45opensc 02/16/2010 SC_SET_CARD_DRIVER(3)