1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-10-29 19:48:43 +01:00

agent: Replace hack for old Libgcrypt versions for auto-expand-secmem.

* agent/gpg-agent.c (main) <oAutoExpandSecmem>: Use Libgcrypt const.
This commit is contained in:
Werner Koch 2024-09-27 10:59:49 +02:00
parent 19871fa08c
commit ca953ae5f7
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -1326,10 +1326,7 @@ main (int argc, char **argv)
break;
case oAutoExpandSecmem:
/* Try to enable this option. It will officially only be
* supported by Libgcrypt 1.9 but 1.8.2 already supports it
* on the quiet and thus we use the numeric value value. */
gcry_control (78 /*GCRYCTL_AUTO_EXPAND_SECMEM*/,
gcry_control (GCRYCTL_AUTO_EXPAND_SECMEM,
(unsigned int)pargs.r.ret_ulong, 0);
break;