agent: New GETINFO sub-commands "s2k_count_cal" and "s2k_time".
authorWerner Koch <wk@gnupg.org>
Mon, 6 Nov 2017 13:20:03 +0000 (14:20 +0100)
committerWerner Koch <wk@gnupg.org>
Mon, 6 Nov 2017 14:11:24 +0000 (15:11 +0100)
commit3607ab2cf382296cb398a92d5ec792239960bf7b
tree731aa73c483a0bdb8faa38346c82e6df488cc38e
parent78a6d0ce88ae14d8324fbab3aee3286b17e49259
agent: New GETINFO sub-commands "s2k_count_cal" and "s2k_time".

* agent/command.c (cmd_getinfo): New sub-commands.
* agent/protect.c (get_standard_s2k_count): Factor some code out to ...
(get_calibrated_s2k_count): new.
(get_standard_s2k_time): New.

Signed-off-by: Werner Koch <wk@gnupg.org>
(cherry picked from commit 52d41c8b0f4af6278d18d8935399ddad16a26856)
agent/agent.h
agent/command.c
agent/protect.c
doc/gpg-agent.texi