# HG changeset patch # User Nathan Walp # Date 1104219231 0 # Node ID e0a4b8586cbe3af84f4d230b4e448d745fb58d9d # Parent 0a7f03ee3a61bbb8b34d4b9636e34d256e4364d7 [gaim-migrate @ 11701] compile warning fixes, and make an error message a little more clear as to the cause if someone wants to word it better, go right ahead committer: Tailor Script diff -r 0a7f03ee3a61 -r e0a4b8586cbe src/protocols/jabber/auth.c --- a/src/protocols/jabber/auth.c Tue Dec 28 07:23:32 2004 +0000 +++ b/src/protocols/jabber/auth.c Tue Dec 28 07:33:51 2004 +0000 @@ -48,7 +48,11 @@ "", -1); return TRUE; } else if(xmlnode_get_child(starttls, "required")) { - gaim_connection_error(js->gc, _("Server requires SSL for login")); + if(gaim_ssl_is_supported()) { + gaim_connection_error(js->gc, _("Server requires TLS/SSL for login. Select \"Enable TLS if available\" in account properties")); + } else { + gaim_connection_error(js->gc, _("Server requires TLS/SSL for login. No TLS/SSL support found.")); + } return TRUE; } } @@ -61,7 +65,7 @@ if(js->auth_type == JABBER_AUTH_PLAIN) { xmlnode *auth; GString *response; - char *enc_out; + unsigned char *enc_out; auth = xmlnode_new("auth"); xmlnode_set_attrib(auth, "xmlns", "urn:ietf:params:xml:ns:xmpp-sasl"); @@ -300,7 +304,7 @@ md5_byte_t result[16]; size_t a1len; - char *x, *a1, *ha1, *ha2, *kd, *z, *convnode, *convpasswd; + unsigned char *x, *a1, *ha1, *ha2, *kd, *z, *convnode, *convpasswd; if((convnode = g_convert(jid->node, strlen(jid->node), "iso-8859-1", "utf-8", NULL, NULL, NULL)) == NULL) { diff -r 0a7f03ee3a61 -r e0a4b8586cbe src/protocols/jabber/buddy.c --- a/src/protocols/jabber/buddy.c Tue Dec 28 07:23:32 2004 +0000 +++ b/src/protocols/jabber/buddy.c Tue Dec 28 07:33:51 2004 +0000 @@ -381,12 +381,12 @@ if (vc_node->name && !g_ascii_strncasecmp(vc_node->name, "vCard", 5)) { GError *error = NULL; - char *avatar_data; + unsigned char *avatar_data; gsize avatar_len; if(avatar_file && g_file_get_contents(avatar_file, &avatar_data, &avatar_len, &error)) { xmlnode *photo; - char *enc; + unsigned char *enc; int i; unsigned char hashval[20]; char *p, hash[41];