Lines Matching refs:xml
80 char *str = xml_node_to_str(ctx->xml, node); in debug_dump_node()
144 proto = xml_node_get_attr_value(ctx->xml, getcert, in osu_get_certificate()
152 xml_node_get_attr_value_free(ctx->xml, proto); in osu_get_certificate()
155 xml_node_get_attr_value_free(ctx->xml, proto); in osu_get_certificate()
157 node = get_node(ctx->xml, getcert, "enrollmentServerURI"); in osu_get_certificate()
160 xml_node_get_attr_value_free(ctx->xml, proto); in osu_get_certificate()
163 url = xml_node_get_text(ctx->xml, node); in osu_get_certificate()
171 node = get_node(ctx->xml, getcert, "estUserID"); in osu_get_certificate()
177 user = xml_node_get_text(ctx->xml, node); in osu_get_certificate()
186 node = get_node(ctx->xml, getcert, "estPassword"); in osu_get_certificate()
192 pw = xml_node_get_base64_text(ctx->xml, node, NULL); in osu_get_certificate()
210 xml_node_get_text_free(ctx->xml, url); in osu_get_certificate()
211 xml_node_get_text_free(ctx->xml, user); in osu_get_certificate()
212 xml_node_get_text_free(ctx->xml, pw); in osu_get_certificate()
229 fingerprint = xml_node_get_text(ctx->xml, cert); in process_est_cert()
235 xml_node_get_text_free(ctx->xml, fingerprint); in process_est_cert()
238 xml_node_get_text_free(ctx->xml, fingerprint); in process_est_cert()
316 url_node = get_node(ctx->xml, params, "CertURL"); in download_cert()
317 hash_node = get_node(ctx->xml, params, "CertSHA256Fingerprint"); in download_cert()
320 url = xml_node_get_text(ctx->xml, url_node); in download_cert()
321 hash = xml_node_get_text(ctx->xml, hash_node); in download_cert()
323 xml_node_get_text_free(ctx->xml, url); in download_cert()
324 xml_node_get_text_free(ctx->xml, hash); in download_cert()
334 xml_node_get_text_free(ctx->xml, hash); in download_cert()
337 xml_node_get_text_free(ctx->xml, hash); in download_cert()
346 xml_node_get_text_free(ctx->xml, url); in download_cert()
401 pps = node_from_file(ctx->xml, pps_fname); in cmd_dl_osu_ca()
407 node = get_child_node(ctx->xml, pps, in cmd_dl_osu_ca()
411 xml_node_free(ctx->xml, pps); in cmd_dl_osu_ca()
416 xml_node_free(ctx->xml, pps); in cmd_dl_osu_ca()
428 pps = node_from_file(ctx->xml, pps_fname); in cmd_dl_polupd_ca()
434 node = get_child_node(ctx->xml, pps, in cmd_dl_polupd_ca()
438 xml_node_free(ctx->xml, pps); in cmd_dl_polupd_ca()
443 xml_node_free(ctx->xml, pps); in cmd_dl_polupd_ca()
455 pps = node_from_file(ctx->xml, pps_fname); in cmd_dl_aaa_ca()
461 node = get_child_node(ctx->xml, pps, in cmd_dl_aaa_ca()
465 xml_node_free(ctx->xml, pps); in cmd_dl_aaa_ca()
469 aaa = xml_node_first_child(ctx->xml, node); in cmd_dl_aaa_ca()
472 xml_node_free(ctx->xml, pps); in cmd_dl_aaa_ca()
477 xml_node_free(ctx->xml, pps); in cmd_dl_aaa_ca()
630 str = xml_node_get_text(ctx->xml, add_mo); in hs20_add_pps_mo()
638 tnds = xml_node_from_buf(ctx->xml, str); in hs20_add_pps_mo()
639 xml_node_get_text_free(ctx->xml, str); in hs20_add_pps_mo()
646 mo = tnds_to_mo(ctx->xml, tnds); in hs20_add_pps_mo()
655 name = xml_node_get_localname(ctx->xml, mo); in hs20_add_pps_mo()
663 cert = get_child_node(ctx->xml, mo, in hs20_add_pps_mo()
667 xml_node_free(ctx->xml, mo); in hs20_add_pps_mo()
673 if (node_to_file(ctx->xml, fname, mo) < 0) { in hs20_add_pps_mo()
675 xml_node_free(ctx->xml, mo); in hs20_add_pps_mo()
678 xml_node_free(ctx->xml, mo); in hs20_add_pps_mo()
703 cert = get_child_node(ctx->xml, pps, in update_pps_file()
715 str = xml_node_to_str(ctx->xml, pps); in update_pps_file()
745 node = get_child_node(ctx->xml, pps, in get_user_pw()
748 *user = xml_node_get_text(ctx->xml, node); in get_user_pw()
750 node = get_child_node(ctx->xml, pps, in get_user_pw()
753 *pw = xml_node_get_base64_text(ctx->xml, node, NULL); in get_user_pw()
755 node = get_child_node(ctx->xml, pps, alt_loc); in get_user_pw()
758 a = get_node(ctx->xml, node, "Username"); in get_user_pw()
760 xml_node_get_text_free(ctx->xml, *user); in get_user_pw()
761 *user = xml_node_get_text(ctx->xml, a); in get_user_pw()
765 a = get_node(ctx->xml, node, "Password"); in get_user_pw()
768 *pw = xml_node_get_base64_text(ctx->xml, a, NULL); in get_user_pw()
791 ssid = get_node(ctx->xml, spe, "SSID"); in set_pps_cred_policy_spe()
794 txt = xml_node_get_text(ctx->xml, ssid); in set_pps_cred_policy_spe()
800 xml_node_get_text_free(ctx->xml, txt); in set_pps_cred_policy_spe()
809 xml_node_for_each_child(ctx->xml, child, spel) { in set_pps_cred_policy_spel()
810 xml_node_for_each_check(ctx->xml, child); in set_pps_cred_policy_spel()
826 node = get_node(ctx->xml, prp, "Priority"); in set_pps_cred_policy_prp()
829 prio = xml_node_get_text(ctx->xml, node); in set_pps_cred_policy_prp()
835 xml_node_get_text_free(ctx->xml, prio); in set_pps_cred_policy_prp()
837 node = get_node(ctx->xml, prp, "Country"); in set_pps_cred_policy_prp()
839 country_buf = xml_node_get_text(ctx->xml, node); in set_pps_cred_policy_prp()
849 node = get_node(ctx->xml, prp, "FQDN_Match"); in set_pps_cred_policy_prp()
852 txt = xml_node_get_text(ctx->xml, node); in set_pps_cred_policy_prp()
867 xml_node_get_text_free(ctx->xml, country_buf); in set_pps_cred_policy_prp()
868 xml_node_get_text_free(ctx->xml, txt); in set_pps_cred_policy_prp()
877 xml_node_for_each_child(ctx->xml, child, prpl) { in set_pps_cred_policy_prpl()
878 xml_node_for_each_check(ctx->xml, child); in set_pps_cred_policy_prpl()
891 node = get_node(ctx->xml, min_backhaul, "NetworkType"); in set_pps_cred_policy_min_backhaul()
897 type = xml_node_get_text(ctx->xml, node); in set_pps_cred_policy_min_backhaul()
908 xml_node_get_text_free(ctx->xml, type); in set_pps_cred_policy_min_backhaul()
911 xml_node_get_text_free(ctx->xml, type); in set_pps_cred_policy_min_backhaul()
913 node = get_node(ctx->xml, min_backhaul, "DLBandwidth"); in set_pps_cred_policy_min_backhaul()
915 dl = xml_node_get_text(ctx->xml, node); in set_pps_cred_policy_min_backhaul()
917 node = get_node(ctx->xml, min_backhaul, "ULBandwidth"); in set_pps_cred_policy_min_backhaul()
919 ul = xml_node_get_text(ctx->xml, node); in set_pps_cred_policy_min_backhaul()
951 xml_node_get_text_free(ctx->xml, dl); in set_pps_cred_policy_min_backhaul()
952 xml_node_get_text_free(ctx->xml, ul); in set_pps_cred_policy_min_backhaul()
963 xml_node_for_each_child(ctx->xml, child, node) { in set_pps_cred_policy_min_backhaul_list()
964 xml_node_for_each_check(ctx->xml, child); in set_pps_cred_policy_min_backhaul_list()
986 node = get_node(ctx->xml, tuple, "IPProtocol"); in set_pps_cred_policy_required_proto_port()
992 proto = xml_node_get_text(ctx->xml, node); in set_pps_cred_policy_required_proto_port()
999 node = get_node(ctx->xml, tuple, "PortNumber"); in set_pps_cred_policy_required_proto_port()
1000 port = node ? xml_node_get_text(ctx->xml, node) : NULL; in set_pps_cred_policy_required_proto_port()
1008 xml_node_get_text_free(ctx->xml, port); in set_pps_cred_policy_required_proto_port()
1016 xml_node_get_text_free(ctx->xml, proto); in set_pps_cred_policy_required_proto_port()
1035 xml_node_for_each_child(ctx->xml, child, node) { in set_pps_cred_policy_required_proto_ports()
1036 xml_node_for_each_check(ctx->xml, child); in set_pps_cred_policy_required_proto_ports()
1045 char *str = xml_node_get_text(ctx->xml, node); in set_pps_cred_policy_max_bss_load()
1051 xml_node_get_text_free(ctx->xml, str); in set_pps_cred_policy_max_bss_load()
1063 xml_node_for_each_child(ctx->xml, child, node) { in set_pps_cred_policy()
1064 xml_node_for_each_check(ctx->xml, child); in set_pps_cred_policy()
1065 name = xml_node_get_localname(ctx->xml, child); in set_pps_cred_policy()
1087 char *str = xml_node_get_text(ctx->xml, node); in set_pps_cred_priority()
1093 xml_node_get_text_free(ctx->xml, str); in set_pps_cred_priority()
1118 ssid_node = get_node(ctx->xml, node, "SSID"); in set_pps_cred_home_sp_network_id()
1124 hessid_node = get_node(ctx->xml, node, "HESSID"); in set_pps_cred_home_sp_network_id()
1126 ssid = xml_node_get_text(ctx->xml, ssid_node); in set_pps_cred_home_sp_network_id()
1129 hessid = hessid_node ? xml_node_get_text(ctx->xml, hessid_node) : NULL; in set_pps_cred_home_sp_network_id()
1138 xml_node_get_text_free(ctx->xml, ssid); in set_pps_cred_home_sp_network_id()
1139 xml_node_get_text_free(ctx->xml, hessid); in set_pps_cred_home_sp_network_id()
1150 xml_node_for_each_child(ctx->xml, child, node) { in set_pps_cred_home_sp_network_ids()
1151 xml_node_for_each_check(ctx->xml, child); in set_pps_cred_home_sp_network_ids()
1160 char *str = xml_node_get_text(ctx->xml, node); in set_pps_cred_home_sp_friendly_name()
1165 xml_node_get_text_free(ctx->xml, str); in set_pps_cred_home_sp_friendly_name()
1172 char *str = xml_node_get_text(ctx->xml, node); in set_pps_cred_home_sp_icon_url()
1177 xml_node_get_text_free(ctx->xml, str); in set_pps_cred_home_sp_icon_url()
1184 char *str = xml_node_get_text(ctx->xml, node); in set_pps_cred_home_sp_fqdn()
1192 xml_node_get_text_free(ctx->xml, str); in set_pps_cred_home_sp_fqdn()
1205 xml_node_for_each_child(ctx->xml, child, node) { in set_pps_cred_home_sp_oi()
1206 xml_node_for_each_check(ctx->xml, child); in set_pps_cred_home_sp_oi()
1207 name = xml_node_get_localname(ctx->xml, child); in set_pps_cred_home_sp_oi()
1209 homeoi = xml_node_get_text(ctx->xml, child); in set_pps_cred_home_sp_oi()
1213 str = xml_node_get_text(ctx->xml, child); in set_pps_cred_home_sp_oi()
1219 xml_node_get_text_free(ctx->xml, str); in set_pps_cred_home_sp_oi()
1242 xml_node_get_text_free(ctx->xml, homeoi); in set_pps_cred_home_sp_oi()
1253 xml_node_for_each_child(ctx->xml, child, node) { in set_pps_cred_home_sp_oi_list()
1254 xml_node_for_each_check(ctx->xml, child); in set_pps_cred_home_sp_oi_list()
1267 xml_node_for_each_child(ctx->xml, child, node) { in set_pps_cred_home_sp_other_partner()
1268 xml_node_for_each_check(ctx->xml, child); in set_pps_cred_home_sp_other_partner()
1269 name = xml_node_get_localname(ctx->xml, child); in set_pps_cred_home_sp_other_partner()
1271 fqdn = xml_node_get_text(ctx->xml, child); in set_pps_cred_home_sp_other_partner()
1287 xml_node_get_text_free(ctx->xml, fqdn); in set_pps_cred_home_sp_other_partner()
1299 xml_node_for_each_child(ctx->xml, child, node) { in set_pps_cred_home_sp_other_partners()
1300 xml_node_for_each_check(ctx->xml, child); in set_pps_cred_home_sp_other_partners()
1309 char *str = xml_node_get_text(ctx->xml, node); in set_pps_cred_home_sp_roaming_consortium_oi()
1316 xml_node_get_text_free(ctx->xml, str); in set_pps_cred_home_sp_roaming_consortium_oi()
1328 xml_node_for_each_child(ctx->xml, child, node) { in set_pps_cred_home_sp()
1329 xml_node_for_each_check(ctx->xml, child); in set_pps_cred_home_sp()
1330 name = xml_node_get_localname(ctx->xml, child); in set_pps_cred_home_sp()
1363 char *str = xml_node_get_text(ctx->xml, node); in set_pps_cred_creation_date()
1368 xml_node_get_text_free(ctx->xml, str); in set_pps_cred_creation_date()
1375 char *str = xml_node_get_text(ctx->xml, node); in set_pps_cred_expiration_date()
1380 xml_node_get_text_free(ctx->xml, str); in set_pps_cred_expiration_date()
1387 char *str = xml_node_get_text(ctx->xml, node); in set_pps_cred_username()
1394 xml_node_get_text_free(ctx->xml, str); in set_pps_cred_username()
1404 pw = xml_node_get_base64_text(ctx->xml, node, &len); in set_pps_cred_password()
1432 char *str = xml_node_get_text(ctx->xml, node); in set_pps_cred_machine_managed()
1438 xml_node_get_text_free(ctx->xml, str); in set_pps_cred_machine_managed()
1445 char *str = xml_node_get_text(ctx->xml, node); in set_pps_cred_soft_token_app()
1451 xml_node_get_text_free(ctx->xml, str); in set_pps_cred_soft_token_app()
1458 char *str = xml_node_get_text(ctx->xml, node); in set_pps_cred_able_to_share()
1464 xml_node_get_text_free(ctx->xml, str); in set_pps_cred_able_to_share()
1471 char *str = xml_node_get_text(ctx->xml, node); in set_pps_cred_eap_method_eap_type()
1494 xml_node_get_text_free(ctx->xml, str); in set_pps_cred_eap_method_eap_type()
1508 char *str = xml_node_get_text(ctx->xml, node); in set_pps_cred_eap_method_inner_method()
1524 xml_node_get_text_free(ctx->xml, str); in set_pps_cred_eap_method_inner_method()
1543 xml_node_for_each_child(ctx->xml, child, node) { in set_pps_cred_eap_method()
1544 xml_node_for_each_check(ctx->xml, child); in set_pps_cred_eap_method()
1545 name = xml_node_get_localname(ctx->xml, child); in set_pps_cred_eap_method()
1565 xml_node_for_each_child(ctx->xml, child, node) { in set_pps_cred_username_password()
1566 xml_node_for_each_check(ctx->xml, child); in set_pps_cred_username_password()
1567 name = xml_node_get_localname(ctx->xml, child); in set_pps_cred_username_password()
1628 char *str = xml_node_get_text(ctx->xml, node); in set_pps_cred_realm()
1638 xml_node_get_text_free(ctx->xml, str); in set_pps_cred_realm()
1659 char *str = xml_node_get_text(ctx->xml, node); in set_pps_cred_check_aaa_cert_status()
1668 xml_node_get_text_free(ctx->xml, str); in set_pps_cred_check_aaa_cert_status()
1681 node = get_node(ctx->xml, sim, "EAPType"); in set_pps_cred_sim()
1686 eaptype = xml_node_get_text(ctx->xml, node); in set_pps_cred_sim()
1693 xml_node_get_text_free(ctx->xml, eaptype); in set_pps_cred_sim()
1713 node = get_node(ctx->xml, sim, "IMSI"); in set_pps_cred_sim()
1718 imsi = xml_node_get_text(ctx->xml, node); in set_pps_cred_sim()
1727 xml_node_get_text_free(ctx->xml, imsi); in set_pps_cred_sim()
1731 str = xml_node_get_text(ctx->xml, node); in set_pps_cred_sim()
1741 xml_node_get_text_free(ctx->xml, str); in set_pps_cred_sim()
1749 xml_node_get_text_free(ctx->xml, imsi); in set_pps_cred_sim()
1770 sim = get_node(ctx->xml, node, "SIM"); in set_pps_cred_credential()
1771 realm = get_node(ctx->xml, node, "Realm"); in set_pps_cred_credential()
1773 xml_node_for_each_child(ctx->xml, child, node) { in set_pps_cred_credential()
1774 xml_node_for_each_check(ctx->xml, child); in set_pps_cred_credential()
1775 name = xml_node_get_localname(ctx->xml, child); in set_pps_cred_credential()
1803 xml_node_for_each_child(ctx->xml, child, cred) { in set_pps_credential()
1804 xml_node_for_each_check(ctx->xml, child); in set_pps_credential()
1805 name = xml_node_get_localname(ctx->xml, child); in set_pps_credential()
1842 xml_node_for_each_child(ctx->xml, child, pps) { in set_pps()
1843 xml_node_for_each_check(ctx->xml, child); in set_pps()
1844 name = xml_node_get_localname(ctx->xml, child); in set_pps()
1846 update_identifier = xml_node_get_text(ctx->xml, child); in set_pps()
1855 xml_node_for_each_child(ctx->xml, child, pps) { in set_pps()
1856 xml_node_for_each_check(ctx->xml, child); in set_pps()
1857 name = xml_node_get_localname(ctx->xml, child); in set_pps()
1879 xml_node_get_text_free(ctx->xml, update_identifier); in set_pps()
1889 pps = node_from_file(ctx->xml, pps_fname); in cmd_set_pps()
1912 xml_node_free(ctx->xml, pps); in cmd_set_pps()
1921 pps = node_from_file(ctx->xml, pps_fname); in cmd_get_fqdn()
1927 node = get_child_node(ctx->xml, pps, "HomeSP/FQDN"); in cmd_get_fqdn()
1929 fqdn = xml_node_get_text(ctx->xml, node); in cmd_get_fqdn()
1931 xml_node_free(ctx->xml, pps); in cmd_get_fqdn()
1939 xml_node_get_text_free(ctx->xml, fqdn); in cmd_get_fqdn()
1943 xml_node_get_text_free(ctx->xml, fqdn); in cmd_get_fqdn()
1953 mo = node_from_file(ctx->xml, in_fname); in cmd_to_tnds()
1959 node = mo_to_tnds(ctx->xml, mo, use_path, urn, NULL); in cmd_to_tnds()
1961 node_to_file(ctx->xml, out_fname, node); in cmd_to_tnds()
1962 xml_node_free(ctx->xml, node); in cmd_to_tnds()
1965 xml_node_free(ctx->xml, mo); in cmd_to_tnds()
1974 tnds = node_from_file(ctx->xml, in_fname); in cmd_from_tnds()
1980 mo = tnds_to_mo(ctx->xml, tnds); in cmd_from_tnds()
1982 node_to_file(ctx->xml, out_fname, mo); in cmd_from_tnds()
1983 xml_node_free(ctx->xml, mo); in cmd_from_tnds()
1986 xml_node_free(ctx->xml, tnds); in cmd_from_tnds()
2612 pps = node_from_file(ctx->xml, pps_fname); in cmd_sub_rem()
2620 node = get_child_node(ctx->xml, pps, "HomeSP/FQDN"); in cmd_sub_rem()
2625 tmp = xml_node_get_text(ctx->xml, node); in cmd_sub_rem()
2631 xml_node_get_text_free(ctx->xml, tmp); in cmd_sub_rem()
2638 node = get_child_node(ctx->xml, pps, in cmd_sub_rem()
2642 tmp = xml_node_get_text(ctx->xml, node); in cmd_sub_rem()
2660 get_child_node(ctx->xml, pps, "Credential/DigitalCertificate")) { in cmd_sub_rem()
2671 node = get_child_node(ctx->xml, pps, "SubscriptionUpdate/URI"); in cmd_sub_rem()
2673 sub_rem_uri = xml_node_get_text(ctx->xml, node); in cmd_sub_rem()
2702 xml_node_get_text_free(ctx->xml, sub_rem_uri); in cmd_sub_rem()
2703 xml_node_get_text_free(ctx->xml, cred_username); in cmd_sub_rem()
2705 xml_node_free(ctx->xml, pps); in cmd_sub_rem()
2777 pps = node_from_file(ctx->xml, pps_fname); in cmd_pol_upd()
2785 node = get_child_node(ctx->xml, pps, "HomeSP/FQDN"); in cmd_pol_upd()
2790 tmp = xml_node_get_text(ctx->xml, node); in cmd_pol_upd()
2796 xml_node_get_text_free(ctx->xml, tmp); in cmd_pol_upd()
2803 node = get_child_node(ctx->xml, pps, in cmd_pol_upd()
2807 tmp = xml_node_get_text(ctx->xml, node); in cmd_pol_upd()
2825 get_child_node(ctx->xml, pps, "Credential/DigitalCertificate")) { in cmd_pol_upd()
2836 node = get_child_node(ctx->xml, pps, "Policy/PolicyUpdate/URI"); in cmd_pol_upd()
2838 uri = xml_node_get_text(ctx->xml, node); in cmd_pol_upd()
2857 xml_node_get_text_free(ctx->xml, uri); in cmd_pol_upd()
2858 xml_node_get_text_free(ctx->xml, cred_username); in cmd_pol_upd()
2860 xml_node_free(ctx->xml, pps); in cmd_pol_upd()
3083 ctx->xml = xml_node_init_ctx(ctx, NULL); in init_ctx()
3084 if (ctx->xml == NULL) in init_ctx()
3087 devinfo = node_from_file(ctx->xml, "devinfo.xml"); in init_ctx()
3089 devid = get_node(ctx->xml, devinfo, "DevId"); in init_ctx()
3091 char *tmp = xml_node_get_text(ctx->xml, devid); in init_ctx()
3095 xml_node_get_text_free(ctx->xml, tmp); in init_ctx()
3098 xml_node_free(ctx->xml, devinfo); in init_ctx()
3101 ctx->http = http_init_ctx(ctx, ctx->xml); in init_ctx()
3103 xml_node_deinit_ctx(ctx->xml); in init_ctx()
3118 xml_node_deinit_ctx(ctx->xml); in deinit_ctx()