From: Klas Lindfors Date: Wed, 25 Apr 2012 12:21:12 +0000 (+0200) Subject: add version check for neo for serial printing X-Git-Tag: v1.7.0~1^2~25 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0603199fc7e242650b5a4b272a6ed8d2376ffaf8;p=yubikey-personalization add version check for neo for serial printing --- diff --git a/ykpersonalize.c b/ykpersonalize.c index a430864..ef01f14 100644 --- a/ykpersonalize.c +++ b/ykpersonalize.c @@ -132,7 +132,11 @@ int main(int argc, char **argv) if (verbose && (ykds_version_major(st) > 2 || (ykds_version_major(st) == 2 && - ykds_version_minor(st) >= 2))) { + ykds_version_minor(st) >= 2) || + (ykds_version_major(st) == 2 && // neo has serial functions + ykds_version_minor(st) == 1 && + ykds_version_build(st) >= 4 && + ykds_version_build(st) != 9))) { unsigned int serial; if (! yk_get_serial(yk, 0, 0, &serial)) { printf ("Failed to read serial number (serial-api-visible disabled?).\n");