From: Klas Lindfors Date: Wed, 9 May 2012 18:13:47 +0000 (+0200) Subject: oath imf is only available from neo version 2.1.7 X-Git-Tag: v1.7.0~1^2~8 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c7d3b09f76258c2ba4a1171cf7c5c0ebd4c79c8;p=yubikey-personalization oath imf is only available from neo version 2.1.7 --- diff --git a/ykpers.c b/ykpers.c index de9b36c..144b7db 100644 --- a/ykpers.c +++ b/ykpers.c @@ -470,6 +470,11 @@ static bool vcheck_neo_before_5(const YKP_CONFIG *cfg) return vcheck_neo(cfg) && cfg->yk_build_version < 5; } +static bool vcheck_neo_after_6(const YKP_CONFIG *cfg) +{ + return vcheck_neo(cfg) && cfg->yk_build_version > 6; +} + static bool capability_has_hidtrig(const YKP_CONFIG *cfg) { return vcheck_v1(cfg); @@ -502,7 +507,7 @@ static bool capability_has_chal_resp(const YKP_CONFIG *cfg) static bool capability_has_oath_imf(const YKP_CONFIG *cfg) { - return vcheck_v22_or_greater(cfg) || vcheck_neo(cfg); + return vcheck_v22_or_greater(cfg) || vcheck_neo_after_6(cfg); } static bool capability_has_serial_api(const YKP_CONFIG *cfg)