Mercurial > pidgin
changeset 30579:2235682635d1
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)
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Wed, 29 Sep 2010 05:11:09 +0000 |
parents | 0accc8adb18a |
children | 27e5213d5da1 |
files | libpurple/protocols/jabber/jabber.c |
diffstat | 1 files changed, 19 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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, + "<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>", -1); + return TRUE; + } + } +#else if(purple_ssl_is_supported()) { jabber_send_raw(js, "<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>", -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")) {