1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

gpg: Indicate which characters are invalid.

* g10/keygen.c (ask_user_id): Indicate which characters are invalid.

--
Signed-off-by: Neal H. Walfield <neal@g10code.com>
GnuPG-bug-id: 1143
This commit is contained in:
Neal H. Walfield 2015-11-05 14:31:58 +01:00
parent ec409e62ae
commit a958ffd148

View File

@ -2536,7 +2536,10 @@ ask_user_id (int mode, int full, KBNODE keyblock)
break; break;
if( strpbrk( aname, "<>" ) ) if( strpbrk( aname, "<>" ) )
{
tty_printf(_("Invalid character in name\n")); tty_printf(_("Invalid character in name\n"));
tty_printf(_("The characters < and > may not appear in name\n"));
}
else if( digitp(aname) ) else if( digitp(aname) )
tty_printf(_("Name may not start with a digit\n")); tty_printf(_("Name may not start with a digit\n"));
else if( strlen(aname) < 5 ) else if( strlen(aname) < 5 )