Lines Matching refs:node
144 xml_node_t *node) in db_add_session_pps() argument
149 str = xml_node_to_str(ctx->xml, node); in db_add_session_pps()
168 xml_node_t *node) in db_add_session_devinfo() argument
173 str = xml_node_to_str(ctx->xml, node); in db_add_session_devinfo()
192 xml_node_t *node) in db_add_session_devdetail() argument
197 str = xml_node_to_str(ctx->xml, node); in db_add_session_devdetail()
335 xml_node_t *node) in hs20_eventlog_node() argument
339 if (node) in hs20_eventlog_node()
340 str = xml_node_to_str(ctx->xml, node); in hs20_eventlog_node()
609 xml_node_t *node; in add_eap_ttls() local
611 node = xml_node_create(ctx->xml, parent, NULL, "EAPMethod"); in add_eap_ttls()
612 if (node == NULL) in add_eap_ttls()
615 add_text_node(ctx, node, "EAPType", "21"); in add_eap_ttls()
616 add_text_node(ctx, node, "InnerMethod", "MS-CHAP-V2"); in add_eap_ttls()
626 xml_node_t *node; in build_username_password() local
630 node = xml_node_create(ctx->xml, parent, NULL, "UsernamePassword"); in build_username_password()
631 if (node == NULL) in build_username_password()
634 add_text_node(ctx, node, "Username", user); in build_username_password()
642 add_text_node(ctx, node, "Password", b64); in build_username_password()
645 return node; in build_username_password()
653 xml_node_t *node; in add_username_password() local
655 node = build_username_password(ctx, cred, user, pw); in add_username_password()
656 if (node == NULL) in add_username_password()
659 add_text_node(ctx, node, "MachineManaged", in add_username_password()
661 add_text_node(ctx, node, "SoftTokenApp", ""); in add_username_password()
662 add_eap_ttls(ctx, node); in add_username_password()
758 xml_node_t *node; in build_post_dev_data_response() local
759 node = xml_node_create(ctx->xml, spp_node, ns, "sppError"); in build_post_dev_data_response()
760 if (node) in build_post_dev_data_response()
761 xml_node_add_attr(ctx->xml, node, NULL, "errorCode", in build_post_dev_data_response()
773 xml_node_t *node, *tnds; in add_update_node() local
784 node = xml_node_create_text(ctx->xml, spp_node, ns, "updateNode", str); in add_update_node()
787 xml_node_add_attr(ctx->xml, node, ns, "managementTreeURI", uri); in add_update_node()
800 xml_node_t *node; in read_subrem_file() local
825 node = xml_node_from_buf(ctx->xml, pos); in read_subrem_file()
828 return node; in read_subrem_file()
1179 xml_node_t *node; in update_policy_update_uri() local
1182 node = get_node_uri(ctx->xml, policy, "Policy/PolicyUpdate/URI"); in update_policy_update_uri()
1183 if (!node) in update_policy_update_uri()
1189 xml_node_set_text(ctx->xml, node, url); in update_policy_update_uri()
1198 xml_node_t *policy, *node; in build_policy() local
1214 node = get_node_uri(ctx->xml, policy, "Policy/PolicyUpdate"); in build_policy()
1215 if (node && use_dmacc) { in build_policy()
1219 build_username_password(ctx, node, user, pw) == NULL) { in build_policy()
1290 static xml_node_t * spp_get_mo(struct hs20_svc *ctx, xml_node_t *node, in spp_get_mo() argument
1303 xml_node_for_each_child(ctx->xml, child, node) { in spp_get_mo()
1358 xml_node_t *spp_node, *node, *exec_node; in spp_exec_upload_mo() local
1367 node = xml_node_create(ctx->xml, exec_node, ns, "uploadMO"); in spp_exec_upload_mo()
1368 xml_node_add_attr(ctx->xml, node, ns, "moURN", urn); in spp_exec_upload_mo()
1627 xml_node_t *spp_node, *node = NULL; in hs20_user_input_registration() local
1737 node = xml_node_create_text(ctx->xml, spp_node, ns, "addMO", str); in hs20_user_input_registration()
1741 xml_node_add_attr(ctx->xml, node, ns, "managementTreeURI", buf); in hs20_user_input_registration()
1742 xml_node_add_attr(ctx->xml, node, ns, "moURN", URN_HS20_PPS); in hs20_user_input_registration()
1938 xml_node_t *spp_node, *node; in hs20_cert_enroll_failed() local
1962 node = xml_node_create(ctx->xml, spp_node, ns, "sppError"); in hs20_cert_enroll_failed()
1963 xml_node_add_attr(ctx->xml, node, NULL, "errorCode", in hs20_cert_enroll_failed()
1977 xml_node_t *spp_node, *node = NULL; in hs20_sim_provisioning() local
2014 node = get_node_uri(ctx->xml, policy_node, in hs20_sim_provisioning()
2016 if (node) in hs20_sim_provisioning()
2017 build_username_password(ctx, node, dmacc_username, in hs20_sim_provisioning()
2058 node = xml_node_create_text(ctx->xml, spp_node, ns, "addMO", str); in hs20_sim_provisioning()
2061 xml_node_add_attr(ctx->xml, node, ns, "managementTreeURI", buf); in hs20_sim_provisioning()
2062 xml_node_add_attr(ctx->xml, node, ns, "moURN", URN_HS20_PPS); in hs20_sim_provisioning()
2069 xml_node_t *node, in hs20_spp_post_dev_data() argument
2087 version = xml_node_get_attr_value_ns(ctx->xml, node, SPP_NS_URI, in hs20_spp_post_dev_data()
2100 mo = get_node(ctx->xml, node, "supportedMOList"); in hs20_spp_post_dev_data()
2126 req_reason_buf = xml_node_get_attr_value(ctx->xml, node, in hs20_spp_post_dev_data()
2134 redirect_uri = xml_node_get_attr_value(ctx->xml, node, "redirectURI"); in hs20_spp_post_dev_data()
2142 devinfo = spp_get_mo(ctx, node, URN_OMA_DM_DEVINFO, &valid, &err); in hs20_spp_post_dev_data()
2168 devdetail = spp_get_mo(ctx, node, URN_OMA_DM_DEVDETAIL, &valid, &err); in hs20_spp_post_dev_data()
2218 mo = spp_get_mo(ctx, node, URN_HS20_PPS, &valid, &err); in hs20_spp_post_dev_data()
2376 xml_node_t *spp_node, *node; in build_spp_exchange_complete() local
2387 node = xml_node_create(ctx->xml, spp_node, ns, "sppError"); in build_spp_exchange_complete()
2388 xml_node_add_attr(ctx->xml, node, NULL, "errorCode", in build_spp_exchange_complete()
2589 xml_node_t *node, in hs20_spp_update_response() argument
2600 status = xml_node_get_attr_value_ns(ctx->xml, node, SPP_NS_URI, in hs20_spp_update_response()
2810 xml_node_t * hs20_spp_server_process(struct hs20_svc *ctx, xml_node_t *node, in hs20_spp_server_process() argument
2820 debug_dump_node(ctx, "received request", node); in hs20_spp_server_process()
2835 if (xml_validate(ctx->xml, node, fname, &xml_err) < 0) { in hs20_spp_server_process()
2840 session_id = xml_node_get_attr_value_ns(ctx->xml, node, in hs20_spp_server_process()
2847 "SPP message failed validation", node); in hs20_spp_server_process()
2858 session_id = xml_node_get_attr_value_ns(ctx->xml, node, SPP_NS_URI, in hs20_spp_server_process()
2877 op_name = xml_node_get_localname(ctx->xml, node); in hs20_spp_server_process()
2886 node); in hs20_spp_server_process()
2887 ret = hs20_spp_post_dev_data(ctx, node, auth_user, auth_realm, in hs20_spp_server_process()
2892 node); in hs20_spp_server_process()
2893 ret = hs20_spp_update_response(ctx, node, auth_user, in hs20_spp_server_process()
2898 "validated", node); in hs20_spp_server_process()