[PATCH 0/2] agent: Use npth_clock_gettime for S2K calibration.
Damien Goutte-Gattat
dgouttegattat at incenp.org
Thu Jul 13 16:24:37 CEST 2017
Hi GnuPG folks,
This is a follow-up to the discussion on dev.gnupg.org/T3276.
The first of the following two patches proposes to replace the
use of times(2) (which leads to an infinite loop when used under
certain kernel configurations) by the npth_clock_gettime wrapper
as provided by the nPth library. It is quite non-intrusive and
is enough to fix the reported bug.
The second patch (built upon the first) is a proposal for a more
drastic change: it also replaces the Windows-specific code by the
same wrapper. This does not fix anything, the rationale here is
solely to somewhat simplify the code by abstracting system
differences behind the nPth wrapper.
(Note that I don't a have a Windows machine and therefore I
cannot test that second patch. All I can say is that the code
compiles under MingW.)
Damien Goutte-Gattat (2):
agent: Use npth_clock_gettime for S2K calibration.
agent: Use npth_clock_gettime on all platforms.
agent/Makefile.am | 6 ++---
agent/protect.c | 74 +++++++------------------------------------------------
2 files changed, 12 insertions(+), 68 deletions(-)
--
2.9.0
More information about the Gnupg-devel
mailing list