mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-18 11:46:20 +00:00
Enable secure memory in gcrypt initialisation
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user