Skip to content

Commit

Permalink
Treat CCID bit as indicator of CCID transport
Browse files Browse the repository at this point in the history
  • Loading branch information
dainnilsson committed Mar 1, 2024
1 parent 5780253 commit d7556ef
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion yubikit/management.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d7556ef

Please sign in to comment.