mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
scd: New option --pcsc-shared.
* scd/scdaemon.h (opt): Add field opcsc_shared.
* scd/scdaemon.c (opcscShared): New.
(opts): Add "--pcsc-shared".
(main): Set flag.
* scd/apdu.c (connect_pcsc_card): Use it.
(pcsc_get_status): Take flag in account.
* scd/app-openpgp.c (verify_chv2): Do not auto verify chv1 in shared
mode.
--
This option should in general not be used. The patch tries to limit
bad effects but using shared mode is somewhat dangerous depending on
the other PC/SC users.
(cherry picked from commit 5732e7a8e9
)
This commit is contained in:
parent
96577e2e46
commit
5eec40f3d8
5 changed files with 14 additions and 3 deletions
|
@ -93,6 +93,7 @@ enum cmd_and_opt_values
|
|||
oCardTimeout,
|
||||
octapiDriver,
|
||||
opcscDriver,
|
||||
opcscShared,
|
||||
oDisableCCID,
|
||||
oDisableOpenSC,
|
||||
oDisablePinpad,
|
||||
|
@ -139,6 +140,7 @@ static ARGPARSE_OPTS opts[] = {
|
|||
N_("|NAME|use NAME as ct-API driver")),
|
||||
ARGPARSE_s_s (opcscDriver, "pcsc-driver",
|
||||
N_("|NAME|use NAME as PC/SC driver")),
|
||||
ARGPARSE_s_n (opcscShared, "pcsc-shared", "@"),
|
||||
ARGPARSE_s_n (oDisableCCID, "disable-ccid",
|
||||
#ifdef HAVE_LIBUSB
|
||||
N_("do not use the internal CCID driver")
|
||||
|
@ -586,6 +588,7 @@ main (int argc, char **argv )
|
|||
case oReaderPort: opt.reader_port = pargs.r.ret_str; break;
|
||||
case octapiDriver: opt.ctapi_driver = pargs.r.ret_str; break;
|
||||
case opcscDriver: opt.pcsc_driver = pargs.r.ret_str; break;
|
||||
case opcscShared: opt.pcsc_shared = 1; break;
|
||||
case oDisableCCID: opt.disable_ccid = 1; break;
|
||||
case oDisableOpenSC: break;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue