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>
Thu, 30 Aug 2018 15:57:15 +0000 (16:57 +0100)
commit4b97b1d43b6c820d78f324cc8b35fdf00064623a
treecce17f6afe8332a26dbc2a466b84b9fce0755d1a
parentd59b96065ad9347f0f0afb0da7efa0493d874701
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