Home GnuPG
Diffusion GnuPG 68613a6a9de4

gpgsm: Cache the non-existence of the policy file.

Description

gpgsm: Cache the non-existence of the policy file.

* sm/certchain.c (check_cert_policy): Add simple static cache.

It is quite common that a policy file does not exist. Thus we can
avoid the overhead of trying to open it over and over again just to
assert that it does not exists.

Details

Provenance
wernerAuthored on May 3 2023, 5:39 PM
Parents
rG0fe99d69f0c8: dirmngr: Fix API of functions wrt their error type.
Branches
Unknown
Tags
Unknown