Skip to content

Commit

Permalink
Update ykcore.c
Browse files Browse the repository at this point in the history
  • Loading branch information
onlykey authored Jan 17, 2019
1 parent 10b0c05 commit 1371354
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ykcore/ykcore.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,12 @@ YK_KEY *yk_open_key(int index)
int pids[] = {YUBIKEY_PID, NEO_OTP_PID, NEO_OTP_CCID_PID,
NEO_OTP_U2F_PID, NEO_OTP_U2F_CCID_PID, YK4_OTP_PID,
YK4_OTP_U2F_PID, YK4_OTP_CCID_PID, YK4_OTP_U2F_CCID_PID,
PLUS_U2F_OTP_PID, 0x0486}; //Added 3rd party PID to list
PLUS_U2F_OTP_PID, 0x60fc}; //Added 3rd party PID

YK_KEY *yk = _ykusb_open_device(YUBICO_VID, pids, sizeof(pids) / sizeof(int), index);
if (!yk) { //If no Yubikey is found search for compatible 3rd party devices
YK_KEY *yk = _ykusb_open_device(0x16C0, pids, sizeof(pids) / sizeof(int), index);
yk_errno = 0;
yk = _ykusb_open_device(0x1d50, pids, sizeof(pids) / sizeof(int), index);
}
int rc = yk_errno;

Expand Down

0 comments on commit 1371354

Please sign in to comment.