Mercurial > pidgin
comparison libpurple/protocols/msn/contact.c @ 23613:860e5e210fc9
Don't print SOAP messages to debug log for "secure" requests. This is
really just for the login requests so that people don't accidentally
post their username and passwords.
Fixes #6445.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Tue, 29 Jul 2008 07:01:30 +0000 |
parents | 4162ac08c775 |
children | 679a61dcf5c2 |
comparison
equal
deleted
inserted
replaced
23612:7f4b697c6947 | 23613:860e5e210fc9 |
---|---|
226 session->user->passport); | 226 session->user->passport); |
227 | 227 |
228 msn_soap_message_send(session, | 228 msn_soap_message_send(session, |
229 msn_soap_message_new(MSN_ADD_ADDRESSBOOK_SOAP_ACTION, | 229 msn_soap_message_new(MSN_ADD_ADDRESSBOOK_SOAP_ACTION, |
230 xmlnode_from_str(body, -1)), | 230 xmlnode_from_str(body, -1)), |
231 MSN_CONTACT_SERVER, MSN_ADDRESS_BOOK_POST_URL, msn_create_address_cb, | 231 MSN_CONTACT_SERVER, MSN_ADDRESS_BOOK_POST_URL, FALSE, |
232 session); | 232 msn_create_address_cb, session); |
233 | 233 |
234 g_free(body); | 234 g_free(body); |
235 } | 235 } |
236 | 236 |
237 static void | 237 static void |
413 update_str ? update_str : ""); | 413 update_str ? update_str : ""); |
414 | 414 |
415 msn_soap_message_send(session, | 415 msn_soap_message_send(session, |
416 msn_soap_message_new(MSN_GET_CONTACT_SOAP_ACTION, | 416 msn_soap_message_new(MSN_GET_CONTACT_SOAP_ACTION, |
417 xmlnode_from_str(body, -1)), | 417 xmlnode_from_str(body, -1)), |
418 MSN_CONTACT_SERVER, MSN_GET_CONTACT_POST_URL, | 418 MSN_CONTACT_SERVER, MSN_GET_CONTACT_POST_URL, FALSE, |
419 msn_get_contact_list_cb, g_memdup(&cb_data, sizeof(cb_data))); | 419 msn_get_contact_list_cb, g_memdup(&cb_data, sizeof(cb_data))); |
420 | 420 |
421 g_free(update_str); | 421 g_free(update_str); |
422 g_free(body); | 422 g_free(body); |
423 } | 423 } |
813 update_str ? update_str : ""); | 813 update_str ? update_str : ""); |
814 | 814 |
815 msn_soap_message_send(session, | 815 msn_soap_message_send(session, |
816 msn_soap_message_new(MSN_GET_ADDRESS_SOAP_ACTION, | 816 msn_soap_message_new(MSN_GET_ADDRESS_SOAP_ACTION, |
817 xmlnode_from_str(body, -1)), | 817 xmlnode_from_str(body, -1)), |
818 MSN_CONTACT_SERVER, MSN_ADDRESS_BOOK_POST_URL, msn_get_address_cb, | 818 MSN_CONTACT_SERVER, MSN_ADDRESS_BOOK_POST_URL, FALSE, |
819 session); | 819 msn_get_address_cb, session); |
820 | 820 |
821 g_free(update_str); | 821 g_free(update_str); |
822 g_free(body); | 822 g_free(body); |
823 } | 823 } |
824 | 824 |
915 xmlnode_free(state->token->child); | 915 xmlnode_free(state->token->child); |
916 xmlnode_insert_data(state->token, | 916 xmlnode_insert_data(state->token, |
917 msn_nexus_get_token_str(state->session->nexus, MSN_AUTH_CONTACTS), -1); | 917 msn_nexus_get_token_str(state->session->nexus, MSN_AUTH_CONTACTS), -1); |
918 msn_soap_message_send(state->session, | 918 msn_soap_message_send(state->session, |
919 msn_soap_message_new(state->post_action, xmlnode_copy(state->body)), | 919 msn_soap_message_new(state->post_action, xmlnode_copy(state->body)), |
920 MSN_CONTACT_SERVER, state->post_url, msn_contact_request_cb, state); | 920 MSN_CONTACT_SERVER, state->post_url, FALSE, |
921 msn_contact_request_cb, state); | |
921 return FALSE; | 922 return FALSE; |
922 } | 923 } |
923 | 924 |
924 static void | 925 static void |
925 msn_add_contact_read_cb(MsnSoapMessage *req, MsnSoapMessage *resp, | 926 msn_add_contact_read_cb(MsnSoapMessage *req, MsnSoapMessage *resp, |