Home GnuPG

api: Add auto expand secmem feature

Description

api: Add auto expand secmem feature

* src/global.c (_gcry_vcontrol): Implement control value 78.
* src/secmem.c (auto_expand): New var.
(_gcry_secmem_set_auto_expand): New.
(_gcry_secmem_malloc_internal): Act upon AUTO_EXPAND.

Backported from master. GCRYCTL_AUTO_EXPAND_SECMEM has been replaced
by its value (78) because we want to add this on the quiet so that we
do not need to claim an API update.

  • GnuPG-bug-id: T3530
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Nov 23 2017, 7:15 PM
Parents
rC334e1a1cfc8f: tests: Add HAVE_MMAP check for MinGW.
Branches
Unknown
Tags
Unknown
Tasks
T3530: Option to auto-increase secmem in gpg-agent