gpg: Unifiy the message for re-configuring cards.
authorWerner Koch <wk@gnupg.org>
Thu, 2 Nov 2017 16:20:13 +0000 (17:20 +0100)
committerWerner Koch <wk@gnupg.org>
Thu, 2 Nov 2017 16:20:13 +0000 (17:20 +0100)
* g10/card-util.c (ask_card_keyattr): Print "rsaNNNN".
--

This is a separate patch from the previous to avoid string changes
when backporting the other patch to 2.2.

Signed-off-by: Werner Koch <wk@gnupg.org>
g10/card-util.c

index 2294df1..8a03a26 100644 (file)
@@ -1381,8 +1381,12 @@ ask_card_keyattr (int keyno, unsigned int nbits)
             }
           else
             {
+              char name[30];
+
+              snprintf (name, sizeof name, "rsa%u", req_nbits);
               tty_printf (_("The card will now be re-configured"
-                            " to generate a key of %u bits\n"), req_nbits);
+                            " to generate a key of type: %s\n"),
+                          name);
               show_keysize_warning ();
               return req_nbits;
             }