summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Aurich <darkrain42@pidgin.im>2009-01-28 03:40:55 +0000
committerPaul Aurich <darkrain42@pidgin.im>2009-01-28 03:40:55 +0000
commitab9210fcd3d354cf2759b37a55896cdb020f03d4 (patch)
tree911fdce70ec08cf84b0dfb85de61032f4c172a37
parentc356253ef254f96f9708dc360c9be256bac16696 (diff)
downloadpidgin-cpw.darkrain42.oscar.ssl.tar.gz
Use 'bos.oscar.aol.com' as the common name for the initial BOS connection.cpw.darkrain42.oscar.ssl
The redirect from the login server to first BOS server doesn't include the magic TLV with a name to use for comparison; I missed this because I cached all those certificates before I fixed the code for the other SNAC family servers.
-rw-r--r--libpurple/protocols/oscar/oscar.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/libpurple/protocols/oscar/oscar.c b/libpurple/protocols/oscar/oscar.c
index b45bd9a570..d8f7b1217c 100644
--- a/libpurple/protocols/oscar/oscar.c
+++ b/libpurple/protocols/oscar/oscar.c
@@ -1691,9 +1691,13 @@ purple_parse_auth_resp(OscarData *od, FlapConnection *conn, FlapFrame *fr, ...)
if (od->use_ssl)
{
- newconn->gsc = purple_ssl_connect(account, host, port,
- ssl_connection_established_cb, ssl_connection_error_cb,
- newconn);
+ /*
+ * This shouldn't be hardcoded except that the server isn't sending
+ * us a name to use for comparing the certificate common name.
+ */
+ newconn->ssl_cert_cn = g_strdup("bos.oscar.aol.com");
+ newconn->connect_data = purple_proxy_connect(NULL, account, host, port,
+ ssl_proxy_conn_established_cb, newconn);
}
else
{