Mercurial > pidgin
comparison libpurple/protocols/msn/nexus.c @ 23453:bca58b00afab
References #4382, replaces usage of msn_soap_xml_get with xmlnode_get_child
committer: Ka-Hing Cheung <khc@hxbc.us>
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Sat, 12 Jan 2008 23:26:29 +0000 |
parents | b268fc2c9121 |
children | f182cf94145c |
comparison
equal
deleted
inserted
replaced
23452:b268fc2c9121 | 23453:bca58b00afab |
---|---|
231 nexus_parse_response(MsnNexus *nexus, xmlnode *xml) | 231 nexus_parse_response(MsnNexus *nexus, xmlnode *xml) |
232 { | 232 { |
233 xmlnode *node; | 233 xmlnode *node; |
234 gboolean result = FALSE; | 234 gboolean result = FALSE; |
235 | 235 |
236 node = msn_soap_xml_get(xml, "Body/RequestSecurityTokenResponseCollection/RequestSecurityTokenResponse"); | 236 node = xmlnode_get_child(xml, "Body/RequestSecurityTokenResponseCollection/RequestSecurityTokenResponse"); |
237 | 237 |
238 if (node) | 238 if (node) |
239 node = node->next; /* The first one is not useful */ | 239 node = node->next; /* The first one is not useful */ |
240 else | 240 else |
241 return FALSE; | 241 return FALSE; |
242 | 242 |
243 for (; node; node = node->next) { | 243 for (; node; node = node->next) { |
244 xmlnode *token = msn_soap_xml_get(node, "RequestedSecurityToken/BinarySecurityToken"); | 244 xmlnode *token = xmlnode_get_child(node, "RequestedSecurityToken/BinarySecurityToken"); |
245 xmlnode *secret = msn_soap_xml_get(node, "RequestedProofToken/BinarySecret"); | 245 xmlnode *secret = xmlnode_get_child(node, "RequestedProofToken/BinarySecret"); |
246 xmlnode *expires = msn_soap_xml_get(node, "LifeTime/Expires"); | 246 xmlnode *expires = xmlnode_get_child(node, "LifeTime/Expires"); |
247 | 247 |
248 if (token) { | 248 if (token) { |
249 char *token_str, *expiry_str; | 249 char *token_str, *expiry_str; |
250 const char *id_str = xmlnode_get_attrib(token, "Id"); | 250 const char *id_str = xmlnode_get_attrib(token, "Id"); |
251 char **elems, **cur, **tokens; | 251 char **elems, **cur, **tokens; |
444 ret = g_snprintf(buf, sizeof(buf) - 1, "t=%s&p=%s", msn_t, msn_p); | 444 ret = g_snprintf(buf, sizeof(buf) - 1, "t=%s&p=%s", msn_t, msn_p); |
445 g_return_val_if_fail(ret != -1, NULL); | 445 g_return_val_if_fail(ret != -1, NULL); |
446 | 446 |
447 return buf; | 447 return buf; |
448 } | 448 } |
449 |