Commit graph

148 commits

Author SHA1 Message Date
Tulir Asokan
82985811d6 Add some logs to help debug delays in crypto sync handling 2021-12-06 00:41:44 +02:00
Tulir Asokan
f556aff315 Fix tests and Go 1.14 compatibility 2021-12-03 18:19:03 +02:00
Tulir Asokan
087644889b Stop using non-existent device_id field when handling olm messages 2021-12-03 17:47:41 +02:00
Tulir Asokan
5b4a845029 Add time limit to creating new Olm sessions 2021-12-03 16:50:52 +02:00
Tulir Asokan
835194fa2d Automatically create new Olm sessions if decryption fails 2021-12-03 16:23:24 +02:00
Tulir Asokan
e3fa65a076 Add more direct method for sending room key requests 2021-11-26 20:01:32 +02:00
Tulir Asokan
e0ec08ac84 Remove pq dependency 2021-11-02 20:08:03 +02:00
Tulir Asokan
00ca2be6a5 Run gofmt 2021-09-22 10:52:01 -04:00
Tulir Asokan
13ae6b3315 Fix SQLCryptoStore's PutWithheldGroupSession 2021-08-31 17:48:08 +03:00
Tulir Asokan
53be7e7ac8 Add crypto store upgrade for converting VARCHAR(255) to TEXT 2021-08-19 19:10:40 +03:00
Tulir Asokan
02f00b9146 Drop OTK counts intended for other devices 2021-07-24 23:53:58 +03:00
Tulir Asokan
a2ea4f5cf8 Add some omitempty's and a log 2021-07-16 22:01:00 +03:00
Tulir Asokan
72aa96509e Add support for MSC3202 in appservice package 2021-07-14 16:10:47 +03:00
Tulir Asokan
8e5668e126 Lock olmLock mutex when decrypting olm events 2021-04-19 17:24:19 +03:00
Tulir Asokan
e692298009 Improve logging when receiving weird to-device events 2021-03-26 11:15:15 +02:00
Tulir Asokan
55fd988e01 Keep references to memory allocated for Olm structs 2020-11-21 14:37:07 +02:00
Tulir Asokan
c9d7c55f59 Switch to locking olm globally instead of per-session 2020-11-18 13:13:55 +02:00
Tulir Asokan
7116d670f8 Fix defer variables 2020-11-17 23:02:56 +02:00
Tulir Asokan
aae1d7b983 Add more logging around sharing group sessions 2020-11-17 22:51:08 +02:00
Tulir Asokan
495d77b3a0 Merge branch 'master' into cross-sign 2020-10-27 00:38:52 +02:00
Tulir Asokan
a31302832e Move creating inbound session log to debug level 2020-10-06 21:38:30 +03:00
Tulir Asokan
1b3818a2b4 Add session ID to decrypt error 2020-10-05 22:36:00 +03:00
Tulir Asokan
575e242018 Lock olm sessions between encrypting and sending 2020-10-02 01:07:53 +03:00
Tulir Asokan
819fedddbb Fix nil map assingment when waiting for sessions 2020-09-29 11:16:56 +03:00
Tulir Asokan
72fc4c1643 Stop using github.com/pkg/errors 2020-09-24 14:41:29 +03:00
Tulir Asokan
8c3d0bb2c1 Add utility function for waiting for Megolm session to arrive 2020-09-24 14:26:56 +03:00
Tulir Asokan
476596fcc5 Add some tests for SSSS 2020-09-14 15:55:53 +03:00
Tulir Asokan
156aad4c3f Some attempts to fix in-room verification 2020-09-13 00:10:03 +03:00
Tulir Asokan
2f4c0570c0 Even more changes 2020-09-12 23:37:50 +03:00
Tulir Asokan
6010305aed Add method for getting own device identity 2020-09-12 02:24:49 +03:00
Tulir Asokan
b40ab761fa More changes 2020-09-12 01:32:56 +03:00
Tulir Asokan
5837238bb6 Merge branch 'master' into cross-sign 2020-09-11 02:36:39 +03:00
Tulir Asokan
8db8373594 Separate SSSS from cross-signing properly 2020-09-11 01:35:38 +03:00
Tulir Asokan
2fe4ef9193 Add missing nosas build tags 2020-09-10 21:48:56 +03:00
Tulir Asokan
2cba9b5cdc Make errors more user-friendly 2020-09-03 23:13:12 +03:00
Tulir Asokan
1a2f0269bd Reorganize functions for getting SSSS data 2020-09-03 21:05:51 +03:00
Tulir Asokan
853511592b Merge remote-tracking branch 'nikofil/cross-sign' into cross-sign 2020-09-03 19:26:09 +03:00
Tulir Asokan
a9cc0496c4 Add method to manually export/import cross-signing keys 2020-09-03 19:17:50 +03:00
Tulir Asokan
52db0892e1 More error response fixes 2020-09-03 19:02:57 +03:00
Tulir Asokan
77f304baee Add room ID parameter to AcceptVerificationFrom 2020-09-03 18:46:05 +03:00
Tulir Asokan
f0b40ab647 Random code style changes 2020-09-03 18:45:56 +03:00
Tulir Asokan
589abb7b8f Remove unused import and create maps in GobStore 2020-09-03 18:28:34 +03:00
Tulir Asokan
2adba8c3a3 Merge branch 'master' into cross-sign 2020-09-03 17:30:14 +03:00
Tulir Asokan
47db3d0348 Add support for streaming attachment encryption 2020-09-02 02:10:31 +03:00
Nikos Filippakis
037170a278 Implement Relatable for verification EventContent structs
Signed-off-by: Nikos Filippakis <me@nfil.dev>
2020-09-01 15:36:04 +02:00
Nikos Filippakis
b193c0ce52
Support for starting the in-room verification process
Signed-off-by: Nikos Filippakis <me@nfil.dev>
2020-09-01 15:36:03 +02:00
Nikos Filippakis
8b7e8a8cae Support for starting the in-room verification process
Signed-off-by: Nikos Filippakis <me@nfil.dev>
2020-08-30 20:51:17 +02:00
Nikos Filippakis
cbcbbd97fa Handle in-room verification requests
Signed-off-by: Nikos Filippakis <me@nfil.dev>
2020-08-30 20:51:17 +02:00
Nikos Filippakis
7e6ad2e2ec Sign other user's device after SAS verification and have them sign ours
Signed-off-by: Nikos Filippakis <me@nfil.dev>
2020-08-30 20:51:17 +02:00
Nikos Filippakis
dfa32fa016 Delete signatures made by keys that have been replaced since
Signed-off-by: Nikos Filippakis <me@nfil.dev>
2020-08-30 20:51:17 +02:00