From 96c16662484da8593bca69b9bfdb16e22daddb22 Mon Sep 17 00:00:00 2001 From: William West Date: Thu, 14 Feb 2013 01:48:34 -0500 Subject: [PATCH] bug in version check, now works with early model NEO --- util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util.c b/util.c index dac9fb3..01a5279 100644 --- a/util.c +++ b/util.c @@ -119,7 +119,8 @@ check_firmware_version(YK_KEY *yk, bool verbose, bool quiet) } if (ykds_version_major(st) < 2 || - ykds_version_minor(st) < 2) { + (ykds_version_major(st) == 2 + && ykds_version_minor(st) < 2)) { if (! quiet) fprintf(stderr, "Challenge-response not supported before YubiKey 2.2.\n"); free(st);