Commit Graph

50 Commits

Author SHA1 Message Date
lovetox
8f55a96463 [omemo] Remove print statements 2020-10-19 22:39:18 +02:00
lovetox
77452756cb [omemo] Add Blind Trust Before Verification
Fixes #310
2020-06-24 21:10:28 +02:00
lovetox
96da3377bf [omemo] Remove unused method 2020-06-24 21:10:28 +02:00
lovetox
65cea42061 [omemo] Don't silently drop message on decryption error
Fixes #496
2020-06-21 23:17:47 +02:00
lovetox
5e4ea58ebd [omemo] Don't include inactive devices on checking undecided trust 2020-06-21 23:17:47 +02:00
lovetox
a98729fd9d [omemo] Sanitize BLOBs in signed_prekeys table 2020-05-23 10:54:50 +02:00
lovetox
84a572b223 [omemo] Sanitize BLOBs in prekeys table 2020-05-23 10:52:20 +02:00
lovetox
9b05896354 [omemo] Sanitize BLOBs in sessions table 2020-05-23 10:34:29 +02:00
lovetox
66c49f5e7b [omemo] Sanitize BLOBs in secret table 2020-05-23 10:21:54 +02:00
lovetox
2aef3b45a7 [omemo] Set sqlite text_factory to str 2020-05-21 22:35:41 +02:00
Philipp Hörist
25cba9eea7 [omemo] Switch to 12 byte IV 2020-02-14 17:43:59 +01:00
Philipp Hörist
f36c9e99cf [omemo] Refactor processing message
Split out some logic into methods
2019-11-09 21:07:48 +01:00
Marcin Mielniczuk
ddebd9381b [omemo] Set trust per JID
Closes #442.
2019-08-20 23:18:02 +02:00
Philipp Hörist
c550f6fc8e [omemo] Fix getRandomSequence()
There was an API change in python-axolotl
2019-05-18 20:39:32 +02:00
Philipp Hörist
c0c0a3dfdf [omemo] Set correct version on database creation 2019-03-25 12:22:03 +01:00
Philipp Hörist
a3f79c6e3c [omemo] Fix database migration 2019-03-24 16:51:26 +01:00
Philipp Hörist
c39c3c80be [omemo] Fix old invalid BLOB database values
The way BLOBs are written to the database has changed in python3
So we read all BLOB values cast them to BLOB then write them back to
the table

Fixes #402, #278
2019-03-24 15:24:00 +01:00
Philipp Hörist
bfe2a0dc5c [omemo] Fix device_id migration 2019-03-20 23:25:02 +01:00
Philipp Hörist
7783864f99 [omemo] Save trust of message to database 2019-03-20 23:24:59 +01:00
Philipp Hörist
d036b0f688 [omemo] Move secret data into own table 2019-03-16 22:56:15 +01:00
Philipp Hörist
237f50cfb5 [omemo] Change logging domain 2019-03-10 10:11:03 +01:00
Philipp Hörist
245be4132f [omemo] Improve logging 2019-03-08 20:26:48 +01:00
Philipp Hörist
2ed1c39f43 [omemo] Build sessions automatically 2019-03-08 20:25:20 +01:00
Philipp Hörist
d4af2b7dad [omemo] Fix encryption messages to self 2019-02-24 23:07:04 +01:00
Philipp Hörist
49ffa7a3b2 [omemo] Improve verifying trust 2019-02-24 23:06:29 +01:00
Philipp Hörist
0c38ee374c [omemo] Make sending key transport messages possible 2019-02-24 23:06:29 +01:00
Philipp Hörist
77b7762cb5 [omemo] Dont Fail on empty prekey table 2019-02-23 18:21:32 +01:00
Philipp Hörist
9362c59250 [omemo] KeyDialog: Show last seen timestamp 2019-02-22 23:09:31 +01:00
Philipp Hörist
01c92b9fe8 [omemo] Show correctly fingerprints in MUC 2019-02-22 22:30:12 +01:00
Philipp Hörist
c90275c492 [omemo] Refactor storeSession() 2019-02-22 21:50:51 +01:00
Philipp Hörist
0f23bb40a8 [omemo] Use hashable IdentityKey 2019-02-22 17:26:06 +01:00
Philipp Hörist
1096596806 [omemo] Dont throw exception on missing session 2019-02-22 17:20:14 +01:00
Philipp Hörist
5aaa6957c9 [omemo] Add sqlite SessionRecord converter 2019-02-22 16:14:27 +01:00
Philipp Hörist
0ee9b2fa78 [omemo] Fix get_devices()
It did not discard our own device when without_self was True
2019-02-22 15:51:11 +01:00
Philipp Hörist
37512bb706 [omemo] Remove unused import 2019-02-21 23:26:53 +01:00
Philipp Hörist
c5150ebea3 [omemo] Adapt KeyDialog 2019-02-21 23:25:34 +01:00
Philipp Hörist
2e8c5a5a70 [omemo] Add sqlite identity key converter 2019-02-21 22:53:45 +01:00
Philipp Hörist
16234036aa [omemo] Switch to PARSE_COLNAMES 2019-02-21 21:52:31 +01:00
Philipp Hörist
335fcf30ca [omemo] Remove unused database column 2019-02-21 21:03:06 +01:00
Philipp Hörist
14a45be321 [omemo] Set devices inactive after 300 unacknowledged messages 2019-02-21 20:56:17 +01:00
Philipp Hörist
d463caf034 [omemo] Fix typo 2019-02-21 00:15:21 +01:00
Philipp Hörist
8aa8dab2f6 [omemo] Store last seen date of fingerprints 2019-02-21 00:15:16 +01:00
Philipp Hörist
7228a478ce [omemo] Remove unused database code 2019-02-21 00:13:39 +01:00
Philipp Hörist
2f0aafba11 [omemo] Dont fail on invalid session 2019-02-19 23:56:31 +01:00
Philipp Hörist
b4bf19d9d5 [omemo] Sqlite use text factory bytes
Sqlite/Pythons detection what to convert to a string seems not reliable,
so always return bytes and convert all TEXT columns
2019-02-18 19:43:03 +01:00
Philipp Hörist
6fd32591fc [omemo] Refactor Plugin 2019-02-17 18:26:17 +01:00
Philipp Hörist
87ece2397e [omemo] Refactor AxolotlStore
- Dont use cursor object
- Use namedtuple factory
2019-02-16 13:58:03 +01:00
Philipp Hörist
3a8fb991c8 [omemo] More refactoring 2019-02-16 10:58:13 +01:00
Philipp Hörist
8b63fd9bad [omemo] Refactor AxolotlStore
- Merge all stores into AxolotlStore
2019-02-12 22:38:30 +01:00
Philipp Hörist
3c78b09fb2 [omemo] Refactor Plugin
- Adapt to nbxmpp supporting OMEMO
- Move python-axolotl code into backend folder
2019-02-12 00:00:12 +01:00