]> err.no Git - yubikey-personalization.old/commitdiff
I found a really old yubikey 0.9.9 and it worked fine. Silencing warning.
authorsimon75j <simon75j@b62f149e-849f-11dd-9899-c7ba65f7c4c7>
Fri, 12 Mar 2010 15:28:34 +0000 (15:28 +0000)
committersimon75j <simon75j@b62f149e-849f-11dd-9899-c7ba65f7c4c7>
Fri, 12 Mar 2010 15:28:34 +0000 (15:28 +0000)
git-svn-id: https://yubikey-personalization.googlecode.com/svn/trunk@239 b62f149e-849f-11dd-9899-c7ba65f7c4c7

ykcore/ykcore.c

index 36ffe7dbbe8c2e07a8f6827caef4eeb13e39b699..0735aefbff0776d69a52569f168a530bef4095e2 100644 (file)
@@ -79,7 +79,10 @@ int yk_check_firmware_version(YK_KEY *k)
 
        if (!yk_get_status(k, &st))
                return 0;
-       if (!((st.versionMajor == 1 &&
+       if (!((st.versionMajor == 0 &&
+              (st.versionMinor == 9 ||
+               st.versionBuild == 9)) ||
+             (st.versionMajor == 1 &&
               (st.versionMinor == 0 ||
                st.versionMinor == 1 ||
                st.versionMinor == 2 ||