Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-05-08 | StateEvent: use non-member JSON converters | Alexey Rusakov | |
With the reworked JsonConverter code it is possible to work uniformly with structures that have a member toJson() and a constructor converting from QJsonObject, as well as with structures that rely on an external JsonConverter specialisation. | |||
2022-05-08 | toSnakeCase and EventContent::SingleKeyValue | Alexey Rusakov | |
This is a rework of EventContent::SimpleContent previously defined in simplestateevents.h. Quite a few events (and not only state events) have just a single key-value pair in their content - this structure (which is really just a template wrapper around the value) and the accompanying JsonConverter<> specialisation encapsulate the concept to streamline definition of such events. This commit only has simplestateevents.h using it; further commits will use SingleKeyValue in other places. toSnakeCase is a facility function that converts camelCase used for C++ variables into snake_case used in JSON payloads. Combined with the preprocessor trick that makes a string literal from an identifier, this allows to reduce boilerplate code that repeats the same name for fields in C++ event classes and fields in JSON. SingleKeyValue uses it, and there are other cases for it coming. | |||
2022-05-04 | CMakeLists.txt: add roomcanonicalaliasevent.h | Alexey Rusakov | |
Yet another missing header from times when .h files weren't added to CMakeLists. | |||
2022-04-23 | Cleanup | Alexey Rusakov | |
2022-04-23 | SLICE() | Alexey Rusakov | |
Add a macro to make slicing clear in the code and quiet for static analysis. | |||
2022-04-16 | Merge pull request #544 from TobiasFella/checkedkey | Alexey Rusakov | |
Check edKey when receiving an olm message and prepare for MSC 3700 | |||
2022-04-16 | Use more idiomatic C++ | Tobias Fella | |
2022-04-16 | Only build function when E2EE is enabled | Tobias Fella | |
2022-04-16 | Try fixing lgtm.com | Tobias Fella | |
2022-04-09 | Comment out debug statement | Tobias Fella | |
2022-04-09 | Prepare for MSC 3700 | Tobias Fella | |
2022-04-09 | Don't crash when decrypting existing messages | Tobias Fella | |
2022-04-09 | Make sure devices are known before decrypting olm messages | Tobias Fella | |
2022-04-09 | Check edKey when receiving an olm message | Tobias Fella | |
2022-04-09 | Correctly load EncryptedEvents | Tobias Fella | |
2022-03-12 | Merge #543: Fix loading images when E2EE is disabled | Alexey Rusakov | |
2022-03-11 | Fix loading images when E2EE is disabled | Tobias Fella | |
2022-03-10 | Merge pull request #541 from TobiasFella/storesessionedkey | Alexey Rusakov | |
Store some more things in the database | |||
2022-03-09 | Check for empty ed25519 key. | Tobias Fella | |
2022-03-09 | Update lib/database.cpp | Tobias Fella | |
Co-authored-by: Carl Schwan <carl@carlschwan.eu> | |||
2022-03-09 | Merge #542: Guard against device reuse attacks | Alexey Rusakov | |
2022-03-08 | Store time of last decrypted message for each olm session | Tobias Fella | |
Is required to correctly choose a session to use for sending messages | |||
2022-03-07 | Add datbase migration | Tobias Fella | |
2022-03-07 | Guard against device reuse attacks | Tobias Fella | |
2022-03-07 | Store the device's ed25519 in the database | Tobias Fella | |
2022-02-27 | Merge #538: Verification should return false instead of error for failed ↵ | Alexey Rusakov | |
signature checks | |||
2022-02-27 | Merge #535: Convenience functions for querying user devices and keys from cache | Alexey Rusakov | |
2022-02-27 | Build with shared libs for Sonar | Alexey Rusakov | |
Building with static libs fails on QtKeychain apparently underlinking with glib when --coverage is passed. | |||
2022-02-27 | Update lib/e2ee/qolmutility.cpp | Tobias Fella | |
Co-authored-by: Carl Schwan <carl@carlschwan.eu> | |||
2022-02-27 | Return false instead of error for failed signature checks | Tobias Fella | |
2022-02-27 | Merge pull request #537 from TobiasFella/decryptcheckroom | Alexey Rusakov | |
2022-02-27 | Apply suggestions | Tobias Fella | |
2022-02-27 | Apply suggestions | Tobias Fella | |
2022-02-27 | Merge #536: Use QOlmMessage::Type in more places | Alexey Rusakov | |
2022-02-27 | CI: switch sonar CI config to include E2EE | Alexey Rusakov | |
2022-02-27 | Merge #534: Handle to-device messages before handling roomdata | Alexey Rusakov | |
2022-02-26 | Check that decrypted events are for the current room | Tobias Fella | |
2022-02-26 | Use QOlmMessage::Type in more places | Tobias Fella | |
Make sure that the enum values correspond to the values used in the spec and use them instead of magic constants | |||
2022-02-26 | Handle to-device messages before handling roomdata | Tobias Fella | |
Probably improves the performance slightly If we handle to room data first, if a message arrives at the same time as the to-device message containing the key and we handle the message first, it will not be decryptable and stored as undecrypted. Then, when the key is handled, the cache of undecrypted messages is searched, the message decrypted and replaced. When handling the key first, the message can be decryped instantly. | |||
2022-02-26 | Add convenience functions for querying user devices and keys from cache | Tobias Fella | |
2022-02-26 | Merge pull request #477 from TobiasFella/work/readencryptedmessages | Alexey Rusakov | |
2022-02-25 | Ifdef | Tobias Fella | |
2022-02-25 | Save key counts to state | Tobias Fella | |
Otherwise new one time keys will be uploaded on every start | |||
2022-02-25 | Don't run e2ee on macos | Tobias Fella | |
2022-02-24 | Fix all tests | Tobias Fella | |
2022-02-24 | Fix test | Tobias Fella | |
2022-02-23 | Fix tests a bit | Tobias Fella | |
2022-02-18 | Only testolmaccount on Linux | Alexey Rusakov | |
On other platforms Docker fails to stand up the container. | |||
2022-02-18 | TestOlmAccount::claimKeys(): auth bob as bob, not as alice | Alexey Rusakov | |
2022-02-18 | testolmaccount.cpp: cleanup | Alexey Rusakov | |