Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jens Korte
gajim-plugins
Commits
af45dd3b
Commit
af45dd3b
authored
Jun 29, 2018
by
Alexander Krotov
Browse files
Enable secure_delete pragma for omemo database connection
parent
5dd424a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
omemo/omemo_connection.py
View file @
af45dd3b
...
...
@@ -94,6 +94,7 @@ class OMEMOConnection:
data_dir
=
configpaths
.
get
(
'MY_DATA'
)
db_path
=
os
.
path
.
join
(
data_dir
,
'omemo_'
+
self
.
own_jid
+
'.db'
)
conn
=
sqlite3
.
connect
(
db_path
,
check_same_thread
=
False
)
conn
.
execute
(
"PRAGMA secure_delete=1"
)
return
OmemoState
(
self
.
own_jid
,
conn
,
self
.
account
,
self
)
def
signed_in
(
self
,
event
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment