Page MenuHome GnuPG

dirmngr: Read CRLs into memory on Windows
AbandonedPublic

Authored by aheinecke on Oct 24 2018, 10:26 AM.

Details

Summary
  • dirmngr/cdb.h (struct cdb): Remove mapping handle.
  • dirmngr/cdblib.c (cdb_init): Read file into mem on windows.

(cdb_free): Free mem for Windows.

This fixes the problem that dirmngr keeps open handles to
the CRLs and flush / delete of the GnuPG Home Directory
does not work.
For Windows we can assume that memory for CRLs is available
and we don't have to optimize for memory usage here.

GnuPG-Bug-ID: T4182

Test Plan

Tested it on Windows manually

Diff Detail

Repository
rG GnuPG
Branch
STABLE-BRANCH-2-2
Lint
No Linters Available
Unit
No Unit Test Coverage