diff options
| author | Werner Koch <[email protected]> | 2021-03-12 08:21:57 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2021-03-12 08:31:17 +0000 |
| commit | 5732e7a8e97cebf8e850c472e644e2a9b040836f (patch) | |
| tree | 06987165f537056be9983c912bda613cc7a5f5b5 /scd/scdaemon.h | |
| parent | scd: Fix computing fingerprint for ECC with SOS. (diff) | |
| download | gnupg-5732e7a8e97cebf8e850c472e644e2a9b040836f.tar.gz gnupg-5732e7a8e97cebf8e850c472e644e2a9b040836f.zip | |
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 (cache_pin): Bypass in shared mode.
(verify_chv2: Do not auto verify chv1 in shared mode.
* scd/app-piv.c (cache_pin): By pass caceh 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.
Diffstat (limited to 'scd/scdaemon.h')
| -rw-r--r-- | scd/scdaemon.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scd/scdaemon.h b/scd/scdaemon.h index 5ae656ca2..0d89f58c0 100644 --- a/scd/scdaemon.h +++ b/scd/scdaemon.h @@ -62,6 +62,7 @@ struct int enable_pinpad_varlen; /* Use variable length input for pinpad. */ int allow_admin; /* Allow the use of admin commands for certain cards. */ + int pcsc_shared; /* Use shared PC/SC access. */ strlist_t disabled_applications; /* Card applications we do not want to use. */ unsigned long card_timeout; /* Disconnect after N seconds of inactivity. */ |
