Page MenuHome GnuPG
Feed Advanced Search

May 6 2022

gniibe added a project to T5963: Yubikey: scdaemon causes libc segfault and clashes with ECC keys: yubikey.
May 6 2022, 10:07 AM · backport, yubikey, scd, segv, Bug Report
gniibe claimed T5963: Yubikey: scdaemon causes libc segfault and clashes with ECC keys.
May 6 2022, 8:56 AM · backport, yubikey, scd, segv, Bug Report

May 2 2022

werner added a project to T5935: scd: SSH emulation of gpg-agent doesn't work well with sntrup761x25519-sha512@openssh.com: workaround.
May 2 2022, 10:19 AM · workaround, gnupg (gpg23), ssh, Bug Report, scd
gniibe added a comment to T5935: scd: SSH emulation of gpg-agent doesn't work well with sntrup761x25519-sha512@openssh.com.
KexAlgorithms -sntrup761x25519-sha512@openssh.com
May 2 2022, 10:17 AM · workaround, gnupg (gpg23), ssh, Bug Report, scd

Apr 28 2022

ikloecker added a comment to T5942: scdaemon is blocking system shutdown.

FWIW, your comments about the autostart script do not match with the running processes. Obviously, the autostart script starts gpg-agent with different command line options than the running process. My conclusion is that the autostart script isn't used. Or maybe it is started, but gpg-agent immediately terminates because it notices that another instance is already running.

Apr 28 2022, 10:12 AM · Support, scd, gpgagent
ikloecker added a comment to T5942: scdaemon is blocking system shutdown.

If you add an autostart script then you may have to add a corresponding shutdown script as well, e.g. a script running gpgconf --kill all. You cannot expect that daemons, that you start via an autostart script, magically know when they should terminate.

Apr 28 2022, 10:01 AM · Support, scd, gpgagent
werner triaged T5942: scdaemon is blocking system shutdown as Low priority.
Apr 28 2022, 8:48 AM · Support, scd, gpgagent
szotsaki added a comment to T5942: scdaemon is blocking system shutdown.

Thank you for the hints!

Apr 28 2022, 8:24 AM · Support, scd, gpgagent
gniibe reopened T5942: scdaemon is blocking system shutdown as "Open".

