Dmitry Podgorny
efbf233c85
Define stanza's attributes as const char*
...
In most get-like funcitons libstrophe returns pointer to a string
that resides in an internal structure (e.g. xmpp_stanza_t). Hence,
Profanity must not change such strings. Define respective variables
as 'const char*' to reduce a chance of error and conform future
libstrophe's interface.
This patch mostly replaces 'char *' with 'const char*', but also
fixes two memory leaks after stanza_get_reason(). Add comment within
stanza_get_reason() to fix conflict with different allocator types.
2016-04-27 10:31:28 +00:00
James Booth
4ca6296fb7
Fix OSX compile
2016-04-26 23:50:56 +02:00
Dominik Heidler
1b0ce852bb
Implement XEP-0363: HTTP File Upload
2016-04-26 23:50:55 +02:00
Dominik Heidler
28e260c7da
Cache all disco items and features on connect
2016-04-20 00:19:40 +02:00
Dominik Heidler
4b1481987d
Fix typo: diso -> disco
2016-04-01 12:09:35 +02:00
James Booth
9b177a9e01
Removed #AX_PREFIX_CONFIG_H
2016-03-31 21:05:02 +01:00
James Booth
94b9b1d8e4
Merge branch 'master' into stanza-hooks
2016-03-29 21:44:18 +01:00
James Booth
7b138b71db
PGP: Also encrypt using sender public key
2016-03-29 21:24:37 +01:00
James Booth
c6730783bf
Removed duplicate typedef
2016-03-28 15:44:03 +01:00
James Booth
d39e48ba18
Use one stanza handler per type (message, iq, presence)
...
Allows plugins to stop stanza processing
2016-03-28 01:25:48 +01:00
James Booth
8933d59b03
Added basic stanza receive eooks
2016-03-27 21:36:29 +01:00
James Booth
7b34f72007
Use xmpp_send_raw_string instead of xmpp_send_raw
2016-03-26 16:44:02 +00:00
James Booth
d0397f3da5
Added stanza send hooks for plugins
2016-03-26 15:50:16 +00:00
James Booth
4c913aa08b
Added prof_send_stanza to plugins API
2016-03-23 22:57:03 +00:00
James Booth
6f537c3818
Add PGP decryption for incoming/outgoing carbons
2016-03-22 00:20:29 +00:00
James Booth
51c6cefafd
Call plugin disconnect hook before disconnecting on autoping fail
...
fixes #746
2016-02-25 00:10:22 +00:00
James Booth
1f90aca503
Merge branch 'master' into plugins-c
...
Conflicts:
src/main.c
src/ui/console.c
2016-02-14 23:00:52 +00:00
James Booth
e53e94f1e2
Updated copyright
2016-02-14 22:54:46 +00:00
James Booth
41fe8c22b1
Added C plugin code from plugins branch
2016-02-14 22:28:55 +00:00
James Booth
7938db0a25
Use offline presence for software version responses from non contacts
...
fixes #714
2016-01-13 22:25:29 +00:00
James Booth
3d9e860574
Set autoping timeout default to 10 seconds, added null checks
2016-01-02 16:45:20 +00:00
James Booth
f27cae68c5
Added autoping timeout preference
2016-01-01 19:50:13 +00:00
James Booth
94b0d2c6da
Added hardcoded autoping timeout
2015-12-31 01:48:04 +00:00
James Booth
08d30a4a83
Abort autping when existing attempt already in progress
2015-12-31 00:33:05 +00:00
James Booth
2847e39659
Tidy ping handlers
2015-12-31 00:11:58 +00:00
James Booth
a0c9b0cb70
Renamed autoping handler
2015-12-30 23:50:39 +00:00
James Booth
482eea4fcf
Moved sending of initial presence to sv_ev_roster_received
2015-12-14 23:57:06 +00:00
James Booth
b73ff08a72
Free pref strings
2015-11-21 21:19:28 +00:00
James Booth
1f723a60b3
Tidy connection.c
2015-11-11 01:25:10 +00:00
James Booth
0bb596e14a
Added extra fields to TLSCertificate
2015-11-10 22:46:48 +00:00
James Booth
9302188a32
Show current TLS certificate
2015-11-10 01:20:40 +00:00
James Booth
bee27f4773
Added /tls cert to show current certificate fingerprint
2015-11-09 23:31:21 +00:00
James Booth
38255e9be4
Make all mucconfwin functions take ProfMucConfWin
2015-11-02 22:19:01 +00:00
James Booth
a3e9178ea2
Renamed mucconfwin functions
2015-11-02 22:05:17 +00:00
James Booth
7f5b563a81
Removed ui_handle_room_join_error
2015-11-02 21:11:47 +00:00
James Booth
1602011e01
mucwin_role_set_error takes ProfMucWin
2015-11-02 00:52:50 +00:00
James Booth
982bc8e066
mucwin_affiliation_set_error takes ProfMucWin
2015-11-02 00:51:12 +00:00
James Booth
7bedb6c294
mucwin_handle_role_list takes ProfMucWin
2015-11-02 00:47:43 +00:00
James Booth
1aa3c0ea4f
mucwin_role_list_error takes ProfMucWin
2015-11-02 00:44:33 +00:00
James Booth
3341e8c202
mucwin_handle_affiliation_list takes ProfMucWin
2015-11-02 00:40:23 +00:00
James Booth
d81dbdb233
mucwin_affiliation_list_error takes ProfMucWin
2015-11-02 00:38:26 +00:00
James Booth
5c53c94253
mucwin_kick_error takes ProfMucWin
2015-11-02 00:33:31 +00:00
James Booth
d21faa4609
mucwin_room_disco_info takes ProfMucWin
2015-11-01 23:33:50 +00:00
James Booth
363fda82c1
mucwin_room_info_error takes ProfMucWin
2015-11-01 23:30:44 +00:00
James Booth
67f8faf645
Renamed ui_handle_room_role_set_error -> mucwin_role_set_error
2015-11-01 21:53:12 +00:00
James Booth
50765190f7
Renamed ui_handle_room_affiliation_set_error -> mucwin_affiliation_set_error
2015-11-01 21:52:27 +00:00
James Booth
556985ec39
Renamed ui_handle_room_role_list -> mucwin_handle_role_list
2015-11-01 21:50:32 +00:00
James Booth
2cc5f17871
Renamed ui_handle_room_role_list_error -> mucwin_role_list_error
2015-11-01 21:48:28 +00:00
James Booth
fa0ed64190
Renamed ui_handle_room_affiliation_list -> mucwin_handle_affiliation_list
2015-11-01 21:45:59 +00:00
James Booth
21d560f068
Renamed ui_handle_room_affiliation_list_error -> mucwin_affiliation_list_error
2015-11-01 21:37:09 +00:00
James Booth
a575ab174c
Renamed ui_handle_room_kick_error -> mucwin_kick_error
2015-11-01 21:34:28 +00:00
James Booth
fdd00b33a4
Renamed ui_show_room_disco_info -> mucwin_room_disco_info
2015-11-01 21:19:08 +00:00
James Booth
bb14b19bb1
Renamed ui_handle_room_info_error -> mucwin_room_info_error
2015-11-01 21:18:13 +00:00
James Booth
d6e4b74802
Removed ui_input_nonblocking()
2015-11-01 18:56:34 +00:00
James Booth
c8a6bdb381
Applied coding style to src/xmpp/
2015-10-26 00:14:23 +00:00
James Booth
6640a0891f
Force tls on all connections, add tls policy account property
2015-10-18 03:06:23 +01:00
James Booth
9d2745e462
Removed --disable-tls command line option
2015-10-18 00:17:45 +01:00
James Booth
31ecd41c8f
Renamed PREF_CERT_PATH -> PREF_TLS_CERTPATH
2015-10-18 00:03:15 +01:00
James Booth
904a5a81cf
Add ability to script commands after connect
2015-10-15 01:19:24 +01:00
James Booth
1fd2a8a4e9
Send service-unavailable when lastactivity disabled
2015-10-14 21:45:19 +01:00
James Booth
5fb8acb17f
Use lastactivity preference for presence updates
2015-10-14 21:30:48 +01:00
James Booth
aae526fbde
Moved idle time check for last activity
2015-10-14 21:12:26 +01:00
James Booth
c9165ef9d2
Title bar TLS indicator
...
Issue #616
2015-10-14 00:29:22 +01:00
James Booth
6e28df66e8
Use libstrophe/libmesode uuid generator
2015-10-12 23:37:11 +01:00
James Booth
1afe492e30
Added jabber:iq:last to capabilities
2015-09-29 23:55:01 +01:00
James Booth
bfdda17b7f
Fix last active query
2015-09-29 00:53:58 +01:00
James Booth
26d160cae8
WIP: Added last activity request and response
2015-09-29 00:01:38 +01:00
James Booth
9593e17c3c
Include last activity in initial presence
2015-09-27 23:53:06 +01:00
James Booth
54e225aa53
Added auto xa option, tidied autoaway code
2015-09-27 23:08:30 +01:00
James Booth
fe22fea9a8
Fixed spelling mistake
2015-09-27 18:32:21 +01:00
James Booth
b484411ea8
Save last activity to account on disconnect
2015-09-25 00:26:58 +01:00
James Booth
3e38d64397
Added HAVE_LIBMESODE check before setting cert path
2015-09-24 01:13:45 +01:00
James Booth
a37d55e1a9
Added TLS trusted certificate path preference
2015-09-23 20:37:41 +01:00
James Booth
9a53854a1d
Added conditionals for libmesode cert verification
2015-09-22 21:55:46 +01:00
James Booth
74151e6419
Added TLS cert fail callback
2015-09-22 20:55:41 +01:00
James Booth
2b88e2f1bf
Check for libmesode, fall back to libstrophe
2015-09-21 21:40:04 +01:00
James Booth
03ee1d56e6
Added conference and receipts features to caps query response
2015-09-09 22:36:07 +01:00
James Booth
b266e4d035
Pass delay timestamp to all incoming chat events
2015-09-08 20:18:31 +01:00
James Booth
2af5c151a0
Tidied pgp memory allocations
2015-08-11 01:00:23 +01:00
James Booth
0410dd90f1
Free timestamp and id for receipts
2015-08-09 23:08:36 +01:00
James Booth
131f1788c2
Free software version result properties
2015-08-09 01:10:02 +01:00
James Booth
70c0eeed1e
Free error message in carbons handlers
2015-08-09 00:43:00 +01:00
James Booth
783342a48c
Free timestamps and carbons stanzas
2015-08-09 00:40:37 +01:00
James Booth
406b821b35
Show software version result in current window
2015-08-06 01:56:52 +01:00
James Booth
af38ddc9e7
Handle resource not found on sofware version request
2015-08-05 01:14:41 +01:00
James Booth
0b7c79ac13
Use original JID in software version request in MUC
2015-08-05 01:01:46 +01:00
James Booth
ac3e7dd9e8
Handle software version requests for gateways that return from domainpart
2015-08-05 00:48:50 +01:00
James Booth
2a92169351
Use id handler for software version requests, handle errors
2015-08-05 00:26:29 +01:00
James Booth
7151792b8c
Handle private messages that include muc#user namespace
2015-08-02 01:12:54 +01:00
James Booth
f9a7e35001
Added id attributes to roster queries
...
fixes #596
2015-07-22 22:48:37 +01:00
Sam Whited
167ee28ec0
Add no-copy and no-store hints to OTR messages
2015-07-01 09:04:54 -05:00
James Booth
d5f79c7b35
Use reference counts for GDateTimes #516
2015-06-30 16:21:21 +01:00
James Booth
dd206ef637
WIP fix for #516 , needs memory cleanup
2015-06-29 23:48:41 +01:00
James Booth
240f6a3f79
Fixed various jid and account mem leaks
2015-06-24 20:53:04 +01:00
James Booth
5669799690
Encryption modes for sv_ev_incoming_message
2015-06-21 20:08:46 +01:00
James Booth
9b991ae058
Extracted chat session code from message senders
2015-06-21 17:11:23 +01:00
James Booth
e45afd5c09
Added pgp checks for message sending
2015-06-21 01:48:25 +01:00
James Booth
9aff8abd2e
Merge branch 'master' into openpgp
...
Conflicts:
.travis.yml
2015-06-05 23:02:56 +01:00
James Booth
2c5b44421e
Added initial stabber test
2015-05-17 22:05:43 +01:00
James Booth
7f861b7743
Removed libgpg include from presence.c
2015-05-10 23:54:48 +01:00