]> err.no Git - yubikey-personalization/commitdiff
Support firmware version 2.1 too.
authorsimon75j <simon75j@b62f149e-849f-11dd-9899-c7ba65f7c4c7>
Fri, 22 Jan 2010 13:58:56 +0000 (13:58 +0000)
committersimon75j <simon75j@b62f149e-849f-11dd-9899-c7ba65f7c4c7>
Fri, 22 Jan 2010 13:58:56 +0000 (13:58 +0000)
git-svn-id: https://yubikey-personalization.googlecode.com/svn/trunk@217 b62f149e-849f-11dd-9899-c7ba65f7c4c7

ykcore/ykcore.c

index 917edc736b10cdb420f73884b82f8ed4312f4577..1f611068b747da57275ceaec296837123caec5e1 100644 (file)
@@ -1,6 +1,6 @@
 /* -*- mode:C; c-file-style: "bsd" -*- */
 /*
- * Copyright (c) 2008, 2009, Yubico AB
+ * Copyright (c) 2008, 2009, 2010, Yubico AB
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -69,7 +69,8 @@ YK_KEY *yk_open_first_key(void)
                                st.versionMinor == 2 ||
                                st.versionMinor == 3)) ||
                              (st.versionMajor == 2 &&
-                              st.versionMinor == 0))) {
+                              (st.versionMinor == 0 ||
+                               st.versionMinor == 1)))) {
                                rc = YK_EFIRMWARE;
                                yk_close_key(yk);
                                yk = NULL;