]> err.no Git - yubikey-personalization/commitdiff
add version check for neo for serial printing
authorKlas Lindfors <klas@yubico.com>
Wed, 25 Apr 2012 12:21:12 +0000 (14:21 +0200)
committerKlas Lindfors <klas@yubico.com>
Wed, 25 Apr 2012 12:21:12 +0000 (14:21 +0200)
ykpersonalize.c

index a430864bebd51c64f5761df2b75d3c37cb26b465..ef01f14ecea4a100cda4ef83f519ee2e26c7eae1 100644 (file)
@@ -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");