diff options
author | Neal H. Walfield <neal@g10code.com> | 2015-11-05 14:31:58 +0100 |
---|---|---|
committer | Neal H. Walfield <neal@g10code.com> | 2015-11-05 14:31:58 +0100 |
commit | a958ffd148a46f3757d1c309bb13555638044640 (patch) | |
tree | 61a8f213ebdf1e692140fb117dd6873038f4ef95 /g10/keygen.c | |
parent | gpg: Add support for unwrapping the outer level of encryption. (diff) | |
download | gnupg2-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.c | 3 |
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 ) |