aboutsummaryrefslogtreecommitdiffstats
path: root/lib/xmltree.c
Commit message (Collapse)AuthorAgeLines
* Reindent everything to K&R style with tabsIndent2015-02-20-367/+364
| | | | | | | Used uncrustify, with the configuration file in ./doc/uncrustify.cfg Commit author set to "Indent <please@skip.me>" so that it's easier to skip while doing git blame.
* Bunch of merges from dx.Wilmer van der Gaast2014-10-17-0/+16
|\
| * Add support for XEP-0203: Delayed delivery (message timestamps)dequis2014-10-10-0/+15
| | | | | | | | | | | | | | | | Very similar to XEP-0091 which is already supported, but was marked as obsolete, replaced by XEP-0203. The main differences are the tag name and the timestamp format. Due to the similarities, both XEPs are still supported.
* | Debian bug #764181: Accidentally had an LGPL header in a bunch of files.Wilmer van der Gaast2014-10-17-10/+10
|/ | | | | | Replaced them with GPL headers where possible. OSCAR and Twitter modules can't be relicenced though, so add an LGPL blurb to debian/copyright.
* Merging "storage" branch which I wrote long ago. It separates generation ofWilmer van der Gaast2013-04-20-63/+24
|\ | | | | | | | | | | XML-formatted user configs from disk I/O so we can try to start using other mechanisms to store them (a REST API or something, for example).
| * Add xt_to_string_i() and use it to get indentation back in saved settings.Wilmer van der Gaast2012-06-05-63/+24
| | | | | | | | | | | | Also, use it in xt_print() instead of replicating most of xt_to_string() in it. This changed four-space indents into tabs but oh well, we'll live.
* | I'm still bored on a long flight. Wrote a script to automatically updateWilmer van der Gaast2013-02-21-1/+1
| | | | | | | | | | | | | | my copyright mentions since some were getting pretty stale. Left files not touched since before 2012 alone so that this change doesn't touch almost EVERY source file.
* | Error handling fix in xmltree. Fixes a problem where if the start of theWilmer van der Gaast2012-12-02-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | stream is spread over two packets (or SSL records in this case), xt_handle() would report a fatal error (which normally means the connection has failed and should be abandoned immediately). Returning 1 is likely more correct; just the fact that there's no data to process yet is not a fatal failure. This fixes potential issues with Google Talk when using OpenSSL (which seems to be feeding data on record boundaries, even if additional records have already been received).
* | xt_from_string() will return NULL if the string wasn't terminated properly.Wilmer van der Gaast2012-09-24-3/+6
| | | | | | | | | | | | | | Adding an extra layer of defense against truncated responses from Twitter. But as long as the response from xt_from_string() isn't NULL-checked this won't help much. So that's my next step. :-)
* | Little cleanup. Use xt_from_string() where possible.Wilmer van der Gaast2012-09-22-2/+5
|/
* Shut up a flood of GLib-related compiler warnings.Wilmer van der Gaast2012-06-04-0/+3
|
* Debug output tweaks: Try to send everything to stderr, and add ifdef toWilmer van der Gaast2011-12-04-9/+9
| | | | | enable printing of all SSL traffic.
* Somewhat improve debug logging of HTTP/SOAP stuff.Wilmer van der Gaast2011-12-02-2/+0
|
* Strip illegal characters in generated XML streams so Jabber servers won'tWilmer van der Gaast2011-10-20-2/+25
| | | | | | | disconnect people who don't understand how to disable stupid IRC client features. Based very loosely on a patch and discussion submitted by Artem Savkov on bug #552.
* Silencing some (mostly whiny) compiler warnings.Wilmer van der Gaast2010-10-06-1/+4
|
* Some general cleanup, plus fixing a bug in the memberlist parsing code:Wilmer van der Gaast2010-08-21-2/+10
| | | | | | the lists can come in in any order, so parse it *completely* before showing auth requests.
* In debugging mode, dump all SOAP requests + responses with some indentationWilmer van der Gaast2010-08-20-2/+2
| | | | | for easier debugging.
* Add xt_find_path() to simplify digging through multi-level XML trees.Wilmer van der Gaast2010-08-15-0/+40
|
* Allow changing the display_name, now permanently!Wilmer van der Gaast2010-08-14-7/+7
|
* Read incoming MSN status/away messages.Wilmer van der Gaast2010-08-14-1/+15
|
* Some syntax checking fixups; don't make the same mistake of failing just ifWilmer van der Gaast2010-08-12-0/+20
| | | | | | the MSN server is sending a little bit *more* info. And adding xt_insert_node() used in the ADL generation code.
* OpenSolaris (non-gcc) fixes, patches from Dagobert Michelsen <dam@opencsw.org>Wilmer van der Gaast2010-08-07-1/+4
| | | | | with some changes.
* Implement some kind of ignorant awareness of XML namespaces: Enough to notWilmer van der Gaast2010-05-12-1/+21
| | | | | | | break backward compatibility (hopefully) but be able to pick up inappropriate uses of XML namespace prefixes. Main reason for this change: Fix XMPP typing notification compatibility with GMail.
* Restored support for password-protected chatrooms (for now only by acceptingWilmer van der Gaast2008-09-28-1/+1
| | | | | a password in the IRC JOIN command).
* Moved xmltree handlers initialization to xt_new().Wilmer van der Gaast2008-02-16-1/+2
|
* Moved xmltree to lib/ because I want to use it from more than just theWilmer van der Gaast2008-02-16-0/+589
Jabber module.