about summary refs log tree commit diff stats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Follow OMEMO policy even when opening window on message and carbon receptionPaul Fariello2019-04-171-0/+14
| | | | This should close #1052
* Handle MUC anonymous state when auto starting OMEMOPaul Fariello2019-04-172-3/+15
| | | | | | | When auto joining a MUC we don't have access to required information so we just don't start OMEMO at this time. Once we receive disco info we then try to start OMEMO.
* Handle missing real jid in OMEMO encrypted MUCPaul Fariello2019-04-171-3/+7
| | | | | | | This should never happens since we should ensure MUC is Non-Anonymous before enabling OMEMO. But we should neither segfault if this happens.
* Add OMEMO policyPaul Fariello2019-04-1717-23/+253
| | | | | | | | | | | | There is 3 policy: - manual: OMEMO session are only started manually - automatic: OMEMO session are only started if they have been started manually before - always: OMEMO session are always started unless they have been ended manually before Closes #1040 and fixes #1052
* Merge pull request #1066 from ↵Michael Vetter2019-04-173-6/+33
|\ | | | | | | | | paulfariello/hotfix/OMEMO-ensure-muc-is-nonanonymous Ensure MUC is Non-Anonymous before starting OMEMO
| * Ensure MUC is Non-Anonymous before starting OMEMOPaul Fariello2019-04-173-6/+33
| | | | | | | | | | | | Store MUC anonymous type in mucwin for that purpose. Fixes #1065
* | Alert about long OMEMO cryptographic generationPaul Fariello2019-04-171-0/+1
|/ | | | Fixes #1055
* Merge pull request #1061 from ↵Michael Vetter2019-04-151-1/+1
|\ | | | | | | | | paulfariello/hotfix/handle-message-without-id-in-muc Handle message without id in MUC
| * Handle message without id in MUCPaul Fariello2019-04-141-1/+1
| | | | | | | | Some clients seems to send message without id.
* | Don't persist OMEMO {signed,}prekey cleaning on disconnectPaul Fariello2019-04-141-10/+0
| | | | | | | | | | We should not remove signed prekey and prekey from persistent storage when cleaning OMEMO store on disconnect.
* | Handle malformed OMEMO identity.txtPaul Fariello2019-04-141-7/+34
| | | | | | | | | | If OMEMO identity.txt is malformed just abort loading. User should be able to call `/omemo gen` again.
* | Don't unload OMEMO cryto on disconnect if OMEMO wasn't loadedPaul Fariello2019-04-141-0/+4
|/ | | | | | | If OMEMO wasn't loaded, removing key would create empty identity.txt file. Then at load time it would segfault profanity. Another commit should fix load of malformed identity.txt.
* Add random string at the end of the default resourcePaul Fariello2019-04-124-3/+27
| | | | | | | | When connecting for the first time or when creating a new account don't use only 'profanity' as default resource. Some server don't support having 2 connection with same resource. Using profanity as default lead to deconnections.
* Support contact name in /omemo fingerprint commandPaul Fariello2019-04-101-4/+9
|
* Fix issue with first encrypted messagePaul Fariello2019-04-101-1/+5
| | | | | | | | When decrypting first message with prekey, libsignal wants to remove used prekey from storage. Return value on success should be 0. We used to return number of deleted keys. Thus libsignal was considering we failed to remove the key and we were ignoring plaintext.
* Try to start sessions with every jid in rosterPaul Fariello2019-04-103-0/+22
|
* OMEMO should be written uppercasePaul Fariello2019-04-101-10/+10
|
* Fix build on travisPaul Fariello2019-04-101-0/+2
|
* Add /omemo char commandPaul Fariello2019-04-103-1/+25
|
* Automatically starts OMEMO if one identity is trustedPaul Fariello2019-04-103-6/+74
|
* Rework trusted fingerprint storagePaul Fariello2019-04-104-29/+90
| | | | | Stop using "jid:device_id" keys. And move long term storage to its own file: trust.txt.
* Wait for discovery end to publish omemo devicelist and bundlePaul Fariello2019-04-109-10/+58
| | | | Add sv_ev_connection_features_received for that purpose
* Prefix static function with _Paul Fariello2019-04-101-41/+41
|
* Ensure pre keys are generated if missing from long term storagePaul Fariello2019-04-101-24/+51
|
* Rework MUC reflected message filteringPaul Fariello2019-04-1012-22/+58
| | | | | | | | | Reflected messages can't be filtered by nick only otherwise you might ignore messages comming from you on another devices. Consequently we maintain a list of sent messages id in mucwin. To be sure the id will be correctly reflected we use the origin-id stanza.
* Add OMEMO in prefs commandPaul Fariello2019-04-105-2/+33
|
* Fix devicelist notification handlerPaul Fariello2019-04-102-6/+5
| | | | devicelist handler should be kept after trigger
* Add clear_device_list commandPaul Fariello2019-04-104-4/+28
|
* Permanently store pre keysPaul Fariello2019-04-103-22/+119
|
* Add support for missing from in bundle iqPaul Fariello2019-04-101-3/+9
|
* Handle bundle publication error on publish-optionsPaul Fariello2019-04-105-23/+166
| | | | | We try to reconfigure node and publish again. If it fails again then we give up.
* Ensure signal context is built on connectionPaul Fariello2019-04-101-20/+23
| | | | | We can't keep it between two connection because signal context is specific to a given account.
* Don't use glib 2.58 funcPaul Fariello2019-04-101-3/+1
|
* Ensure encrypted carbon of own message are marked as encryptedPaul Fariello2019-04-104-4/+42
|
* Show all device fingerprint for current accountPaul Fariello2019-04-101-1/+1
|
* Print fingerprint after trust and untrust commandPaul Fariello2019-04-101-0/+34
|
* Temporarly disable check for publish-options supportPaul Fariello2019-04-101-6/+2
|
* Add fingerprint autocompletionPaul Fariello2019-04-103-1/+49
|
* Use /omemo fingerprint to show contact fingerprintsPaul Fariello2019-04-105-32/+96
| | | | Don't print fingerprints when they are received
* Use connection_support to check for publish-options supportPaul Fariello2019-04-101-6/+2
|
* Add OMEMO log commandPaul Fariello2019-04-104-0/+49
|
* Add missing preferences for OMEMO logsPaul Fariello2019-04-101-0/+6
|
* Add support for disconnect in OMEMOPaul Fariello2019-04-107-40/+140
|
* Add OMEMO end commandPaul Fariello2019-04-104-0/+46
|
* Handle absent muc memberPaul Fariello2019-04-101-0/+4
|
* Revert "Ensure room isn't anonymous"Paul Fariello2019-04-102-5/+0
| | | | This reverts commit 733e1a24c7e08dde6aa2c15ec4528220aa360845.
* Add publish option to OMEMO device list and bundlePaul Fariello2019-04-104-0/+57
|
* Ensure room isn't anonymousPaul Fariello2019-04-102-0/+5
|
* Add OMEMO state in titlebar in MUCPaul Fariello2019-04-101-0/+15
|
* Add OMEMO state in titlebarPaul Fariello2019-04-101-0/+15
|