From d7556ef5f31db8e53977e5368035cbb616995693 Mon Sep 17 00:00:00 2001 From: Dain Nilsson Date: Fri, 1 Mar 2024 11:38:33 +0100 Subject: [PATCH] Treat CCID bit as indicator of CCID transport --- yubikit/management.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/yubikit/management.py b/yubikit/management.py index 7f448e86..bd9f43f7 100644 --- a/yubikit/management.py +++ b/yubikit/management.py @@ -97,7 +97,11 @@ def usb_interfaces(self) -> USB_INTERFACE: if self & (CAPABILITY.U2F | CAPABILITY.FIDO2): ifaces |= USB_INTERFACE.FIDO if self & ( - CAPABILITY.OATH | CAPABILITY.PIV | CAPABILITY.OPENPGP | CAPABILITY.HSMAUTH + 0x4 # General CCID bit + | CAPABILITY.OATH + | CAPABILITY.PIV + | CAPABILITY.OPENPGP + | CAPABILITY.HSMAUTH ): ifaces |= USB_INTERFACE.CCID return ifaces