[PATCH] agent: Respect --enable-large-secmem
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Tue Dec 6 17:09:56 CET 2016
* 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 at fifthhorseman.net>
---
agent/gpg-agent.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/agent/gpg-agent.c b/agent/gpg-agent.c
index 710357c..5e2e4bf 100644
--- a/agent/gpg-agent.c
+++ b/agent/gpg-agent.c
@@ -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;
/*
--
2.10.2
More information about the Gnupg-devel
mailing list