1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

Allow secret key import with no uidnode for v5 key.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2022-04-12 16:52:16 +09:00
parent 13e6ec6672
commit d587002389

View File

@ -3071,7 +3071,7 @@ import_secret_one (ctrl_t ctrl, kbnode_t keyblock,
return 0;
}
if (!uidnode)
if (pk->version < 5 && !uidnode)
{
if (!for_migration)
log_error( _("key %s: no user ID\n"), keystr_from_pk (pk));