Thank you for the explanation. (It's not related to --supervised, I suppose.)

Apr 28 2022, 4:03 AM · Support, scd, gpgagent

Apr 27 2022

szotsaki added a comment to T5942: scdaemon is blocking system shutdown.

I see the following GPG-related commands running currently (with disable-scdaemon in config file):

Apr 27 2022, 6:06 PM · Support, scd, gpgagent
ikloecker placed T5546: Kleopatra: After importing the first pubkey for a card from LDAP the keylistview is not refreshed up for grabs.

The issues mentioned in the previous comment have been fixed.

Apr 27 2022, 1:22 PM · scd, Info Needed, Restricted Project, kleopatra
ikloecker claimed T5546: Kleopatra: After importing the first pubkey for a card from LDAP the keylistview is not refreshed.

I had a look at the file system watcher we use to react on changes in the GnuPG home directory. It doesn't watch the private keys living in private-keys-v1.d. Moreover, it does not handle the removal of files properly.

Apr 27 2022, 11:18 AM · scd, Info Needed, Restricted Project, kleopatra

Apr 26 2022

gniibe added a comment to T5935: scd: SSH emulation of gpg-agent doesn't work well with sntrup761x25519-sha512@openssh.com.

My Yubikey (Yubico.com Yubikey 4/5 OTP+U2F+CCID) (key Ed25519) works fine with OpenSSH using kex of sntrup761x25519-sha512@openssh.com.

Apr 26 2022, 7:44 AM · workaround, gnupg (gpg23), ssh, Bug Report, scd

Apr 25 2022

werner closed T5942: scdaemon is blocking system shutdown as Wontfix.

Please contact the Debian developers for any systemd/gnupg issues. We don't suggest the use of the --supervised option because it causes more problems than it claims to solve.

Apr 25 2022, 11:53 AM · Support, scd, gpgagent
gniibe added a comment to T5935: scd: SSH emulation of gpg-agent doesn't work well with sntrup761x25519-sha512@openssh.com.

Sorry, I was confused. For RSA-4096, data is hashed by gpg-agent and hashed data is signed by a card.

Apr 25 2022, 9:51 AM · workaround, gnupg (gpg23), ssh, Bug Report, scd
szotsaki created T5942: scdaemon is blocking system shutdown.
Apr 25 2022, 8:15 AM · Support, scd, gpgagent
werner added a comment to T5935: scd: SSH emulation of gpg-agent doesn't work well with sntrup761x25519-sha512@openssh.com.

We are using rsa-4096 on smartcard for quite some time; so I wonder what's the problem here. Is that that we don't use our Assuan hack for large key material with OpenPGP.3?

Apr 25 2022, 8:07 AM · workaround, gnupg (gpg23), ssh, Bug Report, scd
gniibe added a comment to T5935: scd: SSH emulation of gpg-agent doesn't work well with sntrup761x25519-sha512@openssh.com.

There is another case: RSA-4096 key. scdaemon rejects data by Invalid value. Unfortunately, there is no fix for this, as it's really too large. Even if scdaemon allows larger data, the card implementation rejects, when it conforms to PKCS #1 standard (data should not be larger than 40% of the modulus).

Apr 25 2022, 4:35 AM · workaround, gnupg (gpg23), ssh, Bug Report, scd

Apr 22 2022

gniibe added a project to T5935: scd: SSH emulation of gpg-agent doesn't work well with sntrup761x25519-sha512@openssh.com: Restricted Project.
Apr 22 2022, 6:50 AM · workaround, gnupg (gpg23), ssh, Bug Report, scd
gniibe closed T5029: server socket/pipe handling in GnuPG as Resolved.
Apr 22 2022, 6:50 AM · Windows, scd, gnupg (gpg23)
gniibe closed T5758: scd: loop forever with reader_port, when open_pcsc_reader failed as Resolved.
Apr 22 2022, 6:48 AM · gnupg (gpg23), scd
gniibe added a comment to T5935: scd: SSH emulation of gpg-agent doesn't work well with sntrup761x25519-sha512@openssh.com.

I confirmed that the patch above works with newer Gnuk (>= 1.2.16).

Apr 22 2022, 4:49 AM · workaround, gnupg (gpg23), ssh, Bug Report, scd

Apr 21 2022

werner added a project to T5935: scd: SSH emulation of gpg-agent doesn't work well with sntrup761x25519-sha512@openssh.com: gnupg (gpg23).
Apr 21 2022, 7:35 AM · workaround, gnupg (gpg23), ssh, Bug Report, scd
werner triaged T5935: scd: SSH emulation of gpg-agent doesn't work well with sntrup761x25519-sha512@openssh.com as Normal priority.
Apr 21 2022, 7:35 AM · workaround, gnupg (gpg23), ssh, Bug Report, scd
gniibe added a comment to T5935: scd: SSH emulation of gpg-agent doesn't work well with sntrup761x25519-sha512@openssh.com.

With newer Gnuk Token, following patch should work:

diff --git a/scd/app-openpgp.c b/scd/app-openpgp.c
index 05e1f3977..439052f8c 100644
--- a/scd/app-openpgp.c
+++ b/scd/app-openpgp.c
@@ -5490,6 +5490,11 @@ do_auth (app_t app, ctrl_t ctrl, const char *keyidstr,
           exmode = 1;    /* Use extended length.  */
           le_value = app->app_local->keyattr[2].rsa.n_bits / 8;
         }
+      else if (app->app_local->cardcap.cmd_chaining && indatalen > 254)
+        {
+          exmode = -254; /* Command chaining with max. 254 bytes.  */
+          le_value = 0;
+        }
       else if (indatalen > 255)
         {
           if (!app->app_local->cardcap.ext_lc_le)
Apr 21 2022, 6:43 AM · workaround, gnupg (gpg23), ssh, Bug Report, scd
gniibe claimed T5935: scd: SSH emulation of gpg-agent doesn't work well with sntrup761x25519-sha512@openssh.com.
Apr 21 2022, 6:41 AM · workaround, gnupg (gpg23), ssh, Bug Report, scd

Mar 29 2022

gniibe added projects to T5029: server socket/pipe handling in GnuPG: Restricted Project, Windows.
Mar 29 2022, 2:59 AM · Windows, scd, gnupg (gpg23)
gniibe added a project to T5029: server socket/pipe handling in GnuPG: scd.
Mar 29 2022, 2:59 AM · Windows, scd, gnupg (gpg23)

Mar 28 2022

gniibe closed T5428: PC/SC detecting removal of card as Resolved.

When we will find reproducible test case, please reopen.

Mar 28 2022, 3:51 AM · Info Needed, Windows, scd, Bug Report

Mar 14 2022

gniibe added a comment to T5862: authentication with USB token.

And updated scd_validate2.py:

Mar 14 2022, 10:57 AM · gpgagent, Feature Request, scd
gniibe added a comment to T5862: authentication with USB token.

Wrote a pam module which interacts a user for auth:

Mar 14 2022, 10:55 AM · gpgagent, Feature Request, scd

Mar 10 2022

gniibe added a comment to T5862: authentication with USB token.

I write a prototype in Python using pyassuan:

Mar 10 2022, 3:35 AM · gpgagent, Feature Request, scd

Mar 7 2022

gniibe added a comment to T5862: authentication with USB token.

More things to be considered:

  • How to connect scdaemon
  • How to invoke scdaemon
Mar 7 2022, 1:14 AM · gpgagent, Feature Request, scd

Mar 4 2022

gniibe added a comment to T5862: authentication with USB token.

BTW, there are various use cases for authentication(s), it is better to focus on the part of device and crypto (USB Token and scdaemon).

Mar 4 2022, 6:05 AM · gpgagent, Feature Request, scd
gniibe added a comment to T5862: authentication with USB token.

Here is an experimental shell script for testing:

Mar 4 2022, 5:46 AM · gpgagent, Feature Request, scd

Mar 1 2022

gniibe added projects to T5862: authentication with USB token: scd, Feature Request.

It may be simpler if we can enhance scdaemon to have an option for PKAUTH, say, --challenge-response, so that it generates a challenge and verify signature internally.

Mar 1 2022, 8:57 AM · gpgagent, Feature Request, scd

Feb 23 2022

werner closed T5838: gpg card not getting detected as Resolved.
Feb 23 2022, 4:07 PM · Not A Bug, scd, gnupg, RHEL

Feb 17 2022

werner added projects to T5838: gpg card not getting detected: RHEL, gnupg, scd.
Feb 17 2022, 1:21 PM · Not A Bug, scd, gnupg, RHEL
irl added a comment to T5837: gpg-card: Authenticate to PIV applet with non-3DES card management key.

Setting the management key has been implemented only for Yubikeys. So for Gemalto this won't work.

Feb 17 2022, 11:20 AM · gnupg24, scd, Feature Request
werner claimed T5837: gpg-card: Authenticate to PIV applet with non-3DES card management key.
Feb 17 2022, 10:49 AM · gnupg24, scd, Feature Request
gniibe added a project to T5831: Backport (f808012a) scd: Use lock_slot for apdu_send_direct. to GnuPG 2.2: Restricted Project.

Thank you for your suggestion.

Feb 17 2022, 6:08 AM · gnupg (gpg22), Bug Report, scd
gniibe claimed T5831: Backport (f808012a) scd: Use lock_slot for apdu_send_direct. to GnuPG 2.2.
Feb 17 2022, 6:01 AM · gnupg (gpg22), Bug Report, scd

Feb 14 2022

ZenithalHourlyRate created T5831: Backport (f808012a) scd: Use lock_slot for apdu_send_direct. to GnuPG 2.2.
Feb 14 2022, 1:10 PM · gnupg (gpg22), Bug Report, scd

Jan 18 2022

werner triaged T5790: Cannot use "Retired Cert Key Mgm [1-20]” Slots on YubiKey as Normal priority.
Jan 18 2022, 7:20 AM · gnupg24, gnupg (gpg23), scd, Feature Request

Jan 4 2022

gniibe renamed T5758: scd: loop forever with reader_port, when open_pcsc_reader failed from scd: reader_port to scd: loop forever with reader_port, when open_pcsc_reader failed.
Jan 4 2022, 7:03 AM · gnupg (gpg23), scd
gniibe claimed T5758: scd: loop forever with reader_port, when open_pcsc_reader failed.
Jan 4 2022, 7:02 AM · gnupg (gpg23), scd
gniibe added a comment to T5758: scd: loop forever with reader_port, when open_pcsc_reader failed.

The problem was the error handling.
I didn't apply the patch directly, but improved the code paths.

Jan 4 2022, 7:02 AM · gnupg (gpg23), scd
gniibe triaged T5758: scd: loop forever with reader_port, when open_pcsc_reader failed as Normal priority.
Jan 4 2022, 6:44 AM · gnupg (gpg23), scd

Nov 23 2021

werner closed T5682: ed25519 internal authenticate with openpgpcard may send long data over short apdu as Resolved.
Nov 23 2021, 1:26 PM · Restricted Project, scd, ssh, Bug Report

Nov 16 2021

werner changed the status of T5682: ed25519 internal authenticate with openpgpcard may send long data over short apdu from Open to Testing.
Nov 16 2021, 5:24 PM · Restricted Project, scd, ssh, Bug Report

Nov 15 2021

gniibe added a project to T5682: ed25519 internal authenticate with openpgpcard may send long data over short apdu: Restricted Project.
Nov 15 2021, 3:53 AM · Restricted Project, scd, ssh, Bug Report
gniibe added a comment to T5682: ed25519 internal authenticate with openpgpcard may send long data over short apdu.

Adding the check on host side, I pushed the change: rGa575b0aba542: scd:openpgp: Support longer data for INTERNAL_AUTHENTICATE.

Nov 15 2021, 3:53 AM · Restricted Project, scd, ssh, Bug Report

Nov 12 2021

werner triaged T5682: ed25519 internal authenticate with openpgpcard may send long data over short apdu as High priority.
Nov 12 2021, 12:53 PM · Restricted Project, scd, ssh, Bug Report

Oct 29 2021

gniibe added projects to T5359: Kleopatra: Loop in DeviceInfoWatcher with GnuPG 2.3 on Windows: scd, Restricted Project.
Oct 29 2021, 4:19 AM · Restricted Project, scd, Restricted Project, kleopatra

Oct 28 2021

ikloecker changed the status of T5672: Kleopatra: Improve Kleopatras detection of keyservers from Open to Testing.

Kleopatra now checks both keyserver options. Previously, Kleopatra checked only one of them depending on the version of gpg (< 2.3.0 vs. >= 2.3.0). Note that the automatic lookup is only done if the keyserver option specifies an LDAP server, i.e. if it starts with "ldap".

Oct 28 2021, 2:55 PM · Restricted Project, scd, kleopatra
ikloecker moved T5672: Kleopatra: Improve Kleopatras detection of keyservers from Restricted Project Column to Restricted Project Column on the Restricted Project board.
Oct 28 2021, 10:07 AM · Restricted Project, scd, kleopatra
ikloecker added a project to T5672: Kleopatra: Improve Kleopatras detection of keyservers: Restricted Project.
Oct 28 2021, 10:07 AM · Restricted Project, scd, kleopatra

Oct 27 2021

werner updated the task description for T5672: Kleopatra: Improve Kleopatras detection of keyservers.
Oct 27 2021, 4:21 PM · Restricted Project, scd, kleopatra

Oct 20 2021

werner lowered the priority of T5546: Kleopatra: After importing the first pubkey for a card from LDAP the keylistview is not refreshed from Normal to Low.

Lets downgrade the priority and keep it open in case we get reports from customers. The other option would be to replicate this here using our AD demo network. But that is a bit time consuming.

Oct 20 2021, 12:26 PM · scd, Info Needed, Restricted Project, kleopatra

Oct 10 2021

werner closed T5632: gpg-agent 2.3.2 conflicts with pcscd as Resolved.
Oct 10 2021, 7:04 PM · Not A Bug, yubikey, scd, gnupg (gpg23)
werner closed T5539: Key generation on OpenPGP Version 3.4 card fails as Resolved.

As long as we can't replicate this, it does not make sense to keep this bug open. Please re-open it if you run into it again in a replicatable way.

Oct 10 2021, 6:59 PM · can't replicate, OpenPGP, scd, Bug Report, gpg4win

Oct 4 2021

gniibe claimed T5632: gpg-agent 2.3.2 conflicts with pcscd.

For 2.3, when you use PC/SC, please use the disable-ccid option in your .gnupg/scdaemon.conf.

Oct 4 2021, 4:07 AM · Not A Bug, yubikey, scd, gnupg (gpg23)

Oct 1 2021

werner added projects to T5632: gpg-agent 2.3.2 conflicts with pcscd: gnupg (gpg23), scd.
Oct 1 2021, 6:15 PM · Not A Bug, yubikey, scd, gnupg (gpg23)

Sep 14 2021

werner lowered the priority of T5085: Filter APDUs in log output from Normal to Low.
Sep 14 2021, 2:00 PM · gnupg24, gnupg22, Feature Request, scd

Aug 31 2021

werner renamed T5583: Support RSCS dedicated OpenPGP for OID. from Support RSCS dedicated OpenPGP fpr OID. to Support RSCS dedicated OpenPGP for OID..
Aug 31 2021, 5:26 PM · gnupg26, Restricted Project, scd
werner triaged T5583: Support RSCS dedicated OpenPGP for OID. as Normal priority.
Aug 31 2021, 5:26 PM · gnupg26, Restricted Project, scd

Aug 26 2021

Sanmilie added a comment to T5570: Add to detect external interference validation the card type : Securite carte à puce .

by the way when the applet is selected, I return
D2760001240103045343000000010000
this can be used to detect the manufacturer number

Aug 26 2021, 7:09 PM · Feature Request, scd
Sanmilie added a comment to T5570: Add to detect external interference validation the card type : Securite carte à puce .

Card ATR at the cool reset
Card ATR is : 3B 9C 95 81 01 50 53 43 50 2D 53 43 53 56 31 2E 30 8E
Historical Byte is 53435356312E30
CARD ATS-to-ATR is : 3B 8C 80 01 50 53 43 50 2D 53 43 53 56 31 2E 30 0A
CARD ATS is : 11 78 80 B8 02 50 53 43 50 2D 53 43 53 56 31 2E 30
Historical Byte is 53435356312E30
This can by detected for the card type.

Aug 26 2021, 6:57 PM · Feature Request, scd
werner added a project to T5570: Add to detect external interference validation the card type : Securite carte à puce : Feature Request.

Is there another way to to detect your card (I assume a Javacard) without relying on the openpgp card application vendor-id like we do it with the Yubikey? I want to avoid a possible early but expensive AID selection just to get the vendor-id.

Aug 26 2021, 6:29 PM · Feature Request, scd
Sanmilie triaged T5570: Add to detect external interference validation the card type : Securite carte à puce as Normal priority.
Aug 26 2021, 6:15 PM · Feature Request, scd

Aug 25 2021

gniibe closed T5297: SCM SPR332 smartcard reader support broken as Resolved.
Aug 25 2021, 3:33 AM · gnupg (gpg22), scd, Bug Report
gniibe closed T5425: scdaemon.conf reader-port setting broken in 2.3 as Resolved.

Fixed in 2.3.2.

Aug 25 2021, 3:30 AM · gnupg, Restricted Project, scd, Bug Report

Aug 24 2021

werner closed T5416: [windows] Smartcards are less reliable under 2.3.1 (requires restarting gpg-agent.exe) as Resolved.
Aug 24 2021, 7:59 PM · yubikey, scd, gnupg (gpg23), Bug Report
werner closed T5484: SCDaemon Not reselect applet and reauthenticate when the card send Security Not Sastisfied as Resolved.
Aug 24 2021, 7:58 PM · yubikey, Bug Report, scd
werner closed T5524: scd: serialize access of ctrl->card_ctx as Resolved.
Aug 24 2021, 7:58 PM · gnupg (gpg23), Restricted Project, scd

Aug 13 2021

werner changed the edit policy for scd.
Aug 13 2021, 11:14 PM

Aug 3 2021

werner added a project to T5539: Key generation on OpenPGP Version 3.4 card fails: can't replicate.
Aug 3 2021, 11:52 AM · can't replicate, OpenPGP, scd, Bug Report, gpg4win
werner triaged T5539: Key generation on OpenPGP Version 3.4 card fails as Normal priority.
Aug 3 2021, 11:48 AM · can't replicate, OpenPGP, scd, Bug Report, gpg4win

Jul 30 2021

werner triaged T5538: gpg-agent's keytocard cmd should use a better default creation time. as Normal priority.
Jul 30 2021, 1:24 PM · gpgagent, gnupg (gpg23)

Jul 28 2021

werner closed T4791: Switch between PIV and OpenPGP app w/o reentering the PIN as Resolved.

Works for a long time now (unless we broke it again;-)

Jul 28 2021, 3:21 PM · scd, yubikey

Jul 22 2021

gniibe added projects to T5524: scd: serialize access of ctrl->card_ctx: Restricted Project, gnupg (gpg23).
Jul 22 2021, 4:38 AM · gnupg (gpg23), Restricted Project, scd
gniibe changed the status of T5524: scd: serialize access of ctrl->card_ctx from Open to Testing.
Jul 22 2021, 4:38 AM · gnupg (gpg23), Restricted Project, scd

Jul 16 2021

gniibe added a comment to T5524: scd: serialize access of ctrl->card_ctx.

This rwlock guarantees access with ctrl->card_ctx is always valid.

Jul 16 2021, 8:42 AM · gnupg (gpg23), Restricted Project, scd
gniibe created T5524: scd: serialize access of ctrl->card_ctx.
Jul 16 2021, 8:40 AM · gnupg (gpg23), Restricted Project, scd

Jul 6 2021

werner lowered the priority of T4884: PKCS #15 support in gpgsm from High to Normal.
Jul 6 2021, 6:12 PM · Feature Request, gnupg, scd, S/MIME

Jun 28 2021

Sanmilie added a revision to T5484: SCDaemon Not reselect applet and reauthenticate when the card send Security Not Sastisfied: D535: More general for large scale multi-apps card in pcsc-shared context. .
Jun 28 2021, 6:18 AM · yubikey, Bug Report, scd
Sanmilie added a task to D535: More general for large scale multi-apps card in pcsc-shared context. : T5484: SCDaemon Not reselect applet and reauthenticate when the card send Security Not Sastisfied.
Jun 28 2021, 6:18 AM · scd
Sanmilie requested review of D535: More general for large scale multi-apps card in pcsc-shared context. .
Jun 28 2021, 6:17 AM · scd

Jun 25 2021

werner added a comment to T5484: SCDaemon Not reselect applet and reauthenticate when the card send Security Not Sastisfied.

FWIW: We have always refused to support shared mode because we anticipated such problems. However, we have a customer using their own cards along with card maintenance software of them. For their purposes PCSC_SHARED works just fine makes and this is why I decided to add --pcsc-shared along with a warning that it is in general not a good idea.

Jun 25 2021, 8:54 AM · yubikey, Bug Report, scd
Sanmilie added a comment to T5484: SCDaemon Not reselect applet and reauthenticate when the card send Security Not Sastisfied.

You need to protect only 2 critical set of ADPU sequence Sign and Decrypt. All other can be done not safely and have a minor impact. Get generation and cards unlock can be profitable with the transaction mode... but is very rare user makes another use of the card in same time he start that’s command. The check external interference can protect from a bad start. I have started this ticket because my card suffer in exclusive mode render the use of openpgp not really usable. When my card is an pcsc-shared mode, all it's OK but the daemon not able to restore after external interference. The correction proposed is OK but I have made recommendations because this can cause a bad applet switch... if the state does not restore before trying to switch applet all it's OK. I am not actually able to set directly differential code but I have described in the patch the change I have made and this make my card very happy. Not problems and the pin was queried if another application makes interference.

Jun 25 2021, 4:18 AM · yubikey, Bug Report, scd
gniibe added a comment to T5484: SCDaemon Not reselect applet and reauthenticate when the card send Security Not Sastisfied.

There are multiple issues here.

Jun 25 2021, 2:59 AM · yubikey, Bug Report, scd

Jun 24 2021

Sanmilie requested changes to D534: scdaemon patch to support some situation with PCSC_SHARED (not all).

OK I have finally success to test... the master version has a problem with opening pcsc readers on windows I revert back on older version to able to correct this problem. For the current patch without yubikey reference. I suggest validating the interference in the first task for the maybe_switch app function.

Jun 24 2021, 6:40 PM · yubikey, scd

Jun 23 2021

gniibe closed T5413: Unblock PIN by Reset Code as Resolved.
Jun 23 2021, 7:12 AM · Restricted Project, gnupg, scd

Jun 21 2021

Sanmilie added a comment to T5484: SCDaemon Not reselect applet and reauthenticate when the card send Security Not Sastisfied.

In fact, the trigger is not yubikey but the pcsc-shared flag... If the pcsc-shared flag is enabled, you do check for interference because you are in shared condition. It is not really a race condition because you can put the driver in transaction mode. It’s more a turn-by-turn games but you can lose the card context status between turn.
If you lock the patch only for yubikey I’m not able to test with my device. You can add my manufacturer ID in the test please.

Jun 21 2021, 8:51 AM · yubikey, Bug Report, scd
gniibe added a comment to T5484: SCDaemon Not reselect applet and reauthenticate when the card send Security Not Sastisfied.

Thank you for your explanation.

Jun 21 2021, 6:16 AM · yubikey, Bug Report, scd
gniibe requested review of D534: scdaemon patch to support some situation with PCSC_SHARED (not all).
Jun 21 2021, 6:10 AM · yubikey, scd
Sanmilie added a comment to T5484: SCDaemon Not reselect applet and reauthenticate when the card send Security Not Sastisfied.

It's not a device is a card. NXP P71 security chips on the card in the 250Kb Rom with GlobalPlateform 2.1.1 It is not possible for a card to change CCID by applet. Card depends of reader CCID. When the card is on NFC readers, the FIDO applet is accessible not when it is on contact readers. But, when I am in NFC FIDO share the CCID. For the user point of view having multiple card for each applet is a bad thing to devices for one user. User search presently for multipurpose devices. DOOR, Login, Email-crypt, ledger. Actually for app is not recommended to use a reader in exclusive mode. By designs the card is stateless and for memory management deselect applet free mem from other applet. Presently in the best case the card has 144-255 KB of eeprom and 2k or ram.

Jun 21 2021, 4:43 AM · yubikey, Bug Report, scd
gniibe added a comment to T5484: SCDaemon Not reselect applet and reauthenticate when the card send Security Not Sastisfied.

If your token/card is not Yubikey and when it is possible to improve your token/card implementation, I would suggest not follow what Yubikey does for multiple applications; No multiple applications, but each feature with independent access (card+CCID, another card+different CCID, FIDO+HID, ...).

Jun 21 2021, 2:08 AM · yubikey, Bug Report, scd

Jun 20 2021

Sanmilie added a comment to T5484: SCDaemon Not reselect applet and reauthenticate when the card send Security Not Sastisfied.

i'am not able to test... i can't build for win32. i have some trouble with my mingw32 installation and the miss match with library for build a functional version of gnupg for win32.
seem missing dll after make install folder. do you have instruction to setup dev environment for build win32 binary ? I use a ubuntu with minwg32. ntbtls seem missing ksba but libksba is already install verion 1.6.0 other project detect correctly ksba. it's seem is a little bit complicated juste for building scd project. a make it working correctly on windows environements.

Jun 20 2021, 11:09 AM · yubikey, Bug Report, scd

Jun 19 2021

Sanmilie added a comment to T5484: SCDaemon Not reselect applet and reauthenticate when the card send Security Not Sastisfied.

Ok i have seen a problem with a double check here

Jun 19 2021, 7:26 AM · yubikey, Bug Report, scd