dirmngr,w32: Fix ldap crl read on windows
ClosedPublic

Authored by aheinecke on Apr 26 2017, 9:49 AM.

Details

Summary
  • dirmngr/ldap-wrapper-ce.c (outstream_cookie_s): Add buffer_read_pos.

(buffer_get_data): Use seperate read pos.

Using a single buffer pos for reading and writing caused the read
to return 0 as it read from the end of the buffer. Now we use
a seperate reader position.

Test Plan

Tested it with my certificate and gpgsm --with-validation -k

Diff Detail

Repository
rG GnuPG
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
aheinecke created this revision.Apr 26 2017, 9:49 AM
werner accepted this revision.May 15 2017, 12:48 PM

Feel free to push it if you think it workaround or fixes your bug. Maybe the move from the old Pth emulation to nPth broke things back in 2012.

This revision is now accepted and ready to land.May 15 2017, 12:48 PM