# HG changeset patch # User Paul Aurich # Date 1285737069 0 # Node ID 2235682635d108ad7030b5ab8aeedf6e12f4e106 # Parent 0accc8adb18a2cd07ecf06892c1da277cca7c0ca jabber: Commit some non-existent code. (I'm trying to see if I can find a server that supports SASL security layers via Cyrus SASL) diff -r 0accc8adb18a -r 2235682635d1 libpurple/protocols/jabber/jabber.c --- a/libpurple/protocols/jabber/jabber.c Sun Sep 26 20:16:15 2010 +0000 +++ b/libpurple/protocols/jabber/jabber.c Wed Sep 29 05:11:09 2010 +0000 @@ -220,11 +220,30 @@ account = purple_connection_get_account(js->gc); +#if 0 + /* + * This code DOES NOT EXIST, will never be enabled by default, and + * will never ever be supported (by me). + * It's literally *only* for developer testing. + */ + { + const gchar *connection_security = purple_account_get_string(account, "connection_security", JABBER_DEFAULT_REQUIRE_TLS); + if (!g_str_equal(connection_security, "none") && + purple_ssl_is_supported()) { + jabber_send_raw(js, + "", -1); + return TRUE; + } + } +#else if(purple_ssl_is_supported()) { jabber_send_raw(js, "", -1); return TRUE; + } else { + purple_debug_warning("jabber", "No TLS/SSL support found."); } +#endif starttls = xmlnode_get_child(packet, "starttls"); if(xmlnode_get_child(starttls, "required")) {