Lines Matching defs:node
78 xml_node_t *node)
80 char *str = xml_node_to_str(ctx->xml, node);
139 xml_node_t *node;
157 node = get_node(ctx->xml, getcert, "enrollmentServerURI");
158 if (node == NULL) {
159 wpa_printf(MSG_INFO, "Could not find enrollmentServerURI node");
163 url = xml_node_get_text(ctx->xml, node);
171 node = get_node(ctx->xml, getcert, "estUserID");
172 if (node == NULL && !ctx->client_cert_present) {
173 wpa_printf(MSG_INFO, "Could not find estUserID node");
176 if (node) {
177 user = xml_node_get_text(ctx->xml, node);
186 node = get_node(ctx->xml, getcert, "estPassword");
187 if (node == NULL && !ctx->client_cert_present) {
188 wpa_printf(MSG_INFO, "Could not find estPassword node");
191 if (node) {
192 pw = xml_node_get_base64_text(ctx->xml, node, NULL);
398 xml_node_t *pps, *node;
407 node = get_child_node(ctx->xml, pps,
409 if (node == NULL) {
415 ret = download_cert(ctx, node, ca_fname);
425 xml_node_t *pps, *node;
434 node = get_child_node(ctx->xml, pps,
436 if (node == NULL) {
442 ret = download_cert(ctx, node, ca_fname);
452 xml_node_t *pps, *node, *aaa;
461 node = get_child_node(ctx->xml, pps,
463 if (node == NULL) {
469 aaa = xml_node_first_child(ctx->xml, node);
582 *pos = '\0'; /* remove trailing slash and PPS node name */
657 wpa_printf(MSG_INFO, "[hs20] Unexpected PPS MO root node name '%s'",
717 wpa_printf(MSG_ERROR, "No node found");
743 xml_node_t *node;
745 node = get_child_node(ctx->xml, pps,
747 if (node)
748 *user = xml_node_get_text(ctx->xml, node);
750 node = get_child_node(ctx->xml, pps,
752 if (node)
753 *pw = xml_node_get_base64_text(ctx->xml, node, NULL);
755 node = get_child_node(ctx->xml, pps, alt_loc);
756 if (node) {
758 a = get_node(ctx->xml, node, "Username");
765 a = get_node(ctx->xml, node, "Password");
819 xml_node_t *node;
826 node = get_node(ctx->xml, prp, "Priority");
827 if (node == NULL)
829 prio = xml_node_get_text(ctx->xml, node);
837 node = get_node(ctx->xml, prp, "Country");
838 if (node) {
839 country_buf = xml_node_get_text(ctx->xml, node);
849 node = get_node(ctx->xml, prp, "FQDN_Match");
850 if (node == NULL)
852 txt = xml_node_get_text(ctx->xml, node);
887 xml_node_t *node;
891 node = get_node(ctx->xml, min_backhaul, "NetworkType");
892 if (node == NULL) {
893 wpa_printf(MSG_INFO, "Ignore MinBackhaulThreshold without mandatory NetworkType node");
897 type = xml_node_get_text(ctx->xml, node);
913 node = get_node(ctx->xml, min_backhaul, "DLBandwidth");
914 if (node)
915 dl = xml_node_get_text(ctx->xml, node);
917 node = get_node(ctx->xml, min_backhaul, "ULBandwidth");
918 if (node)
919 ul = xml_node_get_text(ctx->xml, node);
957 int id, xml_node_t *node)
963 xml_node_for_each_child(ctx->xml, child, node) {
971 xml_node_t *node)
981 xml_node_t *node;
986 node = get_node(ctx->xml, tuple, "IPProtocol");
987 if (node == NULL) {
988 wpa_printf(MSG_INFO, "Ignore RequiredProtoPortTuple without mandatory IPProtocol node");
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;
1029 int id, xml_node_t *node)
1035 xml_node_for_each_child(ctx->xml, child, node) {
1043 xml_node_t *node)
1045 char *str = xml_node_get_text(ctx->xml, node);
1056 xml_node_t *node)
1063 xml_node_for_each_child(ctx->xml, child, node) {
1079 wpa_printf(MSG_INFO, "Unknown Policy node '%s'", name);
1085 xml_node_t *node)
1087 char *str = xml_node_get_text(ctx->xml, node);
1098 int id, xml_node_t *node)
1105 xml_node_t *node)
1113 int id, xml_node_t *node)
1118 ssid_node = get_node(ctx->xml, node, "SSID");
1120 wpa_printf(MSG_INFO, "Ignore HomeSP/NetworkID without mandatory SSID node");
1124 hessid_node = get_node(ctx->xml, node, "HESSID");
1144 int id, xml_node_t *node)
1150 xml_node_for_each_child(ctx->xml, child, node) {
1158 int id, xml_node_t *node)
1160 char *str = xml_node_get_text(ctx->xml, node);
1170 int id, xml_node_t *node)
1172 char *str = xml_node_get_text(ctx->xml, node);
1182 xml_node_t *node)
1184 char *str = xml_node_get_text(ctx->xml, node);
1197 xml_node_t *node)
1205 xml_node_for_each_child(ctx->xml, child, node) {
1221 wpa_printf(MSG_INFO, "Unknown HomeOIList node '%s'",
1248 xml_node_t *node)
1254 xml_node_for_each_child(ctx->xml, child, node) {
1262 int id, xml_node_t *node)
1268 xml_node_for_each_child(ctx->xml, child, node) {
1276 wpa_printf(MSG_INFO, "Unknown OtherHomePartners node '%s'",
1286 wpa_printf(MSG_INFO, "Failed to set cred domain for OtherHomePartners node");
1294 xml_node_t *node)
1300 xml_node_for_each_child(ctx->xml, child, node) {
1308 struct hs20_osu_client *ctx, int id, xml_node_t *node)
1310 char *str = xml_node_get_text(ctx->xml, node);
1322 xml_node_t *node)
1329 xml_node_for_each_child(ctx->xml, child, node) {
1348 wpa_printf(MSG_INFO, "Unknown HomeSP node '%s'", name);
1354 xml_node_t *node)
1362 xml_node_t *node)
1364 char *str = xml_node_get_text(ctx->xml, node);
1374 xml_node_t *node)
1376 char *str = xml_node_get_text(ctx->xml, node);
1386 xml_node_t *node)
1388 char *str = xml_node_get_text(ctx->xml, node);
1400 xml_node_t *node)
1405 pw = xml_node_get_base64_text(ctx->xml, node, &len);
1431 xml_node_t *node)
1433 char *str = xml_node_get_text(ctx->xml, node);
1444 xml_node_t *node)
1446 char *str = xml_node_get_text(ctx->xml, node);
1457 xml_node_t *node)
1459 char *str = xml_node_get_text(ctx->xml, node);
1470 int id, xml_node_t *node)
1472 char *str = xml_node_get_text(ctx->xml, node);
1507 int id, xml_node_t *node)
1509 char *str = xml_node_get_text(ctx->xml, node);
1537 xml_node_t *node)
1544 xml_node_for_each_child(ctx->xml, child, node) {
1552 wpa_printf(MSG_INFO, "Unknown Credential/UsernamePassword/EAPMethod node '%s'",
1559 xml_node_t *node)
1566 xml_node_for_each_child(ctx->xml, child, node) {
1582 wpa_printf(MSG_INFO, "Unknown Credential/UsernamePassword node '%s'",
1589 xml_node_t *node, const char *fqdn)
1627 xml_node_t *node, const char *fqdn, int sim)
1629 char *str = xml_node_get_text(ctx->xml, node);
1658 int id, xml_node_t *node)
1660 char *str = xml_node_get_text(ctx->xml, node);
1676 xml_node_t *node;
1682 node = get_node(ctx->xml, sim, "EAPType");
1683 if (node == NULL) {
1684 wpa_printf(MSG_INFO, "No SIM/EAPType node in credential");
1687 eaptype = xml_node_get_text(ctx->xml, node);
1714 node = get_node(ctx->xml, sim, "IMSI");
1715 if (node == NULL) {
1716 wpa_printf(MSG_INFO, "No SIM/IMSI node in credential");
1719 imsi = xml_node_get_text(ctx->xml, node);
1732 str = xml_node_get_text(ctx->xml, node);
1764 xml_node_t *node, const char *fqdn)
1771 sim = get_node(ctx->xml, node, "SIM");
1772 realm = get_node(ctx->xml, node, "Realm");
1774 xml_node_for_each_child(ctx->xml, child, node) {
1792 wpa_printf(MSG_INFO, "Unknown Credential node '%s'",
1822 wpa_printf(MSG_INFO, "Unknown credential node '%s'",
1919 xml_node_t *pps, *node;
1928 node = get_child_node(ctx->xml, pps, "HomeSP/FQDN");
1929 if (node)
1930 fqdn = xml_node_get_text(ctx->xml, node);
1952 xml_node_t *mo, *node;
1960 node = mo_to_tnds(ctx->xml, mo, use_path, urn, NULL);
1961 if (node) {
1962 node_to_file(ctx->xml, out_fname, node);
1963 xml_node_free(ctx->xml, node);
2592 xml_node_t *pps, *node;
2657 node = get_child_node(ctx->xml, pps, "HomeSP/FQDN");
2658 if (node == NULL) {
2662 tmp = xml_node_get_text(ctx->xml, node);
2675 node = get_child_node(ctx->xml, pps,
2677 if (node) {
2679 tmp = xml_node_get_text(ctx->xml, node);
2708 node = get_child_node(ctx->xml, pps, "SubscriptionUpdate/URI");
2709 if (node) {
2710 sub_rem_uri = xml_node_get_text(ctx->xml, node);
2751 xml_node_t *node;
2822 node = get_child_node(ctx->xml, pps, "HomeSP/FQDN");
2823 if (node == NULL) {
2827 tmp = xml_node_get_text(ctx->xml, node);
2840 node = get_child_node(ctx->xml, pps,
2842 if (node) {
2844 tmp = xml_node_get_text(ctx->xml, node);
2873 node = get_child_node(ctx->xml, pps, "Policy/PolicyUpdate/URI");
2874 if (node) {
2875 uri = xml_node_get_text(ctx->xml, node);