Diffusion GnuPG 0cf0f3aaf835

agent: compile-time configuration of s2k calibration.

Authored by dkg on Sep 8 2017, 11:08 PM.

Description

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.

(cherry picked from commit 926d07c5fa05de05caef3a72b6fe156606ac0549)

  • Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
  • GnuPG-bug-id: T3399