| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| | |
Handle presence received before roster
|
| |
| |
| |
| |
| |
| | |
roster_update_presence now requires that
roster_process_pending_presence() has been called. Otherwise presence
are set to pending and not processed yet.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Presence of contact not found in roster are filtered out.
But sometimes roster is received after a first few presences.
We choose to store presences until we receive roster and then process
this presences.
Fixes #1050
|
| |
| |
| |
| | |
Fixes https://github.com/boothj5/profanity/issues/1069
|
|\ \
| |/
|/| |
Always follow OMEMO policy
|
|/
|
|
| |
This should close #1052
|
|\
| |
| | |
Add OMEMO policy
|
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| |
| | |
This should never happens since we should ensure MUC is Non-Anonymous
before enabling OMEMO.
But we should neither segfault if this happens.
|
| | |
|
| | |
|
|/
|
|
|
|
|
|
|
|
|
|
| |
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
|
|\
| |
| |
| |
| | |
paulfariello/hotfix/OMEMO-ensure-muc-is-nonanonymous
Ensure MUC is Non-Anonymous before starting OMEMO
|
| |
| |
| |
| |
| |
| | |
Store MUC anonymous type in mucwin for that purpose.
Fixes #1065
|
|\ \
| |/
|/|
| |
| | |
paulfariello/hotfix/omemo-crypto-generation-too-long
Alert about long OMEMO cryptographic generation
|
|/
|
|
| |
Fixes #1055
|
|\
| |
| |
| |
| | |
paulfariello/hotfix/handle-message-without-id-in-muc
Handle message without id in MUC
|
| |
| |
| |
| | |
Some clients seems to send message without id.
|
|\ \
| |/
|/|
| |
| | |
paulfariello/hotfix/omemo_disconnect_while_not_loaded
Don't touch OMEMO cryto keys on disconnect if OMEMO wasn't loaded
|
| |
| |
| |
| |
| | |
We should not remove signed prekey and prekey from persistent storage
when cleaning OMEMO store on disconnect.
|
| |
| |
| |
| |
| | |
If OMEMO identity.txt is malformed just abort loading.
User should be able to call `/omemo gen` again.
|
|/
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
| |
Install libmicrohttpd which are used for (currently disabled) functional
tests).
Install glibc-locale to get the locales.
Unit test for `prof_whole_occurrences_tests` uses UTF-8 character and
fails without proper locale being set.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Travis supports only quite old Ubuntu releases.
They don't ship with libsignal-protocol-c and not with a recent enough
libgrcypt.
We could build libsignal-protocol-c manually but for libgcrypt it's more
annoying.
Let us switch to Docker and use openSUSE Tumbleweed, which is rolling
release) and thus have up to date libs.
|
|
|
|
| |
Ubuntu xenial only has 1.6.x and we need 1.7.
|
| |
|
|\
| |
| | |
Build OMEMO support in travis
|
| | |
|
| | |
|
| | |
|
| | |
|
|/ |
|
| |
|
|
|
|
|
| |
Add OMEMO dependencies.
Build with and without OMEMO enabled.
|
|\
| |
| | |
Add random string at the end of the default resource
|
|/
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
This reverts commit 7be6158c80af09daf58e9b873263d9e98e36aff9.
|
|
|
|
|
|
|
|
| |
We already use uint_32 from stdint.h which AFAIK is C99.
I seem to remember there is more C99 in the code. Let's explicitly
define it here.
Also fixes build for https://github.com/boothj5/profanity/pull/1053
|
|\
| |
| | |
Add basic OMEMO support.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
Stop using "jid:device_id" keys. And move long term storage to its own
file: trust.txt.
|
| |
| |
| |
| | |
Add sv_ev_connection_features_received for that purpose
|
| | |
|