From: Simon Josefsson Date: Tue, 16 Jun 2009 11:50:09 +0000 (+0000) Subject: Support firmware v2.0. X-Git-Tag: yubikey-personalisation_1.3.5-1~4^2~133 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c02d456cf08be5d246039ff6b28748180d0c56a7;p=yubikey-personalization Support firmware v2.0. --- 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;