diff options
author | Werner Koch <[email protected]> | 2024-09-27 08:59:49 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2024-09-27 08:59:49 +0000 |
commit | ca953ae5f768fc2a8d1afe9804f10b6551793b12 (patch) | |
tree | 0897bfa77b213c9d585f67139185cbd956c639eb | |
parent | agent: Better diagnostic for a failed key unprotection. (diff) | |
download | gnupg-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.
-rw-r--r-- | agent/gpg-agent.c | 5 |
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; |