aboutsummaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeLines
* Setting the HTML flag on a connection has a nasty side effect of escapingWilmer van der Gaast2010-05-19-3/+2
| | | | | | | | | | | a lot of "special" characters, and these HTML entities are not counted as one character. :-( So just strip HTML of incoming stuff and don't do anything with what goes out. It's not required. The story may actually be more complicated this, let's find out.
* 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.
* OAuth sanity fix: Twitter-specific stuff should *not* be in lib/oauth.c.Wilmer van der Gaast2010-05-02-57/+87
|\ | | | | | | | | Somewhat intrusive, should've done this right immediately. :-/
| * Save the credentials again.Wilmer van der Gaast2010-05-01-0/+31
| |
| * Cleaned up OAuth stuff: consumer key/secret should *not* be in lib/oauth.c.Wilmer van der Gaast2010-05-01-57/+56
|/ | | | | | Keep it in the Twitter module, and use the oauth_info struct through the whole session to keep all this together.
* NULL-initialize two vars that weren't and should.Wilmer van der Gaast2010-04-30-1/+1
|
* Valgrind-clean now. And decent handling of errors (wrong PIN).Wilmer van der Gaast2010-04-27-1/+3
|
* Valgrind cleanup.Wilmer van der Gaast2010-04-27-9/+43
|
* The escaping, I fixed it for you. More expensive code this way and most ofWilmer van der Gaast2010-04-27-18/+23
| | | | | the vars don't need escaping. But this shouldn't be so fragile anymore.
* Escaping in oauth_nonce(). Not sure if the escaping is entirely right ATM...Wilmer van der Gaast2010-04-26-1/+6
| | | | | :-(
* OAuth, it lives!Wilmer van der Gaast2010-04-26-1/+22
|
* Twitter module now generates authorize URLs.Wilmer van der Gaast2010-04-26-5/+5
|
* Moving two public OAuth functions into the header file.Wilmer van der Gaast2010-04-26-16/+36
|
* Successfully posted a tweet!Wilmer van der Gaast2010-04-26-17/+25
| | | | | | | | | | Twitter's tricky. It returns vars (user_id, screen_name) in the access token that, the way I read the spec, should be included in all subsequent queries. However, stuff only started to work when I dropped those vars. This code's definitely not pretty ATM. Need to clean up now that it actually works.
* Added a function that generates an OAuth Authorization: HTTP header.Wilmer van der Gaast2010-04-26-13/+79
|
* oauth_access_token() added. I managed to increase the counter onWilmer van der Gaast2010-04-25-4/+22
| | | | | http://twitter.com/oauth_clients/details/127170 . \o/
* Some HTTP stuff. Via gdb I can make this request a token.Wilmer van der Gaast2010-04-25-6/+212
|
* constified.Wilmer van der Gaast2010-04-25-2/+2
|
* Code to calculate OAuth signatures. I hope that after wrapping my mindWilmer van der Gaast2010-04-25-1/+129
| | | | | around all of this the rest is going to be easier..
* Make http_encode() RFC3986-compliant. (Escape everything except alphanumericWilmer van der Gaast2010-04-25-2/+1
| | | | | characters plus [-_~.].)
* Added a mktime_utc() to misc.c using code that used to be in jabber_util.c.Wilmer van der Gaast2010-04-08-0/+36
| | | | | I want to use this in the Twitter module.
* Adding a few consts and other misc fixes from bug #431. Doing this via aWilmer van der Gaast2010-03-14-2/+3
|\ | | | | | | | | merge because bzr can probably deal with the conflicts better than patch.
| * Some const/etc cleanups submitted by domen@coderock.org back in bug #431.Wilmer van der Gaast2010-03-14-2/+3
| |
* | Added ' HTML entity since we're sure getting that one a lot withWilmer van der Gaast2010-03-08-0/+1
| | | | | | | | | | libpurple..
* | Shuffling a few more #includes. Much more shuffling will be needed.Wilmer van der Gaast2009-10-23-0/+1
| |
* | Fixed fd leak in ini.c. How could I miss this one.. :-(Wilmer van der Gaast2009-07-20-2/+6
| |
* | Simplified ini parser code a bit more. Not using strtok() after all sinceWilmer van der Gaast2008-12-25-27/+24
| | | | | | | | | | | | I can't find a guarantee that it's okay with me further mutilating the strings. :-)
* | First version of new ini parser. Will just attempt to simplify code a bit.Wilmer van der Gaast2008-12-24-42/+98
| |
* | Removed a double g_free() in proxy.c (that couldn't actually ever beWilmer van der Gaast2008-12-14-1/+0
| | | | | | | | | | invoked but was stupid anyway). #409.
* | events_libevent now detects when the event currently being handled isWilmer van der Gaast2008-12-14-7/+21
| | | | | | | | | | | | removed. This could otherwise cause unpredictable behaviour, especially for timers.
* | Fixed crappy memory management in http_client.Wilmer van der Gaast2008-09-28-9/+12
| |
* | Restored support for password-protected chatrooms (for now only by acceptingWilmer van der Gaast2008-09-28-2/+2
|/ | | | | a password in the IRC JOIN command).
* Silenced a compiler warning - I don't think there's any way the unitializedWilmer van der Gaast2008-06-30-6/+2
| | | | | version of ret could actually be returned.
* Merge trunk.Jelmer Vernooij2008-06-28-26/+0
|\
| * Partial fix for #419: Moved normalize() and some other stuff to OSCARWilmer van der Gaast2008-06-22-26/+0
| | | | | | | | | | | | becuase it's the only place where it's used, and using this to strip spaces from all screennames before sending them to BitlBee.
* | Move SSPI SSL implementation to same directory as other SSL backends.Jelmer Vernooij2008-06-10-0/+278
| |
* | Implement ssl_pending() in bogus ssl backend.Jelmer Vernooij2008-06-10-0/+5
| |
* | Move random_bytes() back to lib/Jelmer Vernooij2008-06-10-0/+67
| |
* | Merge integration branch.Jelmer Vernooij2008-06-09-0/+15
|\|
| * Added ClientInterface configuration option to make BitlBee bind() to aWilmer van der Gaast2008-04-06-0/+11
| | | | | | | | | | specific interface before connecting to a remote host.
| * Fixed GLib <2.6 compatibility issue in arc.h. (G_GNUC_MALLOC)Wilmer van der Gaast2008-04-05-0/+4
| |
* | Move unix-specific random_bytes() implementation to unix.c.Jelmer Vernooij2008-04-02-65/+0
|/
* Fixed a broken check in lib/proxy.c, this restores proxy support. ThanksWilmer van der Gaast2008-03-24-2/+2
| | | | | | | to Miles Bader for reporting this in the Debian BTS. Apparently not many people use this functionality, it was broken in bzr for more than a year already...
* Fixed stalling issue with OpenSSL and Jabber (#368).Wilmer van der Gaast2008-03-23-4/+34
|
* Taught GLib-mode subprocesses how to die. (Closes: #374)Wilmer van der Gaast2008-03-22-2/+3
|
* Moved password hash verification to md5_verify_password() so this can beWilmer van der Gaast2008-03-16-0/+43
| | | | | reused for IRC/OPER passwords (to have encrypted in bitlbee.conf).
* Fixed base64_decode() to not barf on corrupted Base64 strings.Wilmer van der Gaast2008-03-16-1/+1
|
* Adding padding to encrypted IM-passwords so the exact password length can'tWilmer van der Gaast2008-03-16-4/+27
| | | | | be guessed from the encrypted data anymore.
* Fixed issues with "long" URLs in url.c. Reusing code from 2001 wasn't aWilmer van der Gaast2008-03-15-20/+22
| | | | | good idea...
* Moved xmltree handlers initialization to xt_new().Wilmer van der Gaast2008-02-16-3/+4
|