Diffusion GnuPG 03a65a53231c

g10: Avoid gratuitously loading a keyblock when it is already available

Authored by neal on Nov 23 2016, 12:29 PM.

Description

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: T2812

Details

Committed
nealNov 23 2016, 12:29 PM
Parents
rGbfeafe2d3f9b: g10: Use es_fopen instead of open.
Branches
Unknown
Tags
Unknown
Neal H. Walfield <neal@g10code.com> committed rG03a65a53231c: g10: Avoid gratuitously loading a keyblock when it is already available (authored by Neal H. Walfield <neal@g10code.com>).Nov 23 2016, 12:29 PM
neal mentioned this in Unknown Object (Maniphest Task).Mar 27 2017, 5:10 PM
neal mentioned this in Unknown Object (Maniphest Task).Mar 27 2017, 5:33 PM