Lines Matching refs:xml
80 char *str = xml_node_to_str(ctx->xml, node); in debug_dump_node()
115 proto = xml_node_get_attr_value(ctx->xml, getcert, in osu_get_certificate()
123 xml_node_get_attr_value_free(ctx->xml, proto); in osu_get_certificate()
126 xml_node_get_attr_value_free(ctx->xml, proto); in osu_get_certificate()
128 node = get_node(ctx->xml, getcert, "enrollmentServerURI"); in osu_get_certificate()
131 xml_node_get_attr_value_free(ctx->xml, proto); in osu_get_certificate()
134 url = xml_node_get_text(ctx->xml, node); in osu_get_certificate()
142 node = get_node(ctx->xml, getcert, "estUserID"); in osu_get_certificate()
148 user = xml_node_get_text(ctx->xml, node); in osu_get_certificate()
157 node = get_node(ctx->xml, getcert, "estPassword"); in osu_get_certificate()
163 pw = xml_node_get_base64_text(ctx->xml, node, NULL); in osu_get_certificate()
179 xml_node_get_text_free(ctx->xml, url); in osu_get_certificate()
180 xml_node_get_text_free(ctx->xml, user); in osu_get_certificate()
181 xml_node_get_text_free(ctx->xml, pw); in osu_get_certificate()
198 fingerprint = xml_node_get_text(ctx->xml, cert); in process_est_cert()
204 xml_node_get_text_free(ctx->xml, fingerprint); in process_est_cert()
207 xml_node_get_text_free(ctx->xml, fingerprint); in process_est_cert()
286 url_node = get_node(ctx->xml, params, "CertURL"); in download_cert()
287 hash_node = get_node(ctx->xml, params, "CertSHA256Fingerprint"); in download_cert()
290 url = xml_node_get_text(ctx->xml, url_node); in download_cert()
291 hash = xml_node_get_text(ctx->xml, hash_node); in download_cert()
293 xml_node_get_text_free(ctx->xml, url); in download_cert()
294 xml_node_get_text_free(ctx->xml, hash); in download_cert()
304 xml_node_get_text_free(ctx->xml, hash); in download_cert()
307 xml_node_get_text_free(ctx->xml, hash); in download_cert()
316 xml_node_get_text_free(ctx->xml, url); in download_cert()
371 pps = node_from_file(ctx->xml, pps_fname); in cmd_dl_osu_ca()
377 node = get_child_node(ctx->xml, pps, in cmd_dl_osu_ca()
381 xml_node_free(ctx->xml, pps); in cmd_dl_osu_ca()
386 xml_node_free(ctx->xml, pps); in cmd_dl_osu_ca()
398 pps = node_from_file(ctx->xml, pps_fname); in cmd_dl_polupd_ca()
404 node = get_child_node(ctx->xml, pps, in cmd_dl_polupd_ca()
408 xml_node_free(ctx->xml, pps); in cmd_dl_polupd_ca()
413 xml_node_free(ctx->xml, pps); in cmd_dl_polupd_ca()
425 pps = node_from_file(ctx->xml, pps_fname); in cmd_dl_aaa_ca()
431 node = get_child_node(ctx->xml, pps, in cmd_dl_aaa_ca()
435 xml_node_free(ctx->xml, pps); in cmd_dl_aaa_ca()
439 aaa = xml_node_first_child(ctx->xml, node); in cmd_dl_aaa_ca()
442 xml_node_free(ctx->xml, pps); in cmd_dl_aaa_ca()
447 xml_node_free(ctx->xml, pps); in cmd_dl_aaa_ca()
608 str = xml_node_get_text(ctx->xml, add_mo); in hs20_add_pps_mo()
616 tnds = xml_node_from_buf(ctx->xml, str); in hs20_add_pps_mo()
617 xml_node_get_text_free(ctx->xml, str); in hs20_add_pps_mo()
624 mo = tnds_to_mo(ctx->xml, tnds); in hs20_add_pps_mo()
633 name = xml_node_get_localname(ctx->xml, mo); in hs20_add_pps_mo()
641 cert = get_child_node(ctx->xml, mo, in hs20_add_pps_mo()
645 xml_node_free(ctx->xml, mo); in hs20_add_pps_mo()
651 if (node_to_file(ctx->xml, fname, mo) < 0) { in hs20_add_pps_mo()
653 xml_node_free(ctx->xml, mo); in hs20_add_pps_mo()
656 xml_node_free(ctx->xml, mo); in hs20_add_pps_mo()
681 cert = get_child_node(ctx->xml, pps, in update_pps_file()
693 str = xml_node_to_str(ctx->xml, pps); in update_pps_file()
723 node = get_child_node(ctx->xml, pps, in get_user_pw()
726 *user = xml_node_get_text(ctx->xml, node); in get_user_pw()
728 node = get_child_node(ctx->xml, pps, in get_user_pw()
731 *pw = xml_node_get_base64_text(ctx->xml, node, NULL); in get_user_pw()
733 node = get_child_node(ctx->xml, pps, alt_loc); in get_user_pw()
736 a = get_node(ctx->xml, node, "Username"); in get_user_pw()
738 xml_node_get_text_free(ctx->xml, *user); in get_user_pw()
739 *user = xml_node_get_text(ctx->xml, a); in get_user_pw()
743 a = get_node(ctx->xml, node, "Password"); in get_user_pw()
746 *pw = xml_node_get_base64_text(ctx->xml, a, NULL); in get_user_pw()
769 ssid = get_node(ctx->xml, spe, "SSID"); in set_pps_cred_policy_spe()
772 txt = xml_node_get_text(ctx->xml, ssid); in set_pps_cred_policy_spe()
778 xml_node_get_text_free(ctx->xml, txt); in set_pps_cred_policy_spe()
787 xml_node_for_each_child(ctx->xml, child, spel) { in set_pps_cred_policy_spel()
788 xml_node_for_each_check(ctx->xml, child); in set_pps_cred_policy_spel()
804 node = get_node(ctx->xml, prp, "Priority"); in set_pps_cred_policy_prp()
807 prio = xml_node_get_text(ctx->xml, node); in set_pps_cred_policy_prp()
813 xml_node_get_text_free(ctx->xml, prio); in set_pps_cred_policy_prp()
815 node = get_node(ctx->xml, prp, "Country"); in set_pps_cred_policy_prp()
817 country_buf = xml_node_get_text(ctx->xml, node); in set_pps_cred_policy_prp()
827 node = get_node(ctx->xml, prp, "FQDN_Match"); in set_pps_cred_policy_prp()
830 txt = xml_node_get_text(ctx->xml, node); in set_pps_cred_policy_prp()
845 xml_node_get_text_free(ctx->xml, country_buf); in set_pps_cred_policy_prp()
846 xml_node_get_text_free(ctx->xml, txt); in set_pps_cred_policy_prp()
855 xml_node_for_each_child(ctx->xml, child, prpl) { in set_pps_cred_policy_prpl()
856 xml_node_for_each_check(ctx->xml, child); in set_pps_cred_policy_prpl()
869 node = get_node(ctx->xml, min_backhaul, "NetworkType"); in set_pps_cred_policy_min_backhaul()
875 type = xml_node_get_text(ctx->xml, node); in set_pps_cred_policy_min_backhaul()
886 xml_node_get_text_free(ctx->xml, type); in set_pps_cred_policy_min_backhaul()
889 xml_node_get_text_free(ctx->xml, type); in set_pps_cred_policy_min_backhaul()
891 node = get_node(ctx->xml, min_backhaul, "DLBandwidth"); in set_pps_cred_policy_min_backhaul()
893 dl = xml_node_get_text(ctx->xml, node); in set_pps_cred_policy_min_backhaul()
895 node = get_node(ctx->xml, min_backhaul, "ULBandwidth"); in set_pps_cred_policy_min_backhaul()
897 ul = xml_node_get_text(ctx->xml, node); in set_pps_cred_policy_min_backhaul()
929 xml_node_get_text_free(ctx->xml, dl); in set_pps_cred_policy_min_backhaul()
930 xml_node_get_text_free(ctx->xml, ul); in set_pps_cred_policy_min_backhaul()
941 xml_node_for_each_child(ctx->xml, child, node) { in set_pps_cred_policy_min_backhaul_list()
942 xml_node_for_each_check(ctx->xml, child); in set_pps_cred_policy_min_backhaul_list()
964 node = get_node(ctx->xml, tuple, "IPProtocol"); in set_pps_cred_policy_required_proto_port()
970 proto = xml_node_get_text(ctx->xml, node); in set_pps_cred_policy_required_proto_port()
977 node = get_node(ctx->xml, tuple, "PortNumber"); in set_pps_cred_policy_required_proto_port()
978 port = node ? xml_node_get_text(ctx->xml, node) : NULL; in set_pps_cred_policy_required_proto_port()
986 xml_node_get_text_free(ctx->xml, port); in set_pps_cred_policy_required_proto_port()
994 xml_node_get_text_free(ctx->xml, proto); in set_pps_cred_policy_required_proto_port()
1013 xml_node_for_each_child(ctx->xml, child, node) { in set_pps_cred_policy_required_proto_ports()
1014 xml_node_for_each_check(ctx->xml, child); in set_pps_cred_policy_required_proto_ports()
1023 char *str = xml_node_get_text(ctx->xml, node); in set_pps_cred_policy_max_bss_load()
1029 xml_node_get_text_free(ctx->xml, str); in set_pps_cred_policy_max_bss_load()
1041 xml_node_for_each_child(ctx->xml, child, node) { in set_pps_cred_policy()
1042 xml_node_for_each_check(ctx->xml, child); in set_pps_cred_policy()
1043 name = xml_node_get_localname(ctx->xml, child); in set_pps_cred_policy()
1065 char *str = xml_node_get_text(ctx->xml, node); in set_pps_cred_priority()
1071 xml_node_get_text_free(ctx->xml, str); in set_pps_cred_priority()
1096 ssid_node = get_node(ctx->xml, node, "SSID"); in set_pps_cred_home_sp_network_id()
1102 hessid_node = get_node(ctx->xml, node, "HESSID"); in set_pps_cred_home_sp_network_id()
1104 ssid = xml_node_get_text(ctx->xml, ssid_node); in set_pps_cred_home_sp_network_id()
1107 hessid = hessid_node ? xml_node_get_text(ctx->xml, hessid_node) : NULL; in set_pps_cred_home_sp_network_id()
1116 xml_node_get_text_free(ctx->xml, ssid); in set_pps_cred_home_sp_network_id()
1117 xml_node_get_text_free(ctx->xml, hessid); in set_pps_cred_home_sp_network_id()
1128 xml_node_for_each_child(ctx->xml, child, node) { in set_pps_cred_home_sp_network_ids()
1129 xml_node_for_each_check(ctx->xml, child); in set_pps_cred_home_sp_network_ids()
1138 char *str = xml_node_get_text(ctx->xml, node); in set_pps_cred_home_sp_friendly_name()
1143 xml_node_get_text_free(ctx->xml, str); in set_pps_cred_home_sp_friendly_name()
1150 char *str = xml_node_get_text(ctx->xml, node); in set_pps_cred_home_sp_icon_url()
1155 xml_node_get_text_free(ctx->xml, str); in set_pps_cred_home_sp_icon_url()
1162 char *str = xml_node_get_text(ctx->xml, node); in set_pps_cred_home_sp_fqdn()
1170 xml_node_get_text_free(ctx->xml, str); in set_pps_cred_home_sp_fqdn()
1183 xml_node_for_each_child(ctx->xml, child, node) { in set_pps_cred_home_sp_oi()
1184 xml_node_for_each_check(ctx->xml, child); in set_pps_cred_home_sp_oi()
1185 name = xml_node_get_localname(ctx->xml, child); in set_pps_cred_home_sp_oi()
1187 homeoi = xml_node_get_text(ctx->xml, child); in set_pps_cred_home_sp_oi()
1191 str = xml_node_get_text(ctx->xml, child); in set_pps_cred_home_sp_oi()
1197 xml_node_get_text_free(ctx->xml, str); in set_pps_cred_home_sp_oi()
1221 xml_node_get_text_free(ctx->xml, homeoi); in set_pps_cred_home_sp_oi()
1232 xml_node_for_each_child(ctx->xml, child, node) { in set_pps_cred_home_sp_oi_list()
1233 xml_node_for_each_check(ctx->xml, child); in set_pps_cred_home_sp_oi_list()
1246 xml_node_for_each_child(ctx->xml, child, node) { in set_pps_cred_home_sp_other_partner()
1247 xml_node_for_each_check(ctx->xml, child); in set_pps_cred_home_sp_other_partner()
1248 name = xml_node_get_localname(ctx->xml, child); in set_pps_cred_home_sp_other_partner()
1250 fqdn = xml_node_get_text(ctx->xml, child); in set_pps_cred_home_sp_other_partner()
1266 xml_node_get_text_free(ctx->xml, fqdn); in set_pps_cred_home_sp_other_partner()
1278 xml_node_for_each_child(ctx->xml, child, node) { in set_pps_cred_home_sp_other_partners()
1279 xml_node_for_each_check(ctx->xml, child); in set_pps_cred_home_sp_other_partners()
1288 char *str = xml_node_get_text(ctx->xml, node); in set_pps_cred_home_sp_roaming_consortium_oi()
1293 xml_node_get_text_free(ctx->xml, str); in set_pps_cred_home_sp_roaming_consortium_oi()
1305 xml_node_for_each_child(ctx->xml, child, node) { in set_pps_cred_home_sp()
1306 xml_node_for_each_check(ctx->xml, child); in set_pps_cred_home_sp()
1307 name = xml_node_get_localname(ctx->xml, child); in set_pps_cred_home_sp()
1340 char *str = xml_node_get_text(ctx->xml, node); in set_pps_cred_creation_date()
1345 xml_node_get_text_free(ctx->xml, str); in set_pps_cred_creation_date()
1352 char *str = xml_node_get_text(ctx->xml, node); in set_pps_cred_expiration_date()
1357 xml_node_get_text_free(ctx->xml, str); in set_pps_cred_expiration_date()
1364 char *str = xml_node_get_text(ctx->xml, node); in set_pps_cred_username()
1371 xml_node_get_text_free(ctx->xml, str); in set_pps_cred_username()
1381 pw = xml_node_get_base64_text(ctx->xml, node, &len); in set_pps_cred_password()
1409 char *str = xml_node_get_text(ctx->xml, node); in set_pps_cred_machine_managed()
1415 xml_node_get_text_free(ctx->xml, str); in set_pps_cred_machine_managed()
1422 char *str = xml_node_get_text(ctx->xml, node); in set_pps_cred_soft_token_app()
1428 xml_node_get_text_free(ctx->xml, str); in set_pps_cred_soft_token_app()
1435 char *str = xml_node_get_text(ctx->xml, node); in set_pps_cred_able_to_share()
1441 xml_node_get_text_free(ctx->xml, str); in set_pps_cred_able_to_share()
1460 xml_node_for_each_child(ctx->xml, child, node) { in set_pps_cred_username_password()
1461 xml_node_for_each_check(ctx->xml, child); in set_pps_cred_username_password()
1462 name = xml_node_get_localname(ctx->xml, child); in set_pps_cred_username_password()
1516 char *str = xml_node_get_text(ctx->xml, node); in set_pps_cred_realm()
1525 xml_node_get_text_free(ctx->xml, str); in set_pps_cred_realm()
1544 char *str = xml_node_get_text(ctx->xml, node); in set_pps_cred_check_aaa_cert_status()
1553 xml_node_get_text_free(ctx->xml, str); in set_pps_cred_check_aaa_cert_status()
1566 node = get_node(ctx->xml, sim, "EAPType"); in set_pps_cred_sim()
1571 eaptype = xml_node_get_text(ctx->xml, node); in set_pps_cred_sim()
1578 xml_node_get_text_free(ctx->xml, eaptype); in set_pps_cred_sim()
1598 node = get_node(ctx->xml, sim, "IMSI"); in set_pps_cred_sim()
1603 imsi = xml_node_get_text(ctx->xml, node); in set_pps_cred_sim()
1612 xml_node_get_text_free(ctx->xml, imsi); in set_pps_cred_sim()
1616 str = xml_node_get_text(ctx->xml, node); in set_pps_cred_sim()
1626 xml_node_get_text_free(ctx->xml, str); in set_pps_cred_sim()
1634 xml_node_get_text_free(ctx->xml, imsi); in set_pps_cred_sim()
1655 sim = get_node(ctx->xml, node, "SIM"); in set_pps_cred_credential()
1656 realm = get_node(ctx->xml, node, "Realm"); in set_pps_cred_credential()
1658 xml_node_for_each_child(ctx->xml, child, node) { in set_pps_cred_credential()
1659 xml_node_for_each_check(ctx->xml, child); in set_pps_cred_credential()
1660 name = xml_node_get_localname(ctx->xml, child); in set_pps_cred_credential()
1688 xml_node_for_each_child(ctx->xml, child, cred) { in set_pps_credential()
1689 xml_node_for_each_check(ctx->xml, child); in set_pps_credential()
1690 name = xml_node_get_localname(ctx->xml, child); in set_pps_credential()
1727 xml_node_for_each_child(ctx->xml, child, pps) { in set_pps()
1728 xml_node_for_each_check(ctx->xml, child); in set_pps()
1729 name = xml_node_get_localname(ctx->xml, child); in set_pps()
1731 update_identifier = xml_node_get_text(ctx->xml, child); in set_pps()
1740 xml_node_for_each_child(ctx->xml, child, pps) { in set_pps()
1741 xml_node_for_each_check(ctx->xml, child); in set_pps()
1742 name = xml_node_get_localname(ctx->xml, child); in set_pps()
1764 xml_node_get_text_free(ctx->xml, update_identifier); in set_pps()
1774 pps = node_from_file(ctx->xml, pps_fname); in cmd_set_pps()
1797 xml_node_free(ctx->xml, pps); in cmd_set_pps()
1806 pps = node_from_file(ctx->xml, pps_fname); in cmd_get_fqdn()
1812 node = get_child_node(ctx->xml, pps, "HomeSP/FQDN"); in cmd_get_fqdn()
1814 fqdn = xml_node_get_text(ctx->xml, node); in cmd_get_fqdn()
1816 xml_node_free(ctx->xml, pps); in cmd_get_fqdn()
1824 xml_node_get_text_free(ctx->xml, fqdn); in cmd_get_fqdn()
1828 xml_node_get_text_free(ctx->xml, fqdn); in cmd_get_fqdn()
1838 mo = node_from_file(ctx->xml, in_fname); in cmd_to_tnds()
1844 node = mo_to_tnds(ctx->xml, mo, use_path, urn, NULL); in cmd_to_tnds()
1846 node_to_file(ctx->xml, out_fname, node); in cmd_to_tnds()
1847 xml_node_free(ctx->xml, node); in cmd_to_tnds()
1850 xml_node_free(ctx->xml, mo); in cmd_to_tnds()
1859 tnds = node_from_file(ctx->xml, in_fname); in cmd_from_tnds()
1865 mo = tnds_to_mo(ctx->xml, tnds); in cmd_from_tnds()
1867 node_to_file(ctx->xml, out_fname, mo); in cmd_from_tnds()
1868 xml_node_free(ctx->xml, mo); in cmd_from_tnds()
1871 xml_node_free(ctx->xml, tnds); in cmd_from_tnds()
2454 pps = node_from_file(ctx->xml, pps_fname); in cmd_sub_rem()
2462 node = get_child_node(ctx->xml, pps, "HomeSP/FQDN"); in cmd_sub_rem()
2467 tmp = xml_node_get_text(ctx->xml, node); in cmd_sub_rem()
2473 xml_node_get_text_free(ctx->xml, tmp); in cmd_sub_rem()
2480 node = get_child_node(ctx->xml, pps, in cmd_sub_rem()
2484 tmp = xml_node_get_text(ctx->xml, node); in cmd_sub_rem()
2502 get_child_node(ctx->xml, pps, "Credential/DigitalCertificate")) { in cmd_sub_rem()
2513 node = get_child_node(ctx->xml, pps, "SubscriptionUpdate/URI"); in cmd_sub_rem()
2515 sub_rem_uri = xml_node_get_text(ctx->xml, node); in cmd_sub_rem()
2544 xml_node_get_text_free(ctx->xml, sub_rem_uri); in cmd_sub_rem()
2545 xml_node_get_text_free(ctx->xml, cred_username); in cmd_sub_rem()
2547 xml_node_free(ctx->xml, pps); in cmd_sub_rem()
2612 pps = node_from_file(ctx->xml, pps_fname); in cmd_pol_upd()
2620 node = get_child_node(ctx->xml, pps, "HomeSP/FQDN"); in cmd_pol_upd()
2625 tmp = xml_node_get_text(ctx->xml, node); in cmd_pol_upd()
2631 xml_node_get_text_free(ctx->xml, tmp); in cmd_pol_upd()
2638 node = get_child_node(ctx->xml, pps, in cmd_pol_upd()
2642 tmp = xml_node_get_text(ctx->xml, node); in cmd_pol_upd()
2660 get_child_node(ctx->xml, pps, "Credential/DigitalCertificate")) { in cmd_pol_upd()
2671 node = get_child_node(ctx->xml, pps, "Policy/PolicyUpdate/URI"); in cmd_pol_upd()
2673 uri = xml_node_get_text(ctx->xml, node); in cmd_pol_upd()
2692 xml_node_get_text_free(ctx->xml, uri); in cmd_pol_upd()
2693 xml_node_get_text_free(ctx->xml, cred_username); in cmd_pol_upd()
2695 xml_node_free(ctx->xml, pps); in cmd_pol_upd()
2918 ctx->xml = xml_node_init_ctx(ctx, NULL); in init_ctx()
2919 if (ctx->xml == NULL) in init_ctx()
2922 devinfo = node_from_file(ctx->xml, "devinfo.xml"); in init_ctx()
2928 devid = get_node(ctx->xml, devinfo, "DevId"); in init_ctx()
2930 char *tmp = xml_node_get_text(ctx->xml, devid); in init_ctx()
2933 xml_node_get_text_free(ctx->xml, tmp); in init_ctx()
2936 xml_node_free(ctx->xml, devinfo); in init_ctx()
2943 ctx->http = http_init_ctx(ctx, ctx->xml); in init_ctx()
2945 xml_node_deinit_ctx(ctx->xml); in init_ctx()
2960 xml_node_deinit_ctx(ctx->xml); in deinit_ctx()