1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-30 02:32:46 +02:00

Allow no uidnode for v5 key.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2022-04-12 15:56:21 +09:00
parent 4d8decc23c
commit e561cb1ae0

View File

@ -1934,7 +1934,7 @@ import_one_real (ctrl_t ctrl,
}
if (!uidnode)
if (pk->version < 5 && !uidnode)
{
if (!silent)
log_error( _("key %s: no user ID\n"), keystr_from_pk(pk));
@ -2021,7 +2021,7 @@ import_one_real (ctrl_t ctrl,
}
/* Delete invalid parts and bail out if there are no user ids left. */
if (!delete_inv_parts (ctrl, keyblock, keyid, options))
if (!delete_inv_parts (ctrl, keyblock, keyid, options) && pk->version < 5)
{
if (!silent)
{