about summary refs log tree commit diff stats
path: root/src/xmpp/session.c
Commit message (Collapse)AuthorAgeFilesLines
* Apply coding styleMichael Vetter2020-07-071-34/+34
|
* Revert "Apply coding style"Michael Vetter2020-07-071-45/+45
| | | | | | This reverts commit 9b55f2dec0ea27a9ce4856e303425e12f866cea2. Sorting the includes creates some problems.
* Apply coding styleMichael Vetter2020-07-071-45/+45
| | | | Regards https://github.com/profanity-im/profanity/issues/1396
* Remove prefs_free_string()Michael Vetter2020-07-021-3/+3
| | | | | It just does a free. Related to b580b9ef119045f142fa4baa9689a1c5ce8864ef
* Add option for legacy authenticationDmitry Podgorny2020-06-051-5/+14
| | | | | | | | New options: /connect <account> [auth default|legacy] /account <account> set auth default|legacy Fixes #1236.
* Add vim modelineMichael Vetter2019-11-131-0/+1
|
* Call message_handlers_clear() upon disconnectMichael Vetter2019-06-201-0/+1
| | | | Free pubsub_event_handlers. Fix memory leaks.
* Call iq_handlers_clear() upon disconnectMichael Vetter2019-06-201-0/+1
| | | | Free id_handlers. Fix memory leaks.
* Don't clear saved account data in session_disconnect()Dmitry Podgorny2019-06-031-28/+7
| | | | | | | | | | | | | | | | | | | | If connection loss occurs, it calls session_disconnect() eventually. This function clears saved account data which is required for reconnection. Therefore, when reconnect timer expires, we get errors: 02/06/2019 04:53:42: stderr: ERR: (profanity:17115): GLib-CRITICAL **: 04:53:42.305: g_key_file_has_group: assertion 'group_name != NULL' failed 02/06/2019 04:53:43: prof: ERR: Unable to reconnect, account no longer exists: (null) To solve it, don't clear the saved data in session_disconnect(). It will be cleared properly on connection loss if reconnect timer is not configured. But won't be cleared with /disconnect command. So, after /disconnect the data will live in memory until the next /connect. Also, remove some copy-paste in connection loss path.
* Add random string at the end of the default resourcePaul Fariello2019-04-121-1/+3
| | | | | | | | 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.
* Wait for discovery end to publish omemo devicelist and bundlePaul Fariello2019-04-101-1/+1
| | | | Add sv_ev_connection_features_received for that purpose
* Ensure saved_account is set before calling sv_ev_login_account_successPaul Fariello2019-04-101-1/+1
|
* device_list iq should be from barejid or nonePaul Fariello2019-04-101-12/+6
| | | | | | | Ensure we request device_list and remove non conforming handling of responses. Move initialisation of iq_handlers before call to sv_ev_login_account_success
* Fix devicelist subscription and handle pubsub eventPaul Fariello2019-04-101-1/+1
| | | | Devicelist subscription can be done directly with caps_add feature.
* Add devicelist and bundle publicationPaul Fariello2019-04-101-1/+5
|
* Add devicelist subscriptionPaul Fariello2019-04-101-0/+7
|
* Update copyright to include 2019Michael Vetter2019-01-221-1/+1
|
* Clear rooms cache on disconnectJames Booth2018-02-051-0/+2
|
* Update copyrightJames Booth2018-01-211-1/+1
|
* Update CopyrightJames Booth2017-01-281-1/+1
|
* Remove status from cl_ev_presence_sendJames Booth2017-01-151-8/+14
| | | | fixes #888
* Allow clearing account resourceJames Booth2016-11-221-7/+20
| | | | issue #880
* Handle NULL saved_statusJames Booth2016-07-271-1/+5
|
* Copy curr_status and free original in session.cJames Booth2016-07-271-1/+2
|
* Free ProfAccountJames Booth2016-07-251-0/+1
|
* Move autoaway checkJames Booth2016-07-241-0/+141
|
* Tidy headersJames Booth2016-07-241-5/+5
|
* Move event timeout to connection moduleJames Booth2016-07-241-9/+2
|
* Update GPL link in headersJames Booth2016-07-241-1/+1
|
* Add connection_set_disconnected()James Booth2016-05-111-8/+13
|
* Add connection_clear_data()James Booth2016-05-101-13/+7
|
* Remove connection_free_conn(), connection_free_ctx()James Booth2016-05-101-6/+6
|
* Add connection_shutdown()James Booth2016-05-101-4/+1
|
* Remove JABBER_STARTED, JABBER_UNDEFINED connection statesJames Booth2016-05-101-15/+4
|
* Remove _session_free_session_data from session.cJames Booth2016-05-101-38/+42
|
* Fixed compileJames Booth2016-05-081-1/+1
|
* Tidy session.cJames Booth2016-05-081-3/+4
|
* Free features on disconnectJames Booth2016-05-081-0/+1
|
* Move conneciton initialisation to _connection_handlerJames Booth2016-05-081-5/+0
|
* Move xmpp_initialise() to conneciton.cJames Booth2016-05-071-1/+0
|
* Move disco info struct to connectionJames Booth2016-05-071-51/+2
|
* Move available resources to connection structJames Booth2016-05-071-21/+1
|
* Remove redundant tls secured functionJames Booth2016-05-061-1/+1
|
* Tidy connect functionJames Booth2016-05-061-3/+3
|
* Move connection_connectJames Booth2016-05-061-36/+3
|
* Move send stanza functionJames Booth2016-05-061-11/+0
|
* Move conn is secure functionJames Booth2016-05-061-10/+0
|
* Move tls peer cert functionJames Booth2016-05-061-24/+0
|
* Move uuid functionsJames Booth2016-05-061-14/+0
|
* Move connection fulljid functionJames Booth2016-05-061-9/+3
|