Mercurial > pidgin.yaz
comparison libpurple/protocols/jabber/auth.c @ 22776:abd261518b83
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.
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Thu, 01 May 2008 04:02:31 +0000 |
parents | fa7e07c74a59 |
children | 42dfa1139b5c |
comparison
equal
deleted
inserted
replaced
22775:a8a2268ce925 | 22776:abd261518b83 |
---|---|
52 } else if(xmlnode_get_child(starttls, "required")) { | 52 } else if(xmlnode_get_child(starttls, "required")) { |
53 purple_connection_error_reason (js->gc, | 53 purple_connection_error_reason (js->gc, |
54 PURPLE_CONNECTION_ERROR_NO_SSL_SUPPORT, | 54 PURPLE_CONNECTION_ERROR_NO_SSL_SUPPORT, |
55 _("Server requires TLS/SSL for login. No TLS/SSL support found.")); | 55 _("Server requires TLS/SSL for login. No TLS/SSL support found.")); |
56 return TRUE; | 56 return TRUE; |
57 } else if(purple_account_get_bool(js->gc->account, "require_tls", FALSE)) { | |
58 purple_connection_error_reason (js->gc, | |
59 PURPLE_CONNECTION_ERROR_NO_SSL_SUPPORT, | |
60 _("You require encryption, but no TLS/SSL support found.")); | |
61 return TRUE; | |
57 } | 62 } |
58 } | 63 } |
59 | 64 |
60 return FALSE; | 65 return FALSE; |
61 } | 66 } |