]> err.no Git - yubikey-personalization/commitdiff
add 2.4 and 3.1 firmware versions as supported
authorKlas Lindfors <klas@yubico.com>
Mon, 11 Mar 2013 09:57:41 +0000 (10:57 +0100)
committerKlas Lindfors <klas@yubico.com>
Mon, 11 Mar 2013 10:13:45 +0000 (11:13 +0100)
ykcore/ykcore.c

index 9694c711db855f8d7041de1c110779f2074074fd..37472ed49cbaf3d36292bad6d4ec80d14859c1dd 100644 (file)
@@ -111,9 +111,11 @@ int yk_check_firmware_version2(YK_STATUS *st)
               (st->versionMinor == 0 ||
                st->versionMinor == 1 ||
                st->versionMinor == 2 ||
-               st->versionMinor == 3)) ||
+               st->versionMinor == 3 ||
+               st->versionMinor == 4)) ||
              (st->versionMajor == 3 &&
-              (st->versionMinor == 0)))) {
+              (st->versionMinor == 0 ||
+               st->versionMinor == 1)))) {
                yk_errno = YK_EFIRMWARE;
                return 0;
        }