comparison src/protocols/jabber/auth.c @ 7157:fae7cfe975fd

[gaim-migrate @ 7724] fix the NSS SSL plugin for TLS upgrades, and make note when a jabber server requires TLS upgrading. How many more acronyms can I fit in this commit message? committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Sun, 05 Oct 2003 05:35:44 +0000
parents e9867cdeb0fd
children e78c6f6e759c
comparison
equal deleted inserted replaced
7156:bb484e976aa8 7157:fae7cfe975fd
39 xmlnode *mechs, *mechnode; 39 xmlnode *mechs, *mechnode;
40 xmlnode *starttls; 40 xmlnode *starttls;
41 41
42 gboolean digest_md5 = FALSE; 42 gboolean digest_md5 = FALSE;
43 43
44 if(gaim_ssl_is_supported() && 44 if((starttls = xmlnode_get_child(packet, "starttls"))) {
45 (starttls = xmlnode_get_child(packet, "starttls"))) { 45 if(gaim_ssl_is_supported()) {
46 jabber_send_raw(js, 46 jabber_send_raw(js,
47 "<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>"); 47 "<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>");
48 return; 48 return;
49 } else if(xmlnode_get_child(starttls, "required")) {
50 gaim_connection_error(js->gc, _("Server requires SSL for login"));
51 return;
52 }
49 } 53 }
50 54
51 mechs = xmlnode_get_child(packet, "mechanisms"); 55 mechs = xmlnode_get_child(packet, "mechanisms");
52 56
53 if(!mechs) { 57 if(!mechs) {