From b9125b7e3e080caa2c5f233a22f62136322eb077 Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Fri, 21 Feb 2020 20:48:57 +0100 Subject: Enable secure_delete PRAGMA on SQLite databases (#370) It is especially important for OMEMO database, as it stores *ephemeral* keys --- plugins/omemo/src/logic/database.vala | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins') diff --git a/plugins/omemo/src/logic/database.vala b/plugins/omemo/src/logic/database.vala index 6243569f..7a320696 100644 --- a/plugins/omemo/src/logic/database.vala +++ b/plugins/omemo/src/logic/database.vala @@ -233,6 +233,9 @@ public class Database : Qlite.Database { try { exec("PRAGMA synchronous=0"); } catch (Error e) { } + try { + exec("PRAGMA secure_delete=1"); + } catch (Error e) { } } public override void migrate(long oldVersion) { -- cgit v1.2.3-70-g09d2