comparison src/protocols/msn/msnslp.c @ 7590:3a48ade4f510

[gaim-migrate @ 8208] The MSNSLP stuff pretty much works. I have it disabled in this commit just in case, but I should have the rest done tonight. Also, client IDs are now sent (which was part of the problem), as are the MSNObjects (the other half of the problem). committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sat, 22 Nov 2003 00:47:24 +0000
parents 08ce2a94d9c7
children 43803965ef45
comparison
equal deleted inserted replaced
7589:59c1cee97cbb 7590:3a48ade4f510
212 char *msnobj_data; 212 char *msnobj_data;
213 char *msnobj_base64; 213 char *msnobj_base64;
214 char *branch; 214 char *branch;
215 char *content; 215 char *content;
216 char *body; 216 char *body;
217 char *c;
217 218
218 g_return_if_fail(slpsession != NULL); 219 g_return_if_fail(slpsession != NULL);
219 g_return_if_fail(local_user != NULL); 220 g_return_if_fail(local_user != NULL);
220 g_return_if_fail(remote_user != NULL); 221 g_return_if_fail(remote_user != NULL);
221 g_return_if_fail(obj != NULL); 222 g_return_if_fail(obj != NULL);
222 223
223 msnobj_data = msn_object_to_string(obj); 224 msnobj_data = msn_object_to_string(obj);
224 msnobj_base64 = gaim_base64_encode(msnobj_data, strlen(msnobj_data)); 225 msnobj_base64 = gaim_base64_encode(msnobj_data, strlen(msnobj_data));
225 g_free(msnobj_data); 226 g_free(msnobj_data);
226 227
227 #if 0
228 if ((c = strchr(msnobj_base64, '=')) != NULL) 228 if ((c = strchr(msnobj_base64, '=')) != NULL)
229 *c = '\0'; 229 *c = '\0';
230 #endif
231 230
232 session_id = rand() % 0xFFFFFF00 + 4; 231 session_id = rand() % 0xFFFFFF00 + 4;
233 232
234 branch = g_strdup_printf("%4X%4X-%4X-%4X-%4X-%4X%4X%4X", 233 branch = g_strdup_printf("%4X%4X-%4X-%4X-%4X-%4X%4X%4X",
235 rand() % 0xAAFF + 0x1111, 234 rand() % 0xAAFF + 0x1111,