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>
Sun, 30 Sep 2018 16:40:42 +0000 (17:40 +0100)
commitb20b72369c60d3b85c4a65b783ee708be0cd5847
treef60dde7a94a4302cc49d72648bc3e80f9c4a5fea
parent3bbdcf5cfee5f274fb83c9e41f977341b952c7c5
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