mirror of
https://git.freebsd.org/ports.git
synced 2025-06-08 14:20:33 -04:00
gnupg's scdaemon opens smart cards in exclusive mode, which prevents other
applications (such as PKCS#11 libraries) from concurrently accessing the
card). Upstream refuses to fix the problem. This commit adds a
--shared-access option to scdaemon. When enabled, scdaemon will access the
smart card in shared mode, playing nicely with other applications. The
default behavior is unchanged.
See Also:
d6cb8039a0
https://dev.gnupg.org/T3267
https://dev.gnupg.org/D320
https://github.com/OpenSC/OpenSC/issues/953
Reviewed by: adamw
Approved by: adamw (maintainer)
Obtained-from: GPGTools
Sponsored by: Axcient
Differential Revision: https://reviews.freebsd.org/D22473
12 lines
580 B
C
12 lines
580 B
C
--- tools/gpgconf-comp.c.orig 2019-07-09 09:08:45 UTC
|
|
+++ tools/gpgconf-comp.c
|
|
@@ -653,6 +653,9 @@ static gc_option_t gc_options_scdaemon[] =
|
|
{ "card-timeout", GC_OPT_FLAG_NONE|GC_OPT_FLAG_RUNTIME, GC_LEVEL_BASIC,
|
|
"gnupg", "|N|disconnect the card after N seconds of inactivity",
|
|
GC_ARG_TYPE_UINT32, GC_BACKEND_SCDAEMON },
|
|
+ { "shared-access", GC_OPT_FLAG_NONE|GC_OPT_FLAG_RUNTIME, GC_LEVEL_BASIC,
|
|
+ "gnupg", "use PCSC_SHARE_SHARED for pcsc_connect",
|
|
+ GC_ARG_TYPE_NONE, GC_BACKEND_SCDAEMON },
|
|
|
|
{ "Debug",
|
|
GC_OPT_FLAG_GROUP, GC_LEVEL_ADVANCED,
|