From: simon75j Date: Tue, 16 Jun 2009 11:50:09 +0000 (+0000) Subject: Support firmware v2.0. X-Git-Tag: yubikey-personalisation_0.97-1~68 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70b59f6435b45f41a0a710f23a9e6cc17a135363;p=yubikey-personalization.old Support firmware v2.0. git-svn-id: https://yubikey-personalization.googlecode.com/svn/trunk@102 b62f149e-849f-11dd-9899-c7ba65f7c4c7 --- diff --git a/ykcore/ykcore.c b/ykcore/ykcore.c index 77f2f33..7c8ee76 100644 --- a/ykcore/ykcore.c +++ b/ykcore/ykcore.c @@ -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;