gpg: Indicate which characters are invalid.
authorNeal H. Walfield <neal@g10code.com>
Thu, 5 Nov 2015 13:31:58 +0000 (14:31 +0100)
committerNeal H. Walfield <neal@g10code.com>
Thu, 5 Nov 2015 13:31:58 +0000 (14:31 +0100)
* g10/keygen.c (ask_user_id): Indicate which characters are invalid.

--
Signed-off-by: Neal H. Walfield <neal@g10code.com>
GnuPG-bug-id: 1143

g10/keygen.c

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