summaryrefslogtreecommitdiffstats
path: root/g10/keygen.c
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@g10code.com>2015-11-05 14:31:58 +0100
committerNeal H. Walfield <neal@g10code.com>2015-11-05 14:31:58 +0100
commita958ffd148a46f3757d1c309bb13555638044640 (patch)
tree61a8f213ebdf1e692140fb117dd6873038f4ef95 /g10/keygen.c
parentgpg: Add support for unwrapping the outer level of encryption. (diff)
downloadgnupg2-a958ffd148a46f3757d1c309bb13555638044640.tar.xz
gnupg2-a958ffd148a46f3757d1c309bb13555638044640.zip
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
Diffstat (limited to '')
-rw-r--r--g10/keygen.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/g10/keygen.c b/g10/keygen.c
index 85bbe13d4..70d351db6 100644
--- a/g10/keygen.c
+++ b/g10/keygen.c
@@ -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 )