| 687 void jabber_auth_start_old(JabberStream *js) |
687 void jabber_auth_start_old(JabberStream *js) |
| 688 { |
688 { |
| 689 JabberIq *iq; |
689 JabberIq *iq; |
| 690 xmlnode *query, *username; |
690 xmlnode *query, *username; |
| 691 |
691 |
| |
692 /* We can end up here without encryption if the server doesn't support |
| |
693 * <stream:features/> and we're not using old-style SSL. If the user |
| |
694 * is requiring SSL/TLS, we need to enforce it. |
| |
695 */ |
| |
696 if (!jabber_stream_is_ssl(js) && |
| |
697 purple_account_get_bool(purple_connection_get_account(js->gc), "require_tls", FALSE)) { |
| |
698 purple_connection_error_reason (js->gc, |
| |
699 PURPLE_CONNECTION_ERROR_ENCRYPTION_ERROR, |
| |
700 _("You require encryption, but it is not available on this server.")); |
| |
701 return; |
| |
702 } |
| |
703 |
| 692 #ifdef HAVE_CYRUS_SASL |
704 #ifdef HAVE_CYRUS_SASL |
| 693 /* If we have Cyrus SASL, then passwords will have been set |
705 /* If we have Cyrus SASL, then passwords will have been set |
| 694 * to OPTIONAL for this protocol. So, we need to do our own |
706 * to OPTIONAL for this protocol. So, we need to do our own |
| 695 * password prompting here |
707 * password prompting here |
| 696 */ |
708 */ |