Kévin Commaille
dfdaea786b
docs: Document RumaApiError variants
2022-04-26 18:49:21 +02:00
Kévin Commaille
189ae93e90
fix(sdk): Export RumaApiError
2022-04-26 18:17:04 +02:00
Damir Jelić
39ef1d550d
chore(crypto): Improve a log line
2022-04-26 14:46:07 +02:00
Damir Jelić
a425ddf97f
fix(crypto): Don't try to encrypt a room key for our own device
2022-04-26 14:46:07 +02:00
Damir Jelić
d38995b3f9
fix(crypto): Add our own device to the store when we create a new account
2022-04-26 14:46:07 +02:00
Damir Jelić
3490a9f726
chore(crypto): Remove a useless compile_error! call
2022-04-26 13:56:45 +02:00
Damir Jelić
610e3ffc5f
fix(crypto): Be more restrictive around Megolm session rotation periods
2022-04-26 13:56:45 +02:00
Jonas Platte
2a11df01c7
chore(indexeddb): Remove unneeded matrix-sdk-common dependency
2022-04-26 11:40:54 +02:00
Jonas Platte
08fd85ea09
chore: Upgrade Ruma
2022-04-26 11:40:54 +02:00
Jonas Platte
32d1997dfc
feat(crypto): Accept borrowed identifiers in some public functions
2022-04-26 11:40:54 +02:00
Jonas Platte
00249ab96e
fix: Fix a typo
2022-04-26 11:40:54 +02:00
Damir Jelić
7710b0b14f
Merge branch 'poljar/encrypted-reactions-fix'
2022-04-26 11:22:39 +02:00
Damir Jelić
cc6e5b868e
chore(sdk): Use the % sigil to record room ids
2022-04-26 09:58:25 +02:00
Damir Jelić
5f83184512
fix(sdk): Don't encrypt reactions
2022-04-26 09:41:50 +02:00
Jonas Platte
16a35081ed
feat(sdk): Merge HttpError::{Api, ClientApi}
2022-04-25 19:55:56 +02:00
Jonas Platte
ddb6d6af90
chore: Fix typos
2022-04-25 19:42:06 +02:00
Damir Jelić
1f8f7c853b
docs(crypto-ffi): Slight docs improvements
...
Co-authored-by: Denis Kasak <dkasak@termina.org.uk >
2022-04-25 14:22:01 +02:00
Damir Jelić
a25a88bd25
refactor(crypto-ffi): Use the anyhow Result type for the migration function
2022-04-25 14:22:01 +02:00
Damir Jelić
94832d1a8b
fix(crypto-ffi): Allow the machine to be opened with a passphrase
2022-04-25 14:22:01 +02:00
Damir Jelić
2552c0f393
docs(crypto-ffi): Add docs to the migrate method
2022-04-25 14:22:01 +02:00
Damir Jelić
797fbb2fda
feat(crypto-ffi): Add a progress listener to the migrate method
2022-04-25 14:22:01 +02:00
Damir Jelić
35d4749ba7
feat(crypto-ffi): Add support to migrate from a libolm based setup
2022-04-25 14:22:01 +02:00
Damir Jelić
c5ddca3bc4
feat(sled): Add a method to save tracked users in a batched way
2022-04-25 14:22:01 +02:00
Damir Jelić
a6b7c98002
feat(crypto): Add a public method to import private cross signing keys
2022-04-25 14:22:01 +02:00
Benjamin Kampmann
84b721abb0
Merge pull request #599 from zecakeh/pr-cov
...
ci: Run code coverage for pull requests
2022-04-25 14:07:27 +02:00
Kévin Commaille
5c41b992b7
ci: Add newline at end of codecov.yaml
...
Co-authored-by: Benjamin Kampmann <ben.kampmann@gmail.com >
2022-04-25 12:53:42 +02:00
Kévin Commaille
5ce6c07d9c
ci: Update codecov github action to v3
2022-04-25 12:44:33 +02:00
Kévin Commaille
8090220963
ci: Add codecov config file
...
Be tolerant for coverage of new PRs
2022-04-25 12:43:22 +02:00
Kévin Commaille
314a9dec6c
ci: Run code coverage for pull requests
2022-04-25 12:08:58 +02:00
Benjamin Kampmann
79e543eceb
fix(state-stores): ensure counter consistency
2022-04-21 16:20:24 +02:00
Benjamin Kampmann
375e976289
formatting
2022-04-21 13:02:55 +02:00
Benjamin Kampmann
071d440567
fix(indexeddb-store): always pad counter with u64 padding size to ensure order consistency
2022-04-21 12:56:32 +02:00
Benjamin Kampmann
d4053e2c54
fix(sled-store): save index as i64 to ensure portability
2022-04-21 12:53:10 +02:00
Jonas Platte
0c7e0167c7
Merge pull request #592 from zecakeh/login-sso
2022-04-20 15:45:43 +02:00
Kévin Commaille
04d62bbe1e
Apply suggestions to docs
...
Co-authored-by: Jonas Platte <jplatte+git@posteo.de >
2022-04-20 15:35:54 +02:00
Kévin Commaille
11292b5e5a
fix(sdk): Don't convert SSO login URL parse error to IoError.
2022-04-20 15:21:23 +02:00
Kévin Commaille
559fe35e1b
fix(sdk): Bind SSO login server to 127.0.0.1 instead of localhost
...
Avoid name resolution failure in some devices
2022-04-20 15:21:23 +02:00
Kévin Commaille
32b5e5d48b
feat(sdk): Improve docs for SSO login server's random ports
2022-04-20 15:21:14 +02:00
Damir Jelić
e57721be09
Merge branch 'poljar/session-timestamp-improvements'
2022-04-20 12:11:53 +02:00
Damir Jelić
954bba6fdf
fix(crypto): Don't put the session timestamps behind an Arc
2022-04-20 10:49:32 +02:00
Damir Jelić
edbf831a0f
fix(crypto): Make sure to sort the sessions by timestamp before encrypting
...
This ensures that we're using the correct Session even if our store
doesn't provide those in the correct order. The set is small anyways, so
this shouldn't have any performance impact.
2022-04-20 10:49:22 +02:00
Damir Jelić
c0172c4858
fix(crypto): Fix an error message
2022-04-20 10:49:22 +02:00
Benjamin Kampmann
06f5b67b23
feat(state_store): Store keys and values encrypted, too
...
Merge pull request #586 from matrix-org/ben-remove-store-key
This removes the store_key and replaces it with the new key cipher for both sled and indexeddb state stores. If they are given a passphrase, we are now encrypted/hashing all keys and values stored in the store, no leaking of metadata in any key or value anymore.
2022-04-19 16:46:11 +02:00
Benjamin Kampmann
07c5f625d4
fixing encryption examples
2022-04-19 16:30:20 +02:00
Benjamin Kampmann
805044ed41
Merge branch 'ben-remove-store-key' of github.com:matrix-org/matrix-rust-sdk into ben-remove-store-key
2022-04-19 16:23:29 +02:00
Benjamin Kampmann
4da7d31770
fixing unnecessary lifetimes
2022-04-19 16:22:25 +02:00
Benjamin Kampmann
cdab735ce5
Apply suggestions from code review
...
Co-authored-by: Jonas Platte <jplatte@element.io >
2022-04-19 16:19:30 +02:00
Benjamin Kampmann
e989b9aff7
merge sledstore's EncodeKey and SecureEncodeKey into one
2022-04-19 16:01:18 +02:00
Damir Jelić
a8466f5069
refactor(crypto): Use the ruma time types for group sessions as well
2022-04-19 14:07:44 +02:00
Damir Jelić
95a3fe136d
refactor(crypto): Use the ruma time types for the Session timestamps
2022-04-19 14:03:31 +02:00