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
20 etoken
21
22 flex
23
24 cyberflex
25
26 gpk
27
28 miocos
29
30 mcrd
31
32 setcos
33
34 starcos
35
36 tcos
37
38 openpgp
39
40 jcop
41
42 oberthur
43
44 belpic
45
46 emv
47
48 This function only needs to be called if OpenSC fails to auto-detect
49 your card. If used, it should be called immediately after establishing
50 a new context with sc_establish_context(), but before doing anything
51 else with the context.
52
54 If an error occurred, a negative value is returned indicating the
55 error. Otherwise, 0 is returned.
56
57
58
59opensc 05/04/2007 SC_SET_CARD_DRIVER(3)