]> err.no Git - yubikey-personalization.old/commitdiff
Serial number API appeared in 2.2, not 2.0.
authorFredrik Thulin <fredrik@yubico.com>
Tue, 8 Mar 2011 19:35:49 +0000 (20:35 +0100)
committerFredrik Thulin <fredrik@yubico.com>
Tue, 8 Mar 2011 19:35:49 +0000 (20:35 +0100)
ykpersonalize.c

index cb480f1aebc8c10c29586dd2f38d213a79375dfe..888e01c91151a421818c7c58cefac5dd2c0097b4 100644 (file)
@@ -557,7 +557,9 @@ int main(int argc, char **argv)
                goto err;
        }
 
-       if (verbose && ykds_version_major(st) >= 2) {
+       if (verbose && (ykds_version_major(st) > 2 ||
+                       (ykds_version_major(st) == 2 &&
+                        ykds_version_minor(st) >= 2))) {
                unsigned int serial;
                if (! yk_get_serial(yk, 0, 0, &serial)) {
                        printf ("Failed to read serial number (serial-api-visible disabled?).\n");