YK_KEY *yk = _ykusb_open_device(YUBICO_VID, YUBIKEY_PID);
int rc = yk_errno;
+ if(!yk) {
+ yk = _ykusb_open_device(YUBICO_VID, YUBIKEY_NEO_PID);
+ rc = yk_errno;
+ }
+
if (yk) {
YK_STATUS st;
(st.versionMinor == 0 ||
st.versionMinor == 1 ||
st.versionMinor == 2 ||
- st.versionMinor == 3)))) {
+ st.versionMinor == 3)) ||
+ (st.versionMajor == 3 &&
+ (st.versionMinor == 0)))) {
yk_errno = YK_EFIRMWARE;
return 0;
}
#define YUBICO_VID 0x1050
#define YUBIKEY_PID 0x0010
+#define YUBIKEY_NEO_PID 0x0110
/* Slot entries */
break;
case SLOT_NDEF:
/* NDEF is available for neo, thus within 2.1 from build 4 */
- if (!(cfg->yk_major_version == 2 && cfg->yk_minor_version == 1 &&
- cfg->yk_build_version >= 4)) {
+ if (!((cfg->yk_major_version == 2 && cfg->yk_minor_version == 1 &&
+ cfg->yk_build_version >= 4) || cfg->yk_major_version == 3)) {
ykp_errno = YKP_EYUBIKEYVER;
return 0;
}