[PATCH gnupg] scd: Add Nitrokey 3 to pcsc-shared interference detection

Artemii Bigdan artem at bigdan.in
Sun Jun 21 08:56:34 CEST 2026


Hi,

this patch extends the pcsc-shared interference detection introduced
in commit rG044e5a3c3801 (T5484) to also cover Nitrokey 3 tokens.

The detection was limited to CARDTYPE_YUBIKEY. This patch adds
CARDTYPE_NK3 alongside Yubikey in all relevant code paths.

Additionally, the ATR-based card type heuristics in app_new_register()
is moved to run unconditionally. NK3 does not support SELECT MF (0x3F00)
in all states, which previously routed it through the Yubikey detection
path, skipping ATR detection and leaving the cardtype as GENERIC.

The patch is attached.

GnuPG-bug-id: T5484
Signed-off-by: Artemii Bigdan <artem at bigdan.in>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0025-scdaemon-nitrokey3-pcsc-shared.patch
Type: text/x-patch
Size: 8452 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gnupg-devel/attachments/20260621/c93d4548/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0x4BBCA36FA9E37526.asc
Type: application/pgp-keys
Size: 1314 bytes
Desc: OpenPGP public key
URL: <https://lists.gnupg.org/pipermail/gnupg-devel/attachments/20260621/c93d4548/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: OpenPGP digital signature
URL: <https://lists.gnupg.org/pipermail/gnupg-devel/attachments/20260621/c93d4548/attachment.sig>


More information about the Gnupg-devel mailing list