[Pkg-gnupg-commit] [gnupg2] 63/180: agent: Respect --enable-large-secmem

Daniel Kahn Gillmor dkg at fifthhorseman.net
Sat Dec 24 22:29:08 UTC 2016


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch master
in repository gnupg2.

commit 8636ad5023a1bdc527add40a5508f8c5b7c35221
Author: Daniel Kahn Gillmor <dkg at fifthhorseman.net>
Date:   Tue Dec 6 11:01:22 2016 -0500

    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 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;
 
   /*

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git



More information about the Pkg-gnupg-commit mailing list