gpg: Unifiy the message for re-configuring cards.

* 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>
This commit is contained in:
Werner Koch 2017-11-02 17:20:13 +01:00
parent ea09b6cded
commit 922bae8082
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
1 changed files with 5 additions and 1 deletions

View 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;
}