1
0
mirror of https://github.com/Yubico/yubico-pam.git synced 2025-02-20 21:54:16 +01:00

bug in version check, now works with early model NEO

This commit is contained in:
William West 2013-02-14 01:48:34 -05:00
parent dc03f4b713
commit 96c1666248

3
util.c
View File

@ -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);