From: Klas Lindfors Date: Tue, 27 Mar 2012 06:06:38 +0000 (+0200) Subject: add vcheck function for 2.3 X-Git-Tag: v1.7.0~1^2~63 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46182ca887dd5bcff646a3dd727a780cf3b622c7;p=yubikey-personalization add vcheck function for 2.3 --- diff --git a/ykpers.c b/ykpers.c index cd1f442..aea4818 100644 --- a/ykpers.c +++ b/ykpers.c @@ -309,6 +309,13 @@ static bool vcheck_v22_or_greater(const YKP_CONFIG *cfg) cfg->yk_major_version > 2; } +static bool vcheck_v23_or_greater(const YKP_CONFIG *cfg) +{ + return (cfg->yk_major_version == 2 && + cfg->yk_minor_version >= 3) || + cfg->yk_major_version > 2; +} + int ykp_set_oath_imf(YKP_CONFIG *cfg, unsigned long imf) { if (!vcheck_v22_or_greater(cfg)) {