From b7144d82febae18c235772bf8abae3c7684f3109 Mon Sep 17 00:00:00 2001 From: Paul Fariello Date: Thu, 11 Jul 2019 07:43:11 +0320 Subject: Enable secure memory in gcrypt initialisation --- src/omemo/crypto.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/omemo/crypto.c b/src/omemo/crypto.c index 49be2003..81d7c922 100644 --- a/src/omemo/crypto.c +++ b/src/omemo/crypto.c @@ -47,6 +47,12 @@ omemo_crypto_init(void) return -1; } + gcry_control(GCRYCTL_SUSPEND_SECMEM_WARN); + + gcry_control(GCRYCTL_INIT_SECMEM, 16384, 0); + + gcry_control(GCRYCTL_RESUME_SECMEM_WARN); + gcry_control(GCRYCTL_INITIALIZATION_FINISHED, 0); return 0; -- cgit 1.4.1-2-gfad0