Browse files

bug in version check, now works with early model NEO

  • Loading branch information...
1 parent dc03f4b commit 96c16662484da8593bca69b9bfdb16e22daddb22 @wwest4 wwest4 committed Feb 14, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 util.c
View
3 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);

0 comments on commit 96c1666

Please sign in to comment.