From: Fredrik Thulin Date: Tue, 8 Mar 2011 19:35:49 +0000 (+0100) Subject: Serial number API appeared in 2.2, not 2.0. X-Git-Tag: v1.5.0~5^2 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78d5dd2cd25ecbbc86854b01062bab3c5db777d2;p=yubikey-personalization.old Serial number API appeared in 2.2, not 2.0. --- diff --git a/ykpersonalize.c b/ykpersonalize.c index cb480f1..888e01c 100644 --- a/ykpersonalize.c +++ b/ykpersonalize.c @@ -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");