Lines Matching refs:node
34 static char * get_spp_attr_value(struct xml_node_ctx *ctx, xml_node_t *node, in get_spp_attr_value() argument
37 return xml_node_get_attr_value_ns(ctx, node, SPP_NS_URI, attr_name); in get_spp_attr_value()
41 static int hs20_spp_validate(struct hs20_osu_client *ctx, xml_node_t *node, in hs20_spp_validate() argument
49 if (!xml_node_is_element(xctx, node)) in hs20_spp_validate()
52 name = xml_node_get_localname(xctx, node); in hs20_spp_validate()
64 ret = xml_validate(xctx, node, spp_xsd_fname, &err); in hs20_spp_validate()
78 xml_node_t *node; in add_mo_container() local
100 node = xml_node_create_text(ctx, parent, ns, "moContainer", str); in add_mo_container()
101 if (node) in add_mo_container()
102 xml_node_add_attr(ctx, node, ns, "moURN", urn); in add_mo_container()
150 xml_node_t *node, *parent, *tnds, *unode; in process_update_node() local
263 node = get_node(ctx->xml, pps, pos); in process_update_node()
264 if (node) { in process_update_node()
265 parent = xml_node_get_parent(ctx->xml, node); in process_update_node()
266 xml_node_detach(ctx->xml, node); in process_update_node()
332 xml_node_t *node, *ret_node; in hs20_spp_upload_mo() local
353 node = build_spp_post_dev_data(ctx, &ns, session_id, in hs20_spp_upload_mo()
355 if (node == NULL) in hs20_spp_upload_mo()
357 add_mo_container(ctx->xml, ns, node, URN_HS20_PPS, pps_fname); in hs20_spp_upload_mo()
359 ret_node = soap_send_receive(ctx->http, node); in hs20_spp_upload_mo()
440 xml_node_t *node, *ret_node; in hs20_spp_user_input_completed() local
442 node = build_spp_post_dev_data(ctx, NULL, session_id, in hs20_spp_user_input_completed()
444 if (node == NULL) in hs20_spp_user_input_completed()
447 ret_node = soap_send_receive(ctx->http, node); in hs20_spp_user_input_completed()
452 node = build_spp_post_dev_data(ctx, NULL, session_id, in hs20_spp_user_input_completed()
454 if (node == NULL) in hs20_spp_user_input_completed()
456 ret_node = soap_send_receive(ctx->http, node); in hs20_spp_user_input_completed()
478 xml_node_t *node, *ret_node; in hs20_spp_get_certificate() local
487 node = build_spp_post_dev_data(ctx, &ns, session_id, in hs20_spp_get_certificate()
491 if (node == NULL) in hs20_spp_get_certificate()
494 ret_node = soap_send_receive(ctx->http, node); in hs20_spp_get_certificate()
599 enum spp_post_dev_data_use use, xml_node_t *node, in process_spp_post_dev_data_response() argument
607 debug_dump_node(ctx, "sppPostDevDataResponse node", node); in process_spp_post_dev_data_response()
609 status = get_spp_attr_value(ctx->xml, node, "sppStatus"); in process_spp_post_dev_data_response()
617 session_id = get_spp_attr_value(ctx->xml, node, "sessionID"); in process_spp_post_dev_data_response()
626 xml_node_for_each_child(ctx->xml, child, node) { in process_spp_post_dev_data_response()
698 node = NULL; in process_spp_post_dev_data_response()
718 node = NULL; in process_spp_post_dev_data_response()
728 err = get_node(ctx->xml, node, "sppError"); in process_spp_post_dev_data_response()
744 xml_node_free(ctx->xml, node); in process_spp_post_dev_data_response()
824 xml_node_t *node) in process_spp_exchange_complete() argument
828 debug_dump_node(ctx, "sppExchangeComplete", node); in process_spp_exchange_complete()
830 status = get_spp_attr_value(ctx->xml, node, "sppStatus"); in process_spp_exchange_complete()
838 session_id = get_spp_attr_value(ctx->xml, node, "sessionID"); in process_spp_exchange_complete()
868 xml_node_t *spp_node, *node; in build_spp_update_response() local
880 node = xml_node_create(ctx->xml, spp_node, ns, "sppError"); in build_spp_update_response()
881 if (node) in build_spp_update_response()
882 xml_node_add_attr(ctx->xml, node, NULL, "errorCode", in build_spp_update_response()
895 xml_node_t *node, *ret_node; in hs20_spp_update_response() local
900 node = build_spp_update_response(ctx, session_id, spp_status, in hs20_spp_update_response()
902 if (node == NULL) in hs20_spp_update_response()
904 ret_node = soap_send_receive(ctx->http, node); in hs20_spp_update_response()
909 node = build_spp_update_response(ctx, session_id, spp_status, in hs20_spp_update_response()
911 if (node == NULL) in hs20_spp_update_response()
913 ret_node = soap_send_receive(ctx->http, node); in hs20_spp_update_response()