Mercurial > pidgin.yaz
comparison libpurple/protocols/jabber/jabber.c @ 17623:a8420fd18545
Added an option to require SSL or TLS when connecting to an XMPP server.
author | Andreas Monitzer <pidgin@monitzer.com> |
---|---|
date | Sun, 08 Jul 2007 22:52:48 +0000 |
parents | bbd92ee894f2 |
children | d53aa2308727 |
comparison
equal
deleted
inserted
replaced
17622:1b74553c5c08 | 17623:a8420fd18545 |
---|---|
136 static void jabber_stream_features_parse(JabberStream *js, xmlnode *packet) | 136 static void jabber_stream_features_parse(JabberStream *js, xmlnode *packet) |
137 { | 137 { |
138 if(xmlnode_get_child(packet, "starttls")) { | 138 if(xmlnode_get_child(packet, "starttls")) { |
139 if(jabber_process_starttls(js, packet)) | 139 if(jabber_process_starttls(js, packet)) |
140 return; | 140 return; |
141 } else if(purple_account_get_bool(js->gc->account, "require_tls", FALSE) && !js->gsc) { | |
142 purple_connection_error(js->gc, _("You require encryption, but it is not available on this server.")); | |
143 return; | |
141 } | 144 } |
142 | 145 |
143 if(js->registration) { | 146 if(js->registration) { |
144 jabber_register_start(js); | 147 jabber_register_start(js); |
145 } else if(xmlnode_get_child(packet, "mechanisms")) { | 148 } else if(xmlnode_get_child(packet, "mechanisms")) { |