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>
Fri, 8 Sep 2017 21:08:57 +0000 (17:08 -0400)
commit926d07c5fa05de05caef3a72b6fe156606ac0549
tree2d3fc8fff8e5fbbb7f94c2a4548d2390536e55fd
parent73ff075204df09db5248170a049f06498cdbb7aa
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
agent/protect.c
configure.ac