aboutsummaryrefslogtreecommitdiffstats
path: root/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-07-19Display axolotl chat message hintAndreas Straub2-0/+4
2015-07-19Use full int range for device IDsAndreas Straub1-1/+1
2015-07-19Clean up unused constantAndreas Straub1-1/+0
2015-07-19Make some fields finalAndreas Straub1-3/+3
2015-07-19Clean up loggingAndreas Straub5-67/+75
Add a fixed prefix to axolotl-related log messages, set log levels sensibly.
2015-07-19Add basic PEP managemend UI to EditAccountActivityAndreas Straub5-4/+266
EditAccountActivity now show own fingerprint, and gives an option to regenerate local keying material (and wipe all sessions associated with the old keys in the process). It also now displays a list of other own devices, and gives an option to remove all but the current device.
2015-07-19Fix devicelist update handlingAndreas Straub2-0/+6
No longer store own device ID (so that we don't encrypt messages for ourselves), verify that own device ID is present in update list (otherwise republish), reflect update in UI.
2015-07-19Refactor axolotl database recreationAndreas Straub1-8/+14
2015-07-19Adapt prettifyFingerprint() to axolotl FP sizesAndreas Straub2-6/+5
2015-07-19Fix displaying Contact IdentityKeysAndreas Straub2-65/+2
Migrate ContactDetailsActivity to use new SQL IdentityKeys storage, remove dead code from Contact class.
2015-07-19Only cache session if successfully establishedAndreas Straub1-1/+6
When receiving a message, only remember the XmppAxolotlSession wrapper if the prospective session was actually established. This prevents us from erroneously adding empty sessions that are never established using received PreKeyWhisperMessages, which would lead to errors if we try to use them for sending.
2015-07-19Return empty set on invalid PEP devicelistAndreas Straub2-19/+20
2015-07-19Trust all IdentityKeysAndreas Straub1-2/+3
The trust-on-first-use policy leads to problems when receiving messages from two different devices of a contact before sending a message to them (as their IdentityKeys will not have been added yet). Since session trust will be managed externally anyway, this change is not a security problem, and will allow us to decrypt messages from yet-untrusted sessions.
2015-07-19Refresh PEP on session establishAndreas Straub1-0/+18
We now track preKeys used to establish incoming sessions with us. On each new established session, we remove the used prekey from PEP. We have to do this because libaxolotl-java internally clears the used preKey from its storage, so we will not be able to establish any future sessions using that key.
2015-07-19Fix asynchronous axolotl message sendingAndreas Straub2-8/+27
XmppConnectionService.sendMessage() now dispatches messages to the AxolotlService, where they only are prepared for sending and cached. AxolotlService now triggers a XmppConnectionService.resendMessage(), which then handles sending the cached message packet. This transparently fixes, e.g., handling of messages sent while we are offline.
2015-07-19Properly track message senderAndreas Straub3-15/+16
Previously, the sender was assumed to be the conversation counterpart. This broke carboned own-device messages. We now track the sender properly, and also set the status (sent by one of the own devices vs received from the counterpart) accordingly.
2015-07-19Rework PEP content verificationAndreas Straub2-48/+62
Now checks which part(s) are out of sync w/ local storage, and updates only those, rather than assuming the entire node corrupt and overwriting it all (especially relevant for preKey list)
2015-07-19Formatting fixesAndreas Straub1-2/+2
2015-07-19When receiving, add mock session if none existsAndreas Straub1-1/+1
We need a session object in order to build a session from a PreKeyWhisperMessage, so add an empty one when none exists on receiving a message. Warning: this will break right now if the session can not be constructed from the received message.There will be an invalid session which will break if we try to send using it.
2015-07-19Tag messages with originating sessionAndreas Straub2-0/+9
This can be used later in order to display trust status of messages, as well as for potential resending of messages in case of preKey conflicts.
2015-07-19Fetch bundles on-demand, encrypt in backgroundAndreas Straub5-65/+109
Bundles are now fetched on demand when a session needs to be established. This should lessen the chance of changes to the bundles occuring before they're used, as well as lessen the load of fetching bundles. Also, the message encryption is now done in a background thread, as this can be somewhat costly if many sessions are present. This is probably not going to be an issue in real use, but it's good practice anyway.
2015-07-19Use bareJid for own session retrievalAndreas Straub1-1/+1
2015-07-19Migrate to new PEP layoutAndreas Straub4-147/+157
Merge prekeys into bundle node
2015-07-19Formatting fixesAndreas Straub1-22/+22
2015-07-19Save IdentityKeys in databaseAndreas Straub2-47/+108
2015-07-19DatabaseBackend bugfixesAndreas Straub1-0/+5
Don't leak cursors, initially create tables
2015-07-19Reformat code to use tabsAndreas Straub10-1115/+1115
This really sucks to do it like this. Sorry. :(
2015-07-19Added axolotl activation code to UIAndreas Straub5-0/+80
2015-07-19Added PEP and message protocol layersAndreas Straub8-8/+509
Can now fetch/retrieve from PEP, as well as encode/decode messages
2015-07-19Reworked axolotl protocol layerAndreas Straub8-95/+579
Numerous fixes
2015-07-19CryptoNext Menu entries addedAndreas Straub2-0/+4
2015-07-19CryptoNext persistance layer mockupAndreas Straub6-65/+841
Initial sketch of the peripheral storage infrastructure for the new axolotl-based encryption scheme.
2015-07-19bugfix: don't crash if aes key could not be set before jingle transferDaniel Gultsch1-1/+4
2015-07-19bugfix: use sendIqPacket method in service instead of invoking ↵Daniel Gultsch1-3/+2
XmppConnection directly
2015-07-19bugfix: accept status code 201 on http uploadDaniel Gultsch1-1/+1
2015-07-18changed switch widgetDaniel Gultsch32-7/+131
2015-07-18pulled translationsDaniel Gultsch7-1/+15
2015-07-18account for downloaded http files in dup checkerDaniel Gultsch1-8/+18
2015-07-17code cleanupDaniel Gultsch1-1/+1
2015-07-17fixed inactive http downloadDaniel Gultsch1-1/+1
2015-07-17show error message in account details when info has not been editedDaniel Gultsch1-1/+1
2015-07-17increased ibb block sizeDaniel Gultsch2-4/+2
2015-07-16version bump to 1.5.0-beta.2Daniel Gultsch1-1/+1
2015-07-16even less jumpyDaniel Gultsch1-1/+3
2015-07-16fixed some ux glitches in editaccountDaniel Gultsch3-9/+9
2015-07-16removed empty translation fileDaniel Gultsch1-2/+0
2015-07-16made 'check image on http host' message more generic. fixed #1281Daniel Gultsch28-104/+334
2015-07-16fixed some npesDaniel Gultsch1-4/+11
2015-07-15fixed crash on invalid muc bookmarksDaniel Gultsch1-3/+7
2015-07-13renamed colorsDaniel Gultsch36-165/+162