Changes in protocols/msn/soap.c [693aca0:cdd1ded]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/msn/soap.c
r693aca0 rcdd1ded 270 270 struct im_connection *ic = soap_req->ic; 271 271 struct msn_data *md = ic->proto_data; 272 char pass[MAX_PASSPORT_PWLEN + 1];273 272 274 273 if (sd->redirect) { … … 286 285 } 287 286 288 strncpy(pass, ic->acc->pass, MAX_PASSPORT_PWLEN);289 pass[MAX_PASSPORT_PWLEN] = '\0';290 287 soap_req->payload = g_markup_printf_escaped(SOAP_PASSPORT_SSO_PAYLOAD, 291 ic->acc->user, pass, md->pp_policy);288 ic->acc->user, ic->acc->pass, md->pp_policy); 292 289 293 290 return MSN_SOAP_OK; … … 327 324 struct xt_node *code = xt_find_node(node->children, "faultcode"); 328 325 struct xt_node *string = xt_find_node(node->children, "faultstring"); 326 struct xt_node *reqstatus = xt_find_path(node, "psf:pp/psf:reqstatus"); 329 327 struct xt_node *url; 330 328 … … 335 333 url->text_len > 0) { 336 334 sd->redirect = g_strdup(url->text); 335 } else if (reqstatus && strcmp(reqstatus->text, "0x800488fe") == 0) { 336 char *msg = "Location blocked. Log in to live.com, go to recent activity and click 'this was me'"; 337 sd->error = g_strdup_printf("%s (%s)", code->text, msg); 337 338 } else { 338 339 sd->error = g_strdup_printf("%s (%s)", code->text, string && string->text_len ? … … 346 347 { "wsse:BinarySecurityToken", "wst:RequestedSecurityToken", msn_soap_passport_sso_token }, 347 348 { "S:Fault", "S:Envelope", msn_soap_passport_failure }, 349 { "S:Fault", "wst:RequestSecurityTokenResponse", msn_soap_passport_failure }, 348 350 { NULL, NULL, NULL } 349 351 }; … … 774 776 imcb_log(soap_req->ic, "Warning: %d contacts were in both your " 775 777 "block and your allow list. Assuming they're all " 776 "allowed. Use the official WLM client once to fix " 777 "this.", wtf); 778 "allowed.", wtf); 778 779 } 779 780
Note: See TracChangeset
for help on using the changeset viewer.