]> err.no Git - yubikey-personalization.old/commitdiff
Support firmware v2.0.
authorsimon75j <simon75j@b62f149e-849f-11dd-9899-c7ba65f7c4c7>
Tue, 16 Jun 2009 11:50:09 +0000 (11:50 +0000)
committersimon75j <simon75j@b62f149e-849f-11dd-9899-c7ba65f7c4c7>
Tue, 16 Jun 2009 11:50:09 +0000 (11:50 +0000)
git-svn-id: https://yubikey-personalization.googlecode.com/svn/trunk@102 b62f149e-849f-11dd-9899-c7ba65f7c4c7

ykcore/ykcore.c

index 77f2f33937f8205fe65c2922a59bdfbcea1b8b4c..7c8ee760540e1697fcb9e9a2c762b4f3503fcb72 100644 (file)
@@ -64,9 +64,11 @@ YK_KEY *yk_open_first_key(void)
                        yk_close_key(yk);
                        yk = NULL;
                } else {
-                       if (!(st.versionMajor == 1 &&
-                             (st.versionMinor == 2 ||
-                              st.versionMinor == 3))) {
+                       if (!((st.versionMajor == 1 &&
+                              (st.versionMinor == 2 ||
+                               st.versionMinor == 3)) ||
+                             (st.versionMajor == 2 &&
+                              st.versionMinor == 0))) {
                                rc = YK_EFIRMWARE;
                                yk_close_key(yk);
                                yk = NULL;