From 70b59f6435b45f41a0a710f23a9e6cc17a135363 Mon Sep 17 00:00:00 2001 From: simon75j Date: Tue, 16 Jun 2009 11:50:09 +0000 Subject: [PATCH] Support firmware v2.0. git-svn-id: https://yubikey-personalization.googlecode.com/svn/trunk@102 b62f149e-849f-11dd-9899-c7ba65f7c4c7 --- ykcore/ykcore.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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; -- 2.39.5