1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
|
.\"Generated by db2man.xsl. Don't modify this, modify the source.
.de Sh \" Subsection
.br
.if t .Sp
.ne 5
.PP
\fB\\$1\fR
.PP
..
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.de Ip \" List item
.br
.ie \\n(.$>=3 .ne \\$3
.el .ne 3
.IP "\\$1" \\$2
..
.TH "SC_SET_CARD_DRIVER" 3 "" "" "OpenSC API Reference"
.SH NAME
sc_set_card_driver \- Force the use of a specified smart card driver
.SH "SYNOPSIS"
.PP
.nf
#include <opensc\&.h>
int sc_set_card_driver(struct sc_context *ctx, const char *short_name);
.fi
.SH "DESCRIPTION"
.PP
This function forces the use of a a specific card driver to be used in context\fIctx\fR\&. The name of the driver is specified in \fIshort_name\fR\&. Possible options are:
.IP
etoken
flex
cyberflex
gpk
miocos
mcrd
setcos
starcos
tcos
openpgp
jcop
oberthur
belpic
emv
.LP
.PP
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\&.
.SH "RETURN VALUE"
.PP
If an error occurred, a negative value is returned indicating the error\&. Otherwise, 0 is returned\&.
|