pidgin: 111557a2: When an XMPP account is set to require T...

datallah at pidgin.im datallah at pidgin.im
Thu May 1 00:11:50 EDT 2008


-----------------------------------------------------------------
Revision: 111557a29edb804bf21c90b56784727910ce04e0
Ancestor: 7acf31bf8bcc9389e873adfa275a590b2fa7f328
Author: datallah at pidgin.im
Date: 2008-05-01T04:02:31
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/111557a29edb804bf21c90b56784727910ce04e0

Modified files:
        libpurple/protocols/jabber/auth.c

ChangeLog: 

When an XMPP account is set to require TLS, but libpurple doesn't have SSL
support, display an error message and give up before actually logging in.

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/auth.c	b2095ab8bfd68a544933793bc20645ffe0033571
+++ libpurple/protocols/jabber/auth.c	0e7a6b9019dbc139ca80bd984473efacd2af873e
@@ -54,6 +54,11 @@ jabber_process_starttls(JabberStream *js
 				PURPLE_CONNECTION_ERROR_NO_SSL_SUPPORT,
 				_("Server requires TLS/SSL for login.  No TLS/SSL support found."));
 			return TRUE;
+		} else if(purple_account_get_bool(js->gc->account, "require_tls", FALSE)) {
+			purple_connection_error_reason (js->gc,
+				 PURPLE_CONNECTION_ERROR_NO_SSL_SUPPORT,
+				_("You require encryption, but no TLS/SSL support found."));
+			return TRUE;
 		}
 	}
 


More information about the Commits mailing list