pidgin: b4167c9d: Send our distid when calling startOSCARS...

markdoliner at pidgin.im markdoliner at pidgin.im
Wed Dec 2 17:25:32 EST 2009


-----------------------------------------------------------------
Revision: b4167c9d623ca40c245302e6fceae8c4cf059ae1
Ancestor: 97b62d04b5e9e87ad7c2d6e90daf8542d6106fed
Author: markdoliner at pidgin.im
Date: 2009-12-02T22:21:30
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/b4167c9d623ca40c245302e6fceae8c4cf059ae1

Modified files:
        libpurple/protocols/oscar/clientlogin.c

ChangeLog: 

Send our distid when calling startOSCARSession, as request by AOL

-------------- next part --------------
============================================================
--- libpurple/protocols/oscar/clientlogin.c	f63fb2d83f62efa4d1085fbceac85da68fd46282
+++ libpurple/protocols/oscar/clientlogin.c	6b07fdebfd1e58e0cd83a7acb55bc6c2269fd296
@@ -277,11 +277,15 @@ static void send_start_oscar_session(Osc
 
 	/* Construct the GET parameters */
 	query_string = g_strdup_printf("a=%s"
+			"&distId=%d"
 			"&f=xml"
 			"&k=%s"
 			"&ts=%" PURPLE_TIME_T_MODIFIER
 			"&useTLS=%d",
-			purple_url_encode(token), get_client_key(od), hosttime, use_tls);
+			purple_url_encode(token),
+			oscar_get_ui_info_int(od->icq ? "prpl-icq-distid"
+					: "prpl-aim-distid", 0x00000611),
+			get_client_key(od), hosttime, use_tls);
 	signature = generate_signature("GET", URL_START_OSCAR_SESSION,
 			query_string, session_key);
 	url = g_strdup_printf(URL_START_OSCAR_SESSION "?%s&sig_sha256=%s",


More information about the Commits mailing list