about summary refs log tree commit diff stats
path: root/src/xmpp/iq.c
Commit message (Collapse)AuthorAgeFilesLines
* Add vim modelineMichael Vetter2019-11-131-0/+1
|
* Remove old commentMichael Vetter2019-10-211-1/+0
| | | | | It's not up to date. Some time ago we changed from individual handlers to general ones.
* Remove prefix from stanza idMichael Vetter2019-10-171-7/+7
| | | | | We sent `prof_prefix_uuid` as id. Where the prefix was also optional. We don't need this at all.
* Fix memleak in /cmd execPaul Fariello2019-07-301-0/+7
|
* Fix command form submitPaul Fariello2019-07-301-1/+1
| | | | | Command form userdata were freed by iq_id_handler. We should now free the command ourself.
* Fixup for last commitMichael Vetter2019-07-121-1/+0
|
* Fix segfault in iq_{submit,cancel}_command_configMichael Vetter2019-07-121-6/+0
| | | | Taken care of by the destructor.
* Fix some more potential double freesMichael Vetter2019-07-111-34/+0
| | | | Regards https://github.com/profanity-im/profanity/issues/1148
* Fix double free in room id handlerMichael Vetter2019-07-091-6/+1
| | | | | Free is done in destructor now. Regards https://github.com/profanity-im/profanity/issues/1148
* Fix double free regarding iq handlersMichael Vetter2019-07-081-14/+4
|
* Free iq_id_handlers correctlyMichael Vetter2019-07-041-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | so far only the key part was freed. We also need to free the actual handler. Fix: ``` ==21171== 1,128 bytes in 47 blocks are definitely lost in loss record 3,476 of 3,670 ==21171== at 0x483677F: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==21171== by 0x434248: iq_id_handler_add (iq.c:265) ==21171== by 0x4B122E: omemo_devicelist_request (omemo.c:46) ==21171== by 0x4AC411: omemo_start_session (omemo.c:409) ==21171== by 0x4AC37C: omemo_start_sessions (omemo.c:396) ==21171== by 0x447881: sv_ev_roster_received (server_events.c:189) ==21171== by 0x444019: roster_result_handler (roster.c:312) ==21171== by 0x433FC2: _iq_handler (iq.c:202) ==21171== by 0x5AF118E: ??? (in /usr/lib64/libmesode.so.0.0.0) ==21171== by 0x5AEDBDA: ??? (in /usr/lib64/libmesode.so.0.0.0) ==21171== by 0x5AFA43E: ??? (in /usr/lib64/libmesode.so.0.0.0) ==21171== by 0x6818AA4: ??? (in /usr/lib64/libexpat.so.1.6.8) ==21171== by 0x681A3AB: ??? (in /usr/lib64/libexpat.so.1.6.8) ==21171== by 0x681D7EB: XML_ParseBuffer (in /usr/lib64/libexpat.so.1.6.8) ==21171== by 0x5AF0A63: xmpp_run_once (in /usr/lib64/libmesode.so.0.0.0) ==21171== by 0x432E5D: connection_check_events (connection.c:104) ==21171== by 0x4323B3: session_process_events (session.c:255) ==21171== by 0x42C097: prof_run (profanity.c:128) ==21171== by 0x4B2627: main (main.c:172) ```
* Call iq_handlers_clear() upon disconnectMichael Vetter2019-06-201-0/+8
| | | | Free id_handlers. Fix memory leaks.
* Cancel autoping timer on disconnect or connection lossDmitry Podgorny2019-06-031-8/+12
| | | | | | | | | If Profanity is disconnected in any way before ping response is received, the autoping timer will expire after the next connection is established. As result, user will be disconnected immediately. Cancel autoping timer in ev_disconnect_cleanup(), so it is done for all kind of disconnections.
* Handle MUC anonymous state when auto starting OMEMOPaul Fariello2019-04-171-2/+14
| | | | | | | 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.
* Wait for discovery end to publish omemo devicelist and bundlePaul Fariello2019-04-101-0/+2
| | | | Add sv_ev_connection_features_received for that purpose
* Rename ProfIdCallback into ProfIqCallbackPaul Fariello2019-04-101-12/+12
| | | | Goal is to create other kind of callback no based on id cmp
* Update copyright to include 2019Michael Vetter2019-01-221-1/+1
|
* Fix optionnal sessionid in xep 0050Paul Fariello2019-01-211-1/+6
|
* Make _get_groups_from_item and roster _compare_* publicPaul Fariello2018-09-261-12/+2
| | | | In order to avoid duplication with xep 0133 support in command execution
* Add special handling for xep-0133 get-user-rosterPaul Fariello2018-09-101-3/+42
|
* Add support for ad-hoc response with formsPaul Fariello2018-09-101-0/+6
|
* Add missing command name for completion logPaul Fariello2018-09-101-1/+1
|
* Allow to use cmd without being in a windowPaul Fariello2018-09-051-2/+4
|
* Add support for command config executionPaul Fariello2018-09-051-3/+41
|
* Add conf win callbackPaul Fariello2018-09-051-29/+39
|
* Rename mucconf wins into conf winsPaul Fariello2018-09-051-4/+4
| | | | Configuration windows are now being used by both muc and cmd.
* Add support for form edition in command executionPaul Fariello2018-09-051-7/+24
| | | | Also change wins_get_by_string prototype in order to handle const str.
* Add command exec error handlingPaul Fariello2018-09-051-1/+1
|
* Handle simple executionPaul Fariello2018-09-051-1/+48
| | | | Tested with ping from biboumi
* Add command subcommands: list and execPaul Fariello2018-09-051-9/+76
| | | | Also handle list result
* Add command commandPaul Fariello2018-09-051-0/+22
| | | | Initial commit to test commands API
* Move ID generation to xmpp folderMichael Vetter2018-08-301-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
* Use correct macroDominik Heidler2018-07-301-2/+2
| | | | XMPP_FEATURE_PING insted of STANZA_NS_PING
* Add /rooms cacheJames Booth2018-02-051-1/+25
|
* Filter rooms by simple case insensitive textJames Booth2018-02-041-8/+35
|
* Include filter string in no rooms messageJames Booth2018-01-281-2/+2
|
* Fix tests, move glob creationJames Booth2018-01-271-6/+11
|
* Allow filtering rooms list by globJames Booth2018-01-271-7/+69
|
* Update copyrightJames Booth2018-01-211-1/+1
|
* Merge remote-tracking branch 'asdil12/ping'James Booth2017-06-171-0/+9
|\
| * Disable autoping if server doesn't support itDominik Heidler2017-06-161-0/+9
|/ | | | fixes #859
* Update CopyrightJames Booth2017-01-281-1/+1
|
* Fixed typosJames Booth2016-08-281-2/+2
|
* Use libstrophe xmpp_iq_new convenience functionJames Booth2016-08-201-29/+8
|
* Use libstrophe convenience functions for stanza attributesJames Booth2016-08-201-54/+54
|
* Move caps_create -> stanza_create_caps_from_query_elementJames Booth2016-08-141-3/+3
|
* Move caps_create_sha1_str -> stanza_create_caps_sha1_from_queryJames Booth2016-08-141-1/+1
|
* Rename caps_contains -> caps_cache_containsJames Booth2016-08-131-2/+2
|
* Move caps_create_query_response_stanza -> stanza_create_caps_query_elementJames Booth2016-08-131-1/+1
|
* Rename Capabilties -> EntityCapabilitiesJames Booth2016-08-131-3/+3
|