aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/jabber/sasl.c
Commit message (Collapse)AuthorAgeLines
* Remove facebook XMPP code, show error pointing at the new plugindequis2015-12-04-37/+3
| | | | | | | | | | | | | | Facebook's oauth has been broken for months, and in the last few days they broke plain logins too, so I just added an error message that says this when you do "account on": Facebook's XMPP service is gone. Try this instead: https://wiki.bitlbee.org/HowtoFacebookMQTT Also nuked all the oauth related code, except some parts of lib/oauth2.c which seemed generic enough to maybe help in the future with other not-really-compliant not-really-implementations of the not-really-oauth2 not-really-spec
* Only try DIGEST-MD5 if there's no SSL/TLS or if PLAIN isn't supporteddequis2015-07-30-1/+5
| | | | | | | Which in practice means "don't bother with DIGEST-MD5 most of the time". It's weak, pointless over TLS, and often breaks with some servers (hi openfire)
* jabber: Add SASL ANONYMOUS support (XEP-0175)dequis2015-07-04-2/+14
| | | | Use "account jabber set anonymous on" to have bitlbee try that method
* hipchat: Basic implementation: Auth, profile and mention namesdequis2015-04-28-8/+35
| | | | | | | | This is enough to log in with their usernames, make 'chat add' based groupchat joins slightly more smooth, and see mention names as nicks. All the MUC list stuff is left out intentionally since that's not as stable as I wish.
* Use https:// URL for Facebook OAuth2 now that there's a cert.Wilmer van der Gaast2015-02-24-1/+1
|
* Reindent everything to K&R style with tabsIndent2015-02-20-315/+297
| | | | | | | 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.
* Replace isdigit/isalpha/.../tolower/toupper with glib variantsdequis2015-01-16-2/+2
| | | | | | | | | | | 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
* Remove MSNXMPP specific codedequis2014-10-10-19/+2
| | | | The MSN XMPP gateway was shutdown december 2013 and isn't coming back.
* Fix OAuth2 error reporting.Wilmer van der Gaast2013-05-25-3/+3
|
* 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.
* Fixed minor memory leak in Jabber module.Wilmer van der Gaast2012-12-24-0/+1
|
* Fix bug that broke MSN-XMPP with confusing error messages.Wilmer van der Gaast2012-03-10-2/+3
|
* A few more minor cleanups before merging this into mainline.Wilmer van der Gaast2011-12-26-9/+9
|
* Slight cleanup: Use a constant instead of just "jabber_oauth" everywhere,Wilmer van der Gaast2011-12-24-5/+5
| | | | | | and added some safeguards to keep the user from messaging it when we're not actually doing OAuth setup.
* Fix parsing of acc->pass. Use oauth_params_ functions instead of stringWilmer van der Gaast2011-12-21-12/+0
| | | | | magic, fixes escaping issues.
* When updating the XMPP password field with OAuth data, try harder to preserveWilmer van der Gaast2011-12-19-13/+11
| | | | | existing data. (Like refresh tokens which we'll need again on next login.)
* Give a list of SASL mechanisms supported by a server when reporting we don'tWilmer van der Gaast2011-12-19-1/+17
| | | | | support any of them.
* Restructured and updated code a little bit to support new-style (much betterWilmer van der Gaast2011-12-18-26/+21
| | | | | | and "proper" OAuth2) Facebook OAuth support. (And, add wl.offline scope to get tokens that don't expire after an hour.)
* More generic OAuth support now. Should work well for all GTalk accounts nowWilmer van der Gaast2011-12-18-17/+57
| | | | | | and somewhat for MS Messenger. The fb part needs different parsing of the authorize request, and possibly some other work.
* Error handling fixes.Wilmer van der Gaast2011-08-04-1/+2
| | | | | | Found one double free() bug causing troubles when a buddy_msg() handler takes down the IM connection immediately.
* OAuth code cleanup.Wilmer van der Gaast2011-07-31-18/+21
|
* Facebook authentication. This isn't really OAuth in the end: FB doesn'tWilmer van der Gaast2011-07-31-2/+49
| | | | | | really support desktop app OAuth in a way that would work with BitlBee. Plus, it's only OAuth-compliant by, err, name?
* Working OAuth2 support. Needs some more debugging (error handling is notWilmer van der Gaast2011-07-26-6/+105
| | | | | great and imc_logout() gets (rightfully) confused when jabber_data is empty).
* Nothing useful yet, this just generates an auth URL. Things to do: AbilityWilmer van der Gaast2011-07-22-3/+14
| | | | | | | | | | to process the answer. This is hard because the GTalk server will time out very quickly which means we lose our state/scope/etc. (And the ability to even receive the answer, at least if I'd do this the same way the Twitter module does it.) And then, get the access token and use it, of course. :-)
* Improved sasl_get_part() to deal with whitespace in challenge strings, asWilmer van der Gaast2008-02-16-7/+20
| | | | | described in RFC 2831 secion 7.1 (the #rule description). Closes bug #362.
* Added Jabber groupchat topic support.Wilmer van der Gaast2007-11-19-1/+1
|
* Fix some warnings in storage.c.Jelmer Vernooij2007-07-07-3/+4
|
* s/imc/imcb/ for callback functions. Moved things aroundin nogaim.h aWilmer van der Gaast2007-04-15-7/+7
| | | | | | little bit, grouping things by category instead of original Gaim 0.58 filename.
* Cleaned up struct im_connection. No more username/password stuff sinceWilmer van der Gaast2007-04-15-5/+7
| | | | | it's in acc too. wants_to_die is now an argument to imc_logout().
* More cleanups, mainly in the callbacks. Replaced things likeWilmer van der Gaast2007-04-05-10/+10
| | | | | | | | do_error_dialog() and (set|hide)_login_progress(_error)?() with things that hopefully make more sense. Although it's still not really great...
* s/gaim_connection/im_connection/ and some other minor API changes. The restWilmer van der Gaast2007-03-30-24/+24
| | | | | | will come tomorrow. It compiles, I'll leave the real testing up to someone else. ;-)
* Added #defines for XML namespaces.Wilmer van der Gaast2006-10-31-6/+4
|
* Added a useful error message for SASL negotiation failures and turned offWilmer van der Gaast2006-10-02-0/+1
| | | | | the little hack in jabber_write() for now because it breaks error handling.
* The SASL DIGEST-MD5 handler now doesn't barf on challenges without a realmWilmer van der Gaast2006-10-02-1/+7
| | | | | (jabber.org likes to do this).
* Implemented support for SASL DIGEST-MD5 authentication.Wilmer van der Gaast2006-09-23-2/+179
|
* Better detection of successful IQ authentication (using packet caching),Wilmer van der Gaast2006-09-22-2/+8
| | | | | properly working SASL authentication (although only PLAIN so far).
* Fixed return value on incomplete write()s in write handler, protectionWilmer van der Gaast2006-09-22-0/+20
| | | | | | | against write()ing to sockets that are closed already, hopefully sane detection for SASL support, and only sending type=unavailable presence tag to logged in sessions.
* Basic SASL (PLAIN only ATM) authentication code. Doesn't log in completelyWilmer van der Gaast2006-09-22-0/+124
yet.