1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-22 19:45:54 -04:00

Enable secure memory in gcrypt initialisation

This commit is contained in:
Paul Fariello 2019-07-11 07:43:11 +03:20
parent b110da9a92
commit b7144d82fe

View File

@ -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;