]> err.no Git - yubikey-personalization.old/commitdiff
Support more firmwares.
authorsimon75j <simon75j@b62f149e-849f-11dd-9899-c7ba65f7c4c7>
Thu, 7 May 2009 18:23:35 +0000 (18:23 +0000)
committersimon75j <simon75j@b62f149e-849f-11dd-9899-c7ba65f7c4c7>
Thu, 7 May 2009 18:23:35 +0000 (18:23 +0000)
git-svn-id: https://yubikey-personalization.googlecode.com/svn/trunk@69 b62f149e-849f-11dd-9899-c7ba65f7c4c7

ykcore/ykcore.c

index 8da2b19283e4d9c93ac4c1f5715d0e4cdb7b1e62..2f7524968acbac3e74829a4f78e9d083760a6f95 100644 (file)
@@ -63,7 +63,9 @@ YUBIKEY *yk_open_first_key(void)
                        yk_close_key(yk);
                        yk = NULL;
                } else {
-                       if (!(st.versionMajor == 1 && st.versionMinor == 3)) {
+                       if (!(st.versionMajor == 1 &&
+                             (st.versionMinor == 2 ||
+                              st.versionMinor == 3)) {
                                rc = YK_EFIRMWARE;
                                yk_close_key(yk);
                                yk = NULL;