diff options
| author | Werner Koch <[email protected]> | 2019-04-02 11:22:32 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2019-04-02 11:22:32 +0000 |
| commit | e100ace7f8a729bbe30d9f4ed157a7a229a04eb0 (patch) | |
| tree | c24d6b6e77bfcaf10f899434ba0a55d664371ee3 /scd/app-openpgp.c | |
| parent | sm: Show the usage flags when generating a key from a card. (diff) | |
| download | gnupg-e100ace7f8a729bbe30d9f4ed157a7a229a04eb0.tar.gz gnupg-e100ace7f8a729bbe30d9f4ed157a7a229a04eb0.zip | |
dirmngr: Improve domaininfo cache update algorithm.
* dirmngr/domaininfo.c (struct domaininfo_s): Add field keepmark.
(insert_or_update): Implement new update algorithm.
--
The old algorithm limited the length of a bucket chain by purging the
last 50% or the entries. Thus the first domains entered into the
cache were never purged. The new algorithm is a bit better: It also
limits the chain length on overflow to 50% but tries to keep the
entries indicating that a WKD is available in the cache. If there is
still space to keep more, those which clearly do not support WKD are
also kept.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'scd/app-openpgp.c')
0 files changed, 0 insertions, 0 deletions
