Mercurial > pidgin
diff libpurple/protocols/jabber/jabber.c @ 17831:988102692e39
Fixed one of the issues in the ssl stuff, allowing CN cert checks for starttls-connections in XMPP.
author | Andreas Monitzer <pidgin@monitzer.com> |
---|---|
date | Tue, 05 Jun 2007 15:18:30 +0000 |
parents | 37a2d6eadd34 |
children | f41a561e3b7b |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/jabber.c Sun Jun 03 23:28:04 2007 +0000 +++ b/libpurple/protocols/jabber/jabber.c Tue Jun 05 15:18:30 2007 +0000 @@ -504,15 +504,13 @@ { purple_input_remove(js->gc->inpa); js->gc->inpa = 0; - js->gsc = purple_ssl_connect_fd(js->gc->account, js->fd, - jabber_login_callback_ssl, jabber_ssl_connect_failure, js->gc); + js->gsc = purple_ssl_connect_with_host_fd(js->gc->account, js->fd, + jabber_login_callback_ssl, jabber_ssl_connect_failure, js->serverFQDN, js->gc); } static void jabber_login_connect(JabberStream *js, const char *fqdn, const char *host, int port) { -#ifdef HAVE_CYRUS_SASL js->serverFQDN = g_strdup(fqdn); -#endif if (purple_proxy_connect(js->gc, js->gc->account, host, port, jabber_login_callback, js->gc) == NULL) @@ -1021,9 +1019,9 @@ g_string_free(js->sasl_mechs, TRUE); if(js->sasl_cb) g_free(js->sasl_cb); +#endif if(js->serverFQDN) g_free(js->serverFQDN); -#endif g_free(js->server_name); g_free(js->gmail_last_time); g_free(js->gmail_last_tid);