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
|
@ -304,7 +304,7 @@ show_photos (ctrl_t ctrl, const struct user_attribute *attrs, int count,
|
|||
|
||||
memset (&args, 0, sizeof(args));
|
||||
args.pk = pk;
|
||||
args.validity_info = get_validity_info (ctrl, pk, uid);
|
||||
args.validity_info = get_validity_info (ctrl, NULL, pk, uid);
|
||||
args.validity_string = get_validity_string (ctrl, pk, uid);
|
||||
namehash_from_uid (uid);
|
||||
args.namehash = uid->namehash;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue