mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
gpg: Remove restrictions for the name part of a user-id.
* g10/keygen.c (ask_user_id): Allow for the name to start with a digit. Allow names shorter than 5. -- The reason for this change is that we don't enforce these constraints in the --quick-gen-key interface. I added the constraints right in the beginning of gnupg to make sure that we have a uniform style for user-ids. However, this is all problematic with non-Latin names and we prefer to use mail addresses anyway.
This commit is contained in:
parent
9000081964
commit
8945f1aedf
@ -3016,13 +3016,6 @@ ask_user_id (int mode, int full, KBNODE keyblock)
|
||||
tty_printf(_("The characters '%s' and '%s' may not "
|
||||
"appear in name\n"), "<", ">");
|
||||
}
|
||||
else if( digitp(aname) )
|
||||
tty_printf(_("Name may not start with a digit\n"));
|
||||
else if (*aname && strlen (aname) < 5)
|
||||
{
|
||||
tty_printf(_("Name must be at least 5 characters long\n"));
|
||||
/* However, we allow an empty name. */
|
||||
}
|
||||
else
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user