agent: compile-time configuration of s2k calibration.
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Fri, 8 Sep 2017 21:08:57 +0000 (17:08 -0400)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Mon, 8 Oct 2018 15:36:01 +0000 (16:36 +0100)
commit4f8e3cb31cdf097f9d17a8f79a254836adaabff7
tree85555387eb416216dd2f9f50390dd41ea8567a4b
parentcc9197e488bdba75e91dcaa41be29de154f082c7
agent: compile-time configuration of s2k calibration.

* configure.ac: add --with-agent-s2k-calibration=MSEC, introduces
AGENT_S2K_CALIBRATION (measured in milliseconds)
* agent/protect.c (calibrate_s2k_count): Calibrate based on
AGENT_S2K_CALIBRATION.

Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
GnuPG-bug-id: 3399
(cherry picked from commit 926d07c5fa05de05caef3a72b6fe156606ac0549)

Gbp-Pq: Topic from-master
Gbp-Pq: Name agent-compile-time-configuration-of-s2k-calibration.patch
agent/protect.c
configure.ac