From 6c98d7b9ebecd07214790bf64df884159079d00c Mon Sep 17 00:00:00 2001 From: simon75j Date: Fri, 22 Jan 2010 13:58:56 +0000 Subject: [PATCH] Support firmware version 2.1 too. git-svn-id: https://yubikey-personalization.googlecode.com/svn/trunk@217 b62f149e-849f-11dd-9899-c7ba65f7c4c7 --- ykcore/ykcore.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ykcore/ykcore.c b/ykcore/ykcore.c index 917edc7..1f61106 100644 --- a/ykcore/ykcore.c +++ b/ykcore/ykcore.c @@ -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; -- 2.39.5