Home GnuPG
Diffusion GnuPG ef2be95258d2

gpgsm: Use a cache for ISTRUSTED queries.

Description

gpgsm: Use a cache for ISTRUSTED queries.

* sm/call-agent.c (struct istrusted_cache_s): New.
(istrusted_cache, istrusted_cache_valid): New.
(istrusted_cache_disabled): New.
(flush_istrusted_cache): New.
(struct istrusted_status_parm_s): New.
(istrusted_status_cb): Fill the cache.
(gpgsm_agent_istrusted): Implement a cache.

Not a really measurable performance improvements on Linux but maybe
somewhat on Windows (not yet tested). However, it does not clutter
the log files with IPC calls returning NOT_TRUSTED.

Details

Provenance
wernerAuthored on Oct 2 2024, 2:20 PM
Parents
rG4275d5fa7a51: agent: Add option --status to the LISTRUSTED command.
Branches
Unknown
Tags
Unknown
Tasks
T7308: Speed up the X.509 key listings