mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
gpg: Also allow a v5 fingerprint for --trusted-key.
* g10/trustdb.c (tdb_register_trusted_key): Add case for 32 octet fingerprints. -- GnuPG-bug-id: 4855 Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
810ea2cc68
commit
4287f89557
2 changed files with 9 additions and 1 deletions
|
@ -228,6 +228,13 @@ tdb_register_trusted_key (const char *string)
|
|||
register_trusted_keyid (kid);
|
||||
return;
|
||||
}
|
||||
if (desc.mode == KEYDB_SEARCH_MODE_FPR && desc.fprlen == 32)
|
||||
{
|
||||
kid[0] = buf32_to_u32 (desc.u.fpr);
|
||||
kid[1] = buf32_to_u32 (desc.u.fpr+4);
|
||||
register_trusted_keyid (kid);
|
||||
return;
|
||||
}
|
||||
}
|
||||
log_error (_("'%s' is not a valid long keyID\n"), string );
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue