Commit Graph

  • c2a386b889 crypto: Fix a clippy warning. Damir Jelić 2020-08-19 14:40:04 +02:00
  • 317a141e07 crypto: If our own identity passed a SAS flow, mark it as verified. Damir Jelić 2020-08-19 14:34:18 +02:00
  • 3990e50ca6 crypto: Store the verified identities in the SAS states. Damir Jelić 2020-08-19 14:28:16 +02:00
  • 90ea0229f2 crypto: Rename TrustState to LocalTrust since. Damir Jelić 2020-08-19 11:20:08 +02:00
  • a42af5da69 crypto: Let the device hold on to identities. Damir Jelić 2020-08-19 10:54:26 +02:00
  • f63a01a85b crypto: Remove a stale TODO. Damir Jelić 2020-08-18 15:36:04 +02:00
  • 27e1fb9a35 crypto: Pass the user identity to the SAS object when a start event is received. Damir Jelić 2020-08-18 15:25:00 +02:00
  • c21517c61e crypto: Store the changed user identities. Damir Jelić 2020-08-18 15:23:37 +02:00
  • f626f2b24e crypto: Add some logging for the user identity update logic. Damir Jelić 2020-08-18 15:22:30 +02:00
  • 37a7f69e03 crypto: Implement storage for the user identities in the memory store. Damir Jelić 2020-08-18 15:13:56 +02:00
  • 38cf771f1f crypto: Pass the identity further through the SAS layer and try to verify it. Damir Jelić 2020-08-18 14:24:27 +02:00
  • 6d0b73cb3d crypto: Pass the user identity to the SAS object when doing verifications. Damir Jelić 2020-08-18 13:37:02 +02:00
  • f96437a242 crypto: Initial scaffolding for handling user identities in key queries. Damir Jelić 2020-08-18 12:50:03 +02:00
  • 150862ec0c matrix-sdk: Remove an useless into(). Damir Jelić 2020-08-17 17:47:29 +02:00
  • 6db7eb0694 crypto: Add a method to directly verify a device. Damir Jelić 2020-08-17 17:36:07 +02:00
  • 84c0311d80 crypto: Rename the UserDevicesWrap struct. Damir Jelić 2020-08-17 17:12:39 +02:00
  • de097d3ca0 crypto: Rename UserDevices to ReadOnlyUserDevices. Damir Jelić 2020-08-17 17:01:38 +02:00
  • 8aedc3077d matrix-sdk: Add an example to the start verification method of the device. Damir Jelić 2020-08-17 16:47:24 +02:00
  • 0f26e7e3bc crypto: Fix the doc for the read-only device. Damir Jelić 2020-08-17 16:40:37 +02:00
  • 91db502cfe crypto: Rename DeviceWrap to Device. Damir Jelić 2020-08-17 16:36:50 +02:00
  • 43aea6e482 crypto: Rename Device to ReadOnlyDevice. Damir Jelić 2020-08-17 16:17:28 +02:00
  • e778f7d72d matrix-sdk: Remove an unneeded clone. Damir Jelić 2020-08-17 15:56:19 +02:00
  • 94248523b3 matrix-sdk: Implement deref for our device wrapper. Damir Jelić 2020-08-17 15:54:54 +02:00
  • fd8377bce2 crypto: Add device wrappers so that the verification can be started with a device. Damir Jelić 2020-08-17 15:34:05 +02:00
  • 9e609a0fdf matrix-sdk: Move the session into the http client wrapper. Damir Jelić 2020-08-17 15:29:07 +02:00
  • 16a115d27e Merge branch 'up-ruma' into master Damir Jelić 2020-08-17 11:17:02 +02:00
  • 8167f5e9de crypto: Simplify the function signature of the share group session method. Damir Jelić 2020-08-16 16:25:48 +02:00
  • 5876c89858 crypto: The mark_user_as_changed method doesn't need to be public. Damir Jelić 2020-08-15 15:51:04 +02:00
  • 5040be042f Update ruma Jonas Platte 2020-08-15 03:09:13 +02:00
  • ad2d3d2037 Simplify tests in matrix_sdk::client Jonas Platte 2020-08-15 02:49:34 +02:00
  • 09f009ebd7 matrix-sdk: Bump our deps. Damir Jelić 2020-08-14 17:11:54 +02:00
  • 664d8c239c crypto: Don't share group sessions with blacklisted devices. Damir Jelić 2020-08-14 16:20:49 +02:00
  • 97ad060d4b crypto: Test that we can create other users identities. Damir Jelić 2020-08-14 16:18:18 +02:00
  • f4de3580b6 crypto: Expose the device/identity verification methods through the identities. Damir Jelić 2020-08-14 15:32:44 +02:00
  • 0fc5134563 crypto: Add methods to check if a cross signing key signed a device. Damir Jelić 2020-08-14 15:05:48 +02:00
  • b0de9d1809 crypto: Allow some test methods to be dead code since macOS can't use them. Damir Jelić 2020-08-14 15:04:59 +02:00
  • 75fa7e97f9 crypto: Remove some unneeded clones. Damir Jelić 2020-08-14 14:29:53 +02:00
  • d21e8213b5 crypto: Don't panic if the key id can't be parsed. Damir Jelić 2020-08-14 14:25:51 +02:00
  • 181c2a92de crypto: Initial scaffolding for the public cross signing keys. Damir Jelić 2020-08-14 14:10:29 +02:00
  • 08d76f2ff4 crypto: Pass the device key id to the verify signature method. Damir Jelić 2020-08-14 14:08:53 +02:00
  • 5b758b8344 crypto: Don't allow dead code in the SAS layer anymore. Damir Jelić 2020-08-14 11:09:50 +02:00
  • 499f2796ba crypto: Add some logging to the MAC calculation for SAS. Damir Jelić 2020-08-14 10:57:17 +02:00
  • df0444faa5 crypto: Test the full SAS flow from the Olm machine. Damir Jelić 2020-08-13 16:46:11 +02:00
  • b4c1b26f96 crytpo: Store the SAS object in the machine if we're starting it. Damir Jelić 2020-08-13 16:45:12 +02:00
  • 0245782cf4 crypto: Better grammar for a panic message. Damir Jelić 2020-08-13 15:59:17 +02:00
  • 87d0102663 crypto: Test the Olm machine with the default store. Damir Jelić 2020-08-13 15:54:42 +02:00
  • 6ee8b07cfe crypto: Test that session expiration works correctly. Damir Jelić 2020-08-13 15:03:28 +02:00
  • 344631b4ee crypto: Respect the encryption settings of a room when creating sessions. Damir Jelić 2020-08-13 14:37:33 +02:00
  • f3e03c66a5 travis: Don't clippy check all features. Damir Jelić 2020-08-13 12:31:41 +02:00
  • d4e31f07a1 matrix-sdk: Fix the docs for our feature flags. Damir Jelić 2020-08-13 12:18:24 +02:00
  • d4de877e09 base: Fix the docs for our feature flags. Damir Jelić 2020-08-13 12:17:30 +02:00
  • 9b8e11aab9 crypto: Fix the docs for our features. Damir Jelić 2020-08-13 11:06:26 +02:00
  • a0abffd026 crypto: Fix the link to the share group session method. Damir Jelić 2020-08-13 11:04:37 +02:00
  • 4e99278eac matrix-sdk: Expose the device methods in the Client. Damir Jelić 2020-08-13 10:49:38 +02:00
  • cdb8b5c1e9 matrix-sdk: Fix a couple of typoes. Damir Jelić 2020-08-13 10:25:57 +02:00
  • bf42e1a39f matrix-sdk: Put the send_to_device method behind the encryption feature for now. Damir Jelić 2020-08-12 19:18:30 +02:00
  • 5883396106 base: Hide the user devices method behind the encryption feature. Damir Jelić 2020-08-12 17:49:08 +02:00
  • c6b0a19171 base: Fix a stale docstring. Damir Jelić 2020-08-12 17:17:56 +02:00
  • 7ee0430054 base: Add methods to fetch user devices. Damir Jelić 2020-08-12 17:17:22 +02:00
  • 36ca784690 crypto: Expose a method to get all devices of an user. Damir Jelić 2020-08-12 17:16:27 +02:00
  • 2449bd27c1 matrix-sdk: Make sure our doctests don't make HTTP requests. Damir Jelić 2020-08-12 17:15:18 +02:00
  • 29bd38734f matrix-sdk: Remove an unused import. Damir Jelić 2020-08-12 17:10:31 +02:00
  • 6c07620a26 matrix-sdk: Fix the to-device imports for the non-crypto case. Damir Jelić 2020-08-12 16:52:50 +02:00
  • 3e3894b573 matrix-sdk: Fix for the non-encryption enabled use-case. Damir Jelić 2020-08-12 16:19:41 +02:00
  • 0a26195472 matrix-sdk: Clean up the client tests. Damir Jelić 2020-08-12 15:53:42 +02:00
  • 0dc232b268 base: Fix a clippy warning. Damir Jelić 2020-08-12 15:39:38 +02:00
  • c4465e7979 matrix-sdk: Rename cli to client in the doc examples. Damir Jelić 2020-08-12 15:23:44 +02:00
  • 41f04d4f5d client: Refactor out the group session sharing logic. Damir Jelić 2020-08-12 15:21:30 +02:00
  • 15d7deddb8 matrix-sdk: Only claim one-time keys if we're also going to share group sessions. Damir Jelić 2020-08-12 15:15:50 +02:00
  • 18e597aa79 crypto: More doc fixes. Damir Jelić 2020-08-12 15:14:16 +02:00
  • 407f9a3da8 matrix-sdk: Make sure to not send out multiple group share requests at once. Damir Jelić 2020-08-12 15:12:51 +02:00
  • 82c3a795ff crypto: More doc improvements. Damir Jelić 2020-08-12 13:28:16 +02:00
  • ccda5c7260 crypto: Small doc improvements to the OlmMachine. Damir Jelić 2020-08-12 13:11:51 +02:00
  • d706140a8f crypto: Fix a SAS docstring. Damir Jelić 2020-08-12 12:49:29 +02:00
  • 8351858be7 crypto: Expose a method to get a users device. Damir Jelić 2020-08-12 12:48:22 +02:00
  • 7cb25361b2 matrix-sdk: Expose an API to start SAS verifications. Damir Jelić 2020-08-12 11:39:47 +02:00
  • 42a4ad60e8 Merge branch 'lockless-cryptostore' into master Damir Jelić 2020-08-11 17:37:38 +02:00
  • 9a325a4505 matrix-sdk: Move the HttpSend trait into the http_client file. Damir Jelić 2020-08-11 17:25:33 +02:00
  • fe572017b1 Merge branch 'http-send-trait' into master Damir Jelić 2020-08-11 17:07:34 +02:00
  • c4ed5b6cda matrix-sdk: Upgrade our deps. Damir Jelić 2020-08-11 16:54:58 +02:00
  • 0d2f8c6d0f crypto: Fix some clippy warnings. Damir Jelić 2020-08-11 16:01:48 +02:00
  • fa1a40543c crypto: Add a missing license header to the sas helpers file. Damir Jelić 2020-08-11 15:55:13 +02:00
  • 7637e79f2c matrix-sdk: Fix the tarpaulin skip directives. Damir Jelić 2020-08-11 15:49:04 +02:00
  • d0a5b86ff3 crypto: Remove our lock around the cryptostore. Damir Jelić 2020-08-11 15:39:50 +02:00
  • 707b4c1185 crypto: Put a bunch of crypto store stuff behind atomic references. Damir Jelić 2020-08-11 15:17:33 +02:00
  • 9234ac96e1 matrix_sdk: Use our version of the async_trait macro Devin Ragotzy 2020-08-11 09:17:18 -04:00
  • 2437a92998 crypto: Don't require the account loading method to borrow self mutably. Damir Jelić 2020-08-11 15:12:15 +02:00
  • 947fa08dae crypto: Don't require the load_account to mutably borrow self. Damir Jelić 2020-08-11 15:08:07 +02:00
  • 8f4ac3da7f crypto: Change the way we load the devices/sessions in the SqliteStore. Damir Jelić 2020-08-11 14:43:18 +02:00
  • 01bcbaf063 crypto: Remove most mutable self borrows from the crypto-store trait. Damir Jelić 2020-08-11 14:34:42 +02:00
  • 4770dc636a matrix_sdk_common_macros: Bump syn fixing conflicting deps Devin Ragotzy 2020-08-11 08:08:17 -04:00
  • 9294280dc1 matrix_sdk: Add DefaultHttpClient and impl HttpSend Devin Ragotzy 2020-08-11 08:07:45 -04:00
  • fba3298162 matrix_sdk: Create HttpSend trait to abstract sending requests Devin Ragotzy 2020-08-11 08:06:43 -04:00
  • ac2469d270 crypto: Change the way we check if an user is already tracked. Damir Jelić 2020-08-11 13:45:32 +02:00
  • db553b2040 crypto: Fix some clippy warnings. Damir Jelić 2020-08-11 13:38:20 +02:00
  • eeb6a811c0 crypto: Make the in-memory stores threadsafe and cloneable. Damir Jelić 2020-08-11 13:18:58 +02:00
  • 528483ef0e crypto: Remove the last mutable self borrows in the Olm machine methods. Damir Jelić 2020-08-11 12:22:14 +02:00
  • 72168ce084 crypto: Fix the unknown method tests fot the SAS state transitions. Damir Jelić 2020-08-11 11:51:34 +02:00
  • 6c85d3e28f crypto: Use TryFrom to check the accepted SAS protocols. Damir Jelić 2020-08-11 11:24:29 +02:00
  • d5a853f3da crypto: More SAS tests for all the unknown SAS methods. Damir Jelić 2020-08-11 11:05:22 +02:00