mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
agent: New option --s2k-count.
* agent/agent.h (opt): New field 's2k_count'. * agent/gpg-agent.c (oS2KCount): New enum value. (opts): New option --s2k-count. (parse_rereadable_options): Set opt.s2k_count. -- This option is useful to speed up the starting of gpg-agent and in cases where the auto-calibration runs into problems due to a broken time measurement facility. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
922bae8082
commit
f7212f1d11
4 changed files with 30 additions and 0 deletions
|
@ -198,6 +198,9 @@ get_standard_s2k_count (void)
|
|||
{
|
||||
static unsigned long count;
|
||||
|
||||
if (opt.s2k_count)
|
||||
return opt.s2k_count < 65536 ? 65536 : opt.s2k_count;
|
||||
|
||||
if (!count)
|
||||
count = calibrate_s2k_count ();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue