]> err.no Git - yubikey-personalization/commitdiff
oath imf is only available from neo version 2.1.7
authorKlas Lindfors <klas@yubico.com>
Wed, 9 May 2012 18:13:47 +0000 (20:13 +0200)
committerKlas Lindfors <klas@yubico.com>
Wed, 9 May 2012 18:13:47 +0000 (20:13 +0200)
ykpers.c

index de9b36c1acc6220f35366127d59e0370d5fbf23b..144b7db320d7ce78b0ae07331297db5849eaf955 100644 (file)
--- 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)