mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
g10: Avoid gratuitously loading a keyblock when it is already available
* g10/trust.c (get_validity): Add new, optional parameter KB. Only load the keyblock if KB is NULL. Update callers. (get_validity): Likewise. * g10/trustdb.c (tdb_get_validity_core): Likewise. -- Signed-off-by: Neal H. Walfield <neal@g10code.com> GnuPG-bug-id: 2812
This commit is contained in:
parent
bfeafe2d3f
commit
03a65a5323
11 changed files with 108 additions and 50 deletions
|
@ -292,19 +292,22 @@ check_trustdb_stale (ctrl_t ctrl)
|
|||
}
|
||||
|
||||
int
|
||||
get_validity_info (ctrl_t ctrl, PKT_public_key *pk, PKT_user_id *uid)
|
||||
get_validity_info (ctrl_t ctrl, kbnode_t kb, PKT_public_key *pk,
|
||||
PKT_user_id *uid)
|
||||
{
|
||||
(void)ctrl;
|
||||
(void)kb;
|
||||
(void)pk;
|
||||
(void)uid;
|
||||
return '?';
|
||||
}
|
||||
|
||||
unsigned int
|
||||
get_validity (ctrl_t ctrl, PKT_public_key *pk, PKT_user_id *uid,
|
||||
get_validity (ctrl_t ctrl, kbnode_t kb, PKT_public_key *pk, PKT_user_id *uid,
|
||||
PKT_signature *sig, int may_ask)
|
||||
{
|
||||
(void)ctrl;
|
||||
(void)kb;
|
||||
(void)pk;
|
||||
(void)uid;
|
||||
(void)sig;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue