1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +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; break;
case oAutoExpandSecmem: case oAutoExpandSecmem:
/* Try to enable this option. It will officially only be gcry_control (GCRYCTL_AUTO_EXPAND_SECMEM,
* 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*/,
(unsigned int)pargs.r.ret_ulong, 0); (unsigned int)pargs.r.ret_ulong, 0);
break; break;