Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Change origin-id/id algo | Michael Vetter | 2019-10-18 | 1 | -4/+19 |
| | | | | | Hash twice. Use HMAC SHA256 from glib. | ||||
* | Move message sent by us logic in own function | Michael Vetter | 2019-10-18 | 1 | -0/+16 |
| | |||||
* | Remove prefix from stanza id | Michael Vetter | 2019-10-17 | 1 | -8/+8 |
| | | | | | We sent `prof_prefix_uuid` as id. Where the prefix was also optional. We don't need this at all. | ||||
* | Improve MUC 1:1 logging | Michael Vetter | 2019-10-07 | 1 | -0/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If we get a private message from a user in a MUC profanity shows this like: `profanity@roomsASDF.dismail.de/Martin: Hi` This was so far logged at: `~/.local/share/profanity/chatlogs/my-account-at-server/profanity_at_rooms.dismail.de/2019_09_04.log` as: ``` 10:48:13 - profanity@rooms.dismail.de: Hi ``` So the nickname was not saved anywhere. This is due to us not knowing whether we got a regular message from user@server.org/resource or a MUC PM from room@server.org/user. We now check for `<x xmlns='http://jabber.org/protocol/muc#user' />` and add the resourcepart to the logging if we get it. The file will be created at `~/.local/share/profanity/chatlogs/my-account-at-server/profanity_at_rooms.dismail.de_nick` and look like: ``` 23:59:43 - nick: Hi ``` Fix https://github.com/profanity-im/profanity/issues/1184 | ||||
* | Fix typo handel -> handle | Michael Vetter | 2019-10-06 | 1 | -3/+3 |
| | |||||
* | Detect MUC history correctly with some Prosody versions | Michael Vetter | 2019-09-30 | 1 | -1/+3 |
| | | | | | | | | | | Some versions of prosody send the domainpart. See https://issues.prosody.im/1416 Workaround to handle those cases. Thanks to Holger Weiss for helping with this! Fix https://github.com/profanity-im/profanity/issues/1190 | ||||
* | Set message->plain in carbon case | Michael Vetter | 2019-09-04 | 1 | -1/+8 |
| | | | | | message->plain should always contain something. In the case of the carbons we forgot to set if rom the body in case it's empy. | ||||
* | Don't render (all) delayed messages as MUC history | Holger Weiß | 2019-08-20 | 1 | -2/+4 |
| | | | | | | | | Double-check that a <delay/> tag on a groupchat message was actually added by the MUC service (rather than the sending client) before assuming it was received from the MUC history. Fixes #1173. | ||||
* | Fix plaintext private message handling | Paul Fariello | 2019-07-04 | 1 | -3/+3 |
| | |||||
* | Use correct jid variable | Michael Vetter | 2019-07-03 | 1 | -1/+1 |
| | |||||
* | Define goto out in _private_chat_handler() | Michael Vetter | 2019-07-03 | 1 | -0/+1 |
| | |||||
* | Set plain message in _private_chat_handler | Michael Vetter | 2019-07-03 | 1 | -0/+7 |
| | | | | | | In case that plain is NULL we need to copy over from body. Fix https://github.com/profanity-im/profanity/issues/1144 | ||||
* | Fix a segfault when carbon has no body | Paul Fariello | 2019-06-21 | 1 | -11/+13 |
| | |||||
* | Don't highlight cleartext message as untrusted | Paul Fariello | 2019-06-21 | 1 | -0/+1 |
| | |||||
* | Fix segfault when receiving messages without ID | Paul Fariello | 2019-06-21 | 1 | -1/+3 |
| | |||||
* | Fix NULL pointer when handling non encrypted message in MUC | Paul Fariello | 2019-06-21 | 1 | -1/+9 |
| | |||||
* | Rename prof_message_t into ProfMessage | Paul Fariello | 2019-06-20 | 1 | -7/+7 |
| | |||||
* | Add prof_message_t to wrap all message attributes | Paul Fariello | 2019-06-20 | 1 | -110/+140 |
| | | | | | | | Probably missing copy of body to plain in carbon and privmessage. Only covers the incoming message path because goal is OMEMO decryption of untrusted message. Cover some of the log functions but not all. | ||||
* | Use flags in xmmp/message.c for encryption and trust | Paul Fariello | 2019-06-20 | 1 | -10/+20 |
| | |||||
* | Add trusted state after OMEMO decryption | Paul Fariello | 2019-06-20 | 1 | -8/+11 |
| | | | | Use it to print message on red background if not trusted. | ||||
* | Call message_handlers_clear() upon disconnect | Michael Vetter | 2019-06-20 | 1 | -0/+8 |
| | | | | Free pubsub_event_handlers. Fix memory leaks. | ||||
* | Rework MUC reflected message filtering | Paul Fariello | 2019-04-10 | 1 | -4/+14 |
| | | | | | | | | | 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. | ||||
* | Fix devicelist notification handler | Paul Fariello | 2019-04-10 | 1 | -2/+1 |
| | | | | devicelist handler should be kept after trigger | ||||
* | Ensure encrypted carbon of own message are marked as encrypted | Paul Fariello | 2019-04-10 | 1 | -1/+1 |
| | |||||
* | Add support for disconnect in OMEMO | Paul Fariello | 2019-04-10 | 1 | -0/+1 |
| | |||||
* | Log and print outgoing encrypted message | Paul Fariello | 2019-04-10 | 1 | -2/+5 |
| | |||||
* | Add support for sending encrypted message in MUC | Paul Fariello | 2019-04-10 | 1 | -4/+10 |
| | |||||
* | Add MUC message decryption | Paul Fariello | 2019-04-10 | 1 | -3/+9 |
| | |||||
* | Add store hints for OMEMO encrypted messages | Paul Fariello | 2019-04-10 | 1 | -0/+2 |
| | | | | | | | | | Store hints are required has some server might discard messages without body. Here we ensure OMEMO messages are stored on server and delivered to client when they connect back. It's really important since it avoid libsignal to desynchronize counters. | ||||
* | Add support for libsignal-protocol-c 2.3.2 | Paul Fariello | 2019-04-10 | 1 | -1/+1 |
| | |||||
* | Remove hints preventing carbons to work properly | Paul Fariello | 2019-04-10 | 1 | -3/+0 |
| | |||||
* | Don't explicitely disable carbons for OMEMO messages | Paul Fariello | 2019-04-10 | 1 | -1/+0 |
| | |||||
* | Add support for encrypted carbon | Paul Fariello | 2019-04-10 | 1 | -4/+14 |
| | | | | Fix {signed,}_pre_key store | ||||
* | Follow normal workflow for OMEMO message reception | Paul Fariello | 2019-04-10 | 1 | -116/+27 |
| | | | | | | We try to decrypt all messages, if it's successful we use sv_ev_incoming_message even for OMEMO messages. We pass an OMEMO boolean to let UI be aware that message were encrypted. | ||||
* | Add chat session state to OMEMO message stanza | Paul Fariello | 2019-04-10 | 1 | -0/+5 |
| | |||||
* | Add default body on OMEMO message | Paul Fariello | 2019-04-10 | 1 | -0/+8 |
| | |||||
* | Add OMEMO message encryption and decryption | Paul Fariello | 2019-04-10 | 1 | -1/+202 |
| | |||||
* | Fix devicelist subscription and handle pubsub event | Paul Fariello | 2019-04-10 | 1 | -21/+14 |
| | | | | Devicelist subscription can be done directly with caps_add feature. | ||||
* | Add pubsub event callback | Paul Fariello | 2019-04-10 | 1 | -0/+60 |
| | | | | Also add generic message callback struct | ||||
* | XEP-0027: Mention XEP in message body | Michael Vetter | 2019-02-20 | 1 | -1/+1 |
| | | | | With all the different kinds of encryption (OMEMO, OTR3 OTR4, PGP in XEP-0027 and XEP-0373) it might be helpful to know which kind of encryption is used. | ||||
* | Update copyright to include 2019 | Michael Vetter | 2019-01-22 | 1 | -1/+1 |
| | |||||
* | Move ID generation to xmpp folder | Michael Vetter | 2018-08-30 | 1 | -6/+6 |
| | | | | | | | | | | | create_unique_id() was changed to use UUIDs instead of a counter in the last commit. Since now it depends on connection_create_uuid() which is in the xmpp subfolder the function should also be moved there. Renamed it to connection_create_stanza_id() and moved it to src/xmpp/connection.c. Discussion happened in https://github.com/boothj5/profanity/pull/1010 | ||||
* | Update copyright | James Booth | 2018-01-21 | 1 | -1/+1 |
| | |||||
* | Update Copyright | James Booth | 2017-01-28 | 1 | -1/+1 |
| | |||||
* | Check barejid in carbons | James Booth | 2017-01-24 | 1 | -2/+1 |
| | |||||
* | Add carbons from check | James Booth | 2017-01-23 | 1 | -1/+8 |
| | |||||
* | log_info on private carbons | James Booth | 2016-08-28 | 1 | -0/+5 |
| | |||||
* | Tidy _handle_carbons | James Booth | 2016-08-20 | 1 | -35/+52 |
| | |||||
* | Use libstrophe xmpp_message_get_body convenience function | James Booth | 2016-08-20 | 1 | -49/+22 |
| | |||||
* | Use libstrophe xmpp_message_new convenience function | James Booth | 2016-08-20 | 1 | -4/+2 |
| |