aboutsummaryrefslogtreecommitdiffstats
path: root/agent/gpg-agent.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2024-09-27 08:59:49 +0000
committerWerner Koch <[email protected]>2024-09-27 08:59:49 +0000
commitca953ae5f768fc2a8d1afe9804f10b6551793b12 (patch)
tree0897bfa77b213c9d585f67139185cbd956c639eb /agent/gpg-agent.c
parentagent: Better diagnostic for a failed key unprotection. (diff)
downloadgnupg-ca953ae5f768fc2a8d1afe9804f10b6551793b12.tar.gz
gnupg-ca953ae5f768fc2a8d1afe9804f10b6551793b12.zip
agent: Replace hack for old Libgcrypt versions for auto-expand-secmem.
* agent/gpg-agent.c (main) <oAutoExpandSecmem>: Use Libgcrypt const.
Diffstat (limited to 'agent/gpg-agent.c')
-rw-r--r--agent/gpg-agent.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/agent/gpg-agent.c b/agent/gpg-agent.c
index 7d1ffc614..5b1f155fe 100644
--- a/agent/gpg-agent.c
+++ b/agent/gpg-agent.c
@@ -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;