mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Enable secure memory in gcrypt initialisation
This commit is contained in:
parent
b110da9a92
commit
b7144d82fe
@ -47,6 +47,12 @@ omemo_crypto_init(void)
|
|||||||
return -1;
|
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);
|
gcry_control(GCRYCTL_INITIALIZATION_FINISHED, 0);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user