aboutsummaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeLines
...
* http proxy: only check for "HTTP/1.x 200" in the status stringdequis2015-01-16-2/+2
| | | | | It was checking for "Connection established" and some proxies use a different string, such as "Tunnel established" in polipo
* Fix some more g_source_remove warnings, this time in proxy.cdequis2015-01-16-0/+2
| | | | Both in gaim_io_connected(), visible when using an http proxy
* Fix compiler warnings on Cygwin and Mac OS X.Jason Copenhaver2015-01-16-5/+5
| | | | | | | | * Don't use PIE/PIC on Cygwin/Darwin unless specified as these platforms don't support it. * Cleanup warnings for 'make check' build. * Fix the type issue for getsockopt calls. * Fix enum warnings in Yahoo libs on Mac OS X.
* Replace isdigit/isalpha/.../tolower/toupper with glib variantsdequis2015-01-16-14/+14
| | | | | | | | | | | This fixes warnings about passing signed chars to them (apparently they are implemented as macros that do array lookups without checks in some platforms, yay) Specifically: functions=isalnum|isalpha|isdigit|isspace|isxdigit|tolower|toupper sed -ir "s/$functions/g_ascii_&/g" **/*.c
* Fix incorrect Free Software Foundation addressMatej Cepl2015-01-16-31/+31
|
* Use glib functions for base64 decoding/encodingdequis2014-11-24-111/+9
| | | | | | | | | | | | This fixes several coverity warnings about 'tainted data index sink' and a fixme about thread safety in the old base64_decode implementation. Had to adapt the code that used base64_encode_real: - oauth.c: different character set order, but it's for the nonce so it doesn't matter - libyahoo2.c: used as part of the auth, changes "+/=" into "._-". Fixed by encoding first the usual way through glib, then replacing.
* dcc: Fix some invalid memory accesses reported by ASANdequis2014-10-27-1/+1
| | | | ASAN <3
* Some more g_source_remove warning fixesdequis2014-10-27-0/+3
| | | | | - http_incoming_data calling itself - jabber_bs_free_transfer calling jabber_si_free_transfer
* Bunch of merges from dx.Wilmer van der Gaast2014-10-17-0/+17
|\
| * Add support for XEP-0203: Delayed delivery (message timestamps)dequis2014-10-10-0/+16
| | | | | | | | | | | | | | | | 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-60/+60
|/ | | | | | Replaced them with GPL headers where possible. OSCAR and Twitter modules can't be relicenced though, so add an LGPL blurb to debian/copyright.
* RIP native win32 support (use cygwin instead)dequis2014-09-27-298/+0
| | | | It has been broken for a very long time and nobody cared about it.
* Prevent some "Source ID ## was not found..." warningsdequis2014-09-27-0/+6
| | | | | | | These appear in glib 2.40, and, well, are pretty much useless. But people complain about them anyway. Probably fixes trac ticket 1151, at least partially.
* ssl_gnutls: Fix some uninitialized memory warningsdequis2014-09-27-2/+2
|
* srv_lookup: Portability fixes, handle compressed responsesjcopenha2014-07-24-18/+309
| | | | | | | | | | srv_lookup works on cygwin and openbsd now. Provide ns_initparse, friends, and types where they aren't provided by platform. Use dn_expandname instead of custom parser so compressed DNS responses are handled correctly.
* Add limit param to split_command_parts(), fix twitter quotes bugdequis2014-07-24-3/+8
| | | | Only took me a few months to write. I even added a test case.
* Merging compiler warning fix. Patch by Mark H Weaver <mhw@netris.org>.Wilmer van der Gaast2014-03-07-1/+1
|
* Unicode parsing fix in JSON parser: JSON can contain UTF-16 surrogate pairsWilmer van der Gaast2014-03-02-11/+41
| | | | | | | (used to encode >16-bit chars). Added code to parse those *and* the ability to encode >16-bit Unicode in UTF-8. Also sending this upstream. This should fix #1121.
* Update json-parser code to git rev 11a80f389769d1f66ca7fbe64ad89c82d3ba4ba9.Wilmer van der Gaast2014-02-13-103/+391
| | | | | | Few BitlBee-specific diffs now. Annoyingly need to link to libm now for the use of the function pow() since the lib now does its own number parsing...
* Fix "Unusuable" typo.Wilmer van der Gaast2014-02-08-1/+1
|
* Merging HTTP/1.1 branch. This implements HTTP/1.1 support in http_client.Wilmer van der Gaast2013-06-16-73/+190
|\ | | | | | | | | | | | | Little benefit as I'm not burning my fingers on keepalive connecitons for now, but eventually the Twitter streaming API is going to drop 1.0 support: https://dev.twitter.com/blog/deprecating-http-1.0-streaming-api
| * Use HTTP/1.1 by default in the Twitter module, and stick to the initiallyWilmer van der Gaast2013-06-16-3/+15
| | | | | | | | | | used protocol version when internally handling redirects.
| * Add better handling of HTTP/1.1 and/or keepalive connections. This shouldWilmer van der Gaast2013-06-09-71/+171
|/ | | | | | let me close #641, and more importantly, prepares the Twitter module for an upcoming API change. https://dev.twitter.com/blog/deprecating-http-1.0-streaming-api
* Fix double free() in ssl_nss.c. #1038Wilmer van der Gaast2013-05-25-2/+2
|
* Fix OAuth2 error reporting.Wilmer van der Gaast2013-05-25-18/+62
|
* Const is hard, let's go hacking.Wilmer van der Gaast2013-04-20-2/+2
|
* Merging "storage" branch which I wrote long ago. It separates generation ofWilmer van der Gaast2013-04-20-63/+25
|\ | | | | | | | | | | 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/+25
| | | | | | | | | | | | 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-9/+9
| | | | | | | | | | | | | | 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.
* | json: fix uninitialized variablesMiklos Vajna2013-01-01-2/+2
| | | | | | | | | | | | | | json.c: In function ‘json_parse_ex’: json.c:260:30: warning: ‘string_length’ may be used uninitialized in this function [-Wmaybe-uninitialized] json.c:358:16: warning: ‘string’ may be used uninitialized in this function [-Wmaybe-uninitialized]
* | Whoops, remove those debugging printfs as I intended to do before merging.Wilmer van der Gaast2012-12-24-2/+1
| |
* | SSL session caching. You'd think that this makes Twitter stuff faster, exceptWilmer van der Gaast2012-12-24-2/+50
| | | | | | | | | | Twitter webservers seem to do successful session resumes only sporadically.
* | In the OpenSSL module, keep only one global SSL context instead of recreatingWilmer van der Gaast2012-12-24-10/+13
| | | | | | | | | | one for every connection.
* | SNI client support in GnuTLS+OpenSSL modules.Wilmer van der Gaast2012-12-24-28/+25
| |
* | Merging JSON branch. It's very stable by now, and I want more testers.Wilmer van der Gaast2012-12-22-132/+1220
|\ \
| * | Importing json.c UTF-8 encoding fix from upstream. Not importing theWilmer van der Gaast2012-12-01-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | strto(d|l) fix because I can just use GLib instead of reinventing the wheel. This should fix corruption issues with tweets in Cyrillic. I've double- checked this code against http://en.wikipedia.org/wiki/UTF-8 now and it looks correct to me.
| * | Fixing integer size issue in JSON parser: Although I've changed the integerWilmer van der Gaast2012-11-27-1/+1
| | | | | | | | | | | | | | | | | | type to long long, the parser was still using strtol to convert numbers, truncating large numbers to LONG_MAX. Bug found by Artem Savkov, thanks!
| * | Have root confirm some commands that so far gave no feedback at all, sinceWilmer van der Gaast2012-11-25-0/+2
| | | | | | | | | | | | | | | "no news is good news" can be a little confusing.
| * | Clean up streaming HTTP event handler, which should fix crash-bugs with GLib.Wilmer van der Gaast2012-11-25-0/+3
| | | | | | | | | | | | | | | Forgot to do this so far because my libevent code let me get away with it.
| * | Increasing http_client buffersize to 4KB. You'd think that with things likeWilmer van der Gaast2012-11-24-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | MTU in mind it's not a very useful change, but I seem to be getting data in bigger chunks most of the time. Likely because with SSL you have record (?) boundaries and compression. This should reduce I/O overhead just a little bit.
| * | Merge mainline.Wilmer van der Gaast2012-11-17-79/+5
| |\ \
| * | | Fixed valgrind warnings in JSON_O_FOREACH.Wilmer van der Gaast2012-11-12-3/+4
| | | |
| * | | Detect and handle streaming connection loss.Wilmer van der Gaast2012-11-11-0/+3
| | | |
| * | | Tiny cleanup. Fixing some memory leaks (why did I not notice so far thatWilmer van der Gaast2012-11-11-9/+9
| | | | | | | | | | | | | | | | | | | | those free()s were commented out?).
| * | | Mostly finished HTTP streaming support: Shrink the buffer and add aWilmer van der Gaast2012-11-11-3/+26
| | | | | | | | | | | | | | | | | | | | http_close().
| * | | Very immature code for reading from the streaming API. It reads from aWilmer van der Gaast2012-11-10-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | fixed URL and tried to parse individual JSON objects. Not doing anything useful with it.
| * | | Reworked http_client a little bit to support streaming besides just bufferingWilmer van der Gaast2012-11-10-62/+131
| | | | | | | | | | | | | | | | | | | | a complete response before giving it back to the caller.
| * | | Fix compiler warning (missed glib include in json_util).Wilmer van der Gaast2012-11-09-0/+1
| | | |
| * | | One difference in json.h: use "long long" instead of "long" for integerWilmer van der Gaast2012-11-09-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | types, or it might be too small to contain Twitter message IDs on for example GCC+i386.
| * | | Updated error response parsing. Also, use this for 401 responses so for exampleWilmer van der Gaast2012-11-09-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the auth errors caused by NTP desync are clearer: <root> twitter - Login error: Authentication failure (401 Unauthorized (Timestamp out of bounds))