Lines Matching refs:xml

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