Commit Graph

1814 Commits (b6c7b317bff50f116cd76d36b6433e3e83793d89)

Author SHA1 Message Date
Damir Jelić 58585b9828 Cargo.toml: Depend on the git hosted ruma crates. 2020-04-09 17:04:34 +02:00
Damir Jelić 609df21271 async_client: Add a method to share room keys. 2020-04-09 16:29:03 +02:00
Damir Jelić 61f3da3161 async_client: Add the content-type header to our requests. 2020-04-09 16:28:27 +02:00
Damir Jelić ee290add45 async_client: Build the URL path a bit more cleanly. 2020-04-09 16:27:43 +02:00
Damir Jelić 8583232873 base_client: Expose the methods necessary for message encryption. 2020-04-09 16:27:09 +02:00
Damir Jelić 01664bc613 async_client: Allow the content and event type to be overridden when sending messages. 2020-04-09 16:26:00 +02:00
Damir Jelić dc2983d9a2 crypto: Add initial support to encrypt messages. 2020-04-09 16:24:40 +02:00
Damir Jelić a5f43db859 crypto: Add some more methods to the group session wrapper. 2020-04-09 16:23:24 +02:00
Damir Jelić b4de95185d device: Change to the higher level ruma types for device ids. 2020-04-09 16:22:25 +02:00
Damir Jelić 2c7115da84 async_client: Use a UUID for the transaction id. 2020-04-09 16:19:32 +02:00
Damir Jelić f19e251de1 crypto: Add some initial code for megolm session sharing. 2020-04-08 15:06:57 +02:00
Damir Jelić 816295cd48 crytpo: Add a wrapper for outbound megolm sessions. 2020-04-08 15:05:57 +02:00
Devin R 834d8d7d37 remove serde from dev-deps, add crypto info to design 2020-04-08 07:13:43 -04:00
Devin R 7e6c90ecb9 design doc to help me define the layers? 2020-04-07 17:34:21 -04:00
Devin R 2137d198fc remove internal assertions in favor of returning clients and rooms 2020-04-07 16:11:35 -04:00
Devin R 4dbc0aaad6 clean up, cargo fmt/clippy, add example/TestRunner tests 2020-04-07 08:55:42 -04:00
Devin R f635fbe0cf note about async client test runner 2020-04-06 21:01:48 -04:00
Devin R 9ffe7cca10 more work needed for AsyncClient test runner 2020-04-06 20:59:44 -04:00
Devin R 78f92130fa add individual events for tests, working TestRunner 2020-04-06 15:29:38 -04:00
Devin R 854948fc6d generic add event 2020-04-06 09:11:38 -04:00
Devin R 00ac6d08f9 bring over test builder 2020-04-06 07:13:45 -04:00
Devin R c2b3210cc9 cargo fmt/clippy, move power levels into Room 2020-04-05 12:41:00 -04:00
Devin R e987a9006b remove User and merge fields into RoomMember 2020-04-05 08:34:02 -04:00
Devin R 25a3533792 don't unwrap UserId from state key 2020-04-05 08:23:59 -04:00
Devin R eff322c0c5 crypto compiles, tests pass 2020-04-03 11:00:37 -04:00
Devin R db62c1fa25 cargo fmt/clippy no more warnings 2020-04-03 09:14:46 -04:00
Devin R 4ac9153be1 use RoomId and UserId over string, use setter method names in Room 2020-04-03 09:07:40 -04:00
Damir Jelić 514afbbc1b README: Fix the license name. 2020-04-03 14:51:51 +02:00
Damir Jelić 8063124087 README: Add badges for the code coverage and license. 2020-04-03 14:20:12 +02:00
Damir Jelić 74f1a21e42 rust-sdk: Updates for the new ruma crate versions. 2020-04-03 14:09:56 +02:00
Damir Jelić 12dc5212e3 rust-sdk: Remove a bunch of unused imports and unused variables. 2020-04-03 12:34:05 +02:00
Damir Jelić 2e1add049d travis: Run tarpaulin only once. 2020-04-03 11:49:18 +02:00
Damir Jelić 66e5629b3f travis: Enable coverage reports. 2020-04-03 11:25:54 +02:00
Damir Jelić 294ca108bb rust-sdk: Move some encryption specific imports under a cfg. 2020-04-03 10:42:03 +02:00
Damir Jelić 7c6d0d14dd crypto: Fix the sqlite tests. 2020-04-03 10:39:07 +02:00
Damir Jelić 670761376d async_client: Claim keys for missing sessions if we try to send in an encrypted room. 2020-04-03 10:30:32 +02:00
Damir Jelić 2dd84517b9 crypto: Expose the key-claiming methods in the clients. 2020-04-03 10:27:30 +02:00
Damir Jelić 3d0829b2a0 crypto: Add the new devices to the store. 2020-04-03 10:21:14 +02:00
Damir Jelić 6fce9b335a crypto: Add a method to check for missing Olm sessions for users. 2020-04-03 10:20:03 +02:00
Damir Jelić ff9bcdddb9 crypto: Use a SignedKey type when creating outbound Olm sessions. 2020-04-03 10:16:20 +02:00
Damir Jelić aa7bedbefd Merge branch 'ev-emitter' 2020-04-03 10:14:40 +02:00
Devin R a96286a5ff remove calculate in docs, fix unused imports 2020-04-02 18:22:52 -04:00
Devin R 187734f449 add test and docs for EventEmitter, fix review issues 2020-04-02 15:59:13 -04:00
Damir Jelić 8d487ac097 crypto: Allow the device store to be cloned. 2020-04-02 17:27:39 +02:00
Damir Jelić 785db205c3 crypto: Add initial key claiming handling. 2020-04-02 16:07:21 +02:00
Damir Jelić 913cc374d0 crypto: Calculate the deleted devices in a key query. 2020-04-02 14:52:15 +02:00
Devin R 55c25ce6ba fix encryption feature Mutex::lock instead of RwLock::read 2020-04-02 07:21:24 -04:00
Devin R c172507b5f cargo fmt/clippy 2020-04-02 07:06:21 -04:00
Damir Jelić 56084a7809 crypto: Initial support for device tracking. 2020-04-02 11:14:23 +02:00
Devin R 2ed152708c use inner event type for EventEmitter methods 2020-04-01 16:36:20 -04:00