From ca953ae5f768fc2a8d1afe9804f10b6551793b12 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 27 Sep 2024 10:59:49 +0200 Subject: [PATCH] agent: Replace hack for old Libgcrypt versions for auto-expand-secmem. * agent/gpg-agent.c (main) : Use Libgcrypt const. --- agent/gpg-agent.c | 5 +---- 1 file changed, 1 insertion(+), 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;