| 47 jabber_send_raw(js, |
47 jabber_send_raw(js, |
| 48 "<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>", -1); |
48 "<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>", -1); |
| 49 return TRUE; |
49 return TRUE; |
| 50 } else if(xmlnode_get_child(starttls, "required")) { |
50 } else if(xmlnode_get_child(starttls, "required")) { |
| 51 if(gaim_ssl_is_supported()) { |
51 if(gaim_ssl_is_supported()) { |
| 52 gaim_connection_error(js->gc, _("Server requires TLS/SSL for login. Select \"Enable TLS if available\" in account properties")); |
52 gaim_connection_error(js->gc, _("Server requires TLS/SSL for login. Select \"Use TLS if available\" in account properties")); |
| 53 } else { |
53 } else { |
| 54 gaim_connection_error(js->gc, _("Server requires TLS/SSL for login. No TLS/SSL support found.")); |
54 gaim_connection_error(js->gc, _("Server requires TLS/SSL for login. No TLS/SSL support found.")); |
| 55 } |
55 } |
| 56 return TRUE; |
56 return TRUE; |
| 57 } |
57 } |