agent: Respect --enable-large-secmem

* agent/gpg-agent.c (main): Initialize secmem to the configured buffer
size.

--

This patch is a step toward addressing
GnuPG-bug-id: 2857

Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
This commit is contained in:
Daniel Kahn Gillmor 2016-12-06 11:01:22 -05:00
parent e352ead43f
commit 8636ad5023
1 changed files with 1 additions and 1 deletions

View File

@ -1055,7 +1055,7 @@ main (int argc, char **argv )
}
/* Initialize the secure memory. */
gcry_control (GCRYCTL_INIT_SECMEM, 32768, 0);
gcry_control (GCRYCTL_INIT_SECMEM, SECMEM_BUFFER_SIZE, 0);
maybe_setuid = 0;
/*