Skip to content

Instantly share code, notes, and snippets.

@RomainMuller
Last active March 8, 2017 20:52
Show Gist options
  • Save RomainMuller/10b3c6204dd029bf2c9ca25598cc0f78 to your computer and use it in GitHub Desktop.
Save RomainMuller/10b3c6204dd029bf2c9ca25598cc0f78 to your computer and use it in GitHub Desktop.
A patch to have GnuPG21 use shared access to PC/SC. SHA256: bb1586db3315ae84916d24de67a8e531fd8883e42303c018af27ae936f00ba97
diff --git a/scd/apdu.c b/scd/apdu.c
index 149154c..d9b166c 100644
--- a/scd/apdu.c
+++ b/scd/apdu.c
@@ -1535,7 +1535,7 @@ connect_pcsc_card (int slot)
err = pcsc_connect (reader_table[slot].pcsc.context,
reader_table[slot].rdrname,
- PCSC_SHARE_EXCLUSIVE,
+ PCSC_SHARE_SHARED,
PCSC_PROTOCOL_T0|PCSC_PROTOCOL_T1,
&reader_table[slot].pcsc.card,
&reader_table[slot].pcsc.protocol);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment