]> err.no Git - yubikey-personalization.old/commitdiff
Clarify type of key in error message.
authorFredrik Thulin <fredrik@yubico.com>
Mon, 7 Mar 2011 14:23:01 +0000 (15:23 +0100)
committerFredrik Thulin <fredrik@yubico.com>
Mon, 7 Mar 2011 14:23:01 +0000 (15:23 +0100)
ykpersonalize.c

index bfa3170efe942e51f664e86b2df6ce976c52fe7e..387e650563d395dbfbe3f57258f1373b9f5fae03 100644 (file)
@@ -466,7 +466,7 @@ int args_to_config(int argc, char **argv, YKP_CONFIG *cfg,
                }
                        
                if (res) {
-                       fprintf(stderr, "Bad AES key: %s\n", aeshash);
+                       fprintf(stderr, "Bad %s key: %s\n", long_key_valid ? "HMAC":"AES", aeshash);
                        fflush(stderr);
                        return 0;
                }