Home | History | Annotate | Download | only in client

Lines Matching defs:node

73 		     xml_node_t *node)
75 char *str = xml_node_to_str(ctx->xml, node);
105 xml_node_t *node;
123 node = get_node(ctx->xml, getcert, "enrollmentServerURI");
124 if (node == NULL) {
125 wpa_printf(MSG_INFO, "Could not find enrollmentServerURI node");
129 url = xml_node_get_text(ctx->xml, node);
137 node = get_node(ctx->xml, getcert, "estUserID");
138 if (node == NULL && !ctx->client_cert_present) {
139 wpa_printf(MSG_INFO, "Could not find estUserID node");
142 if (node) {
143 user = xml_node_get_text(ctx->xml, node);
152 node = get_node(ctx->xml, getcert, "estPassword");
153 if (node == NULL && !ctx->client_cert_present) {
154 wpa_printf(MSG_INFO, "Could not find estPassword node");
157 if (node) {
158 pw = xml_node_get_base64_text(ctx->xml, node, NULL);
363 xml_node_t *pps, *node;
372 node = get_child_node(ctx->xml, pps,
374 if (node == NULL) {
380 ret = download_cert(ctx, node, ca_fname);
390 xml_node_t *pps, *node;
399 node = get_child_node(ctx->xml, pps,
401 if (node == NULL) {
407 ret = download_cert(ctx, node, ca_fname);
417 xml_node_t *pps, *node, *aaa;
426 node = get_child_node(ctx->xml, pps,
428 if (node == NULL) {
434 aaa = xml_node_first_child(ctx->xml, node);
542 *pos = '\0'; /* remove trailing slash and PPS node name */
613 wpa_printf(MSG_INFO, "[hs20] Unexpected PPS MO root node name '%s'",
695 xml_node_t *node;
697 node = get_child_node(ctx->xml, pps,
699 if (node)
700 *user = xml_node_get_text(ctx->xml, node);
702 node = get_child_node(ctx->xml, pps,
704 if (node)
705 *pw = xml_node_get_base64_text(ctx->xml, node, NULL);
707 node = get_child_node(ctx->xml, pps, alt_loc);
708 if (node) {
710 a = get_node(ctx->xml, node, "Username");
717 a = get_node(ctx->xml, node, "Password");
771 xml_node_t *node;
778 node = get_node(ctx->xml, prp, "Priority");
779 if (node == NULL)
781 prio = xml_node_get_text(ctx->xml, node);
789 node = get_node(ctx->xml, prp, "Country");
790 if (node) {
791 country_buf = xml_node_get_text(ctx->xml, node);
801 node = get_node(ctx->xml, prp, "FQDN_Match");
802 if (node == NULL)
804 txt = xml_node_get_text(ctx->xml, node);
839 xml_node_t *node;
843 node = get_node(ctx->xml, min_backhaul, "NetworkType");
844 if (node == NULL) {
845 wpa_printf(MSG_INFO, "Ignore MinBackhaulThreshold without mandatory NetworkType node");
849 type = xml_node_get_text(ctx->xml, node);
865 node = get_node(ctx->xml, min_backhaul, "DLBandwidth");
866 if (node)
867 dl = xml_node_get_text(ctx->xml, node);
869 node = get_node(ctx->xml, min_backhaul, "ULBandwidth");
870 if (node)
871 ul = xml_node_get_text(ctx->xml, node);
909 int id, xml_node_t *node)
915 xml_node_for_each_child(ctx->xml, child, node) {
923 xml_node_t *node)
933 xml_node_t *node;
938 node = get_node(ctx->xml, tuple, "IPProtocol");
939 if (node == NULL) {
940 wpa_printf(MSG_INFO, "Ignore RequiredProtoPortTuple without mandatory IPProtocol node");
944 proto = xml_node_get_text(ctx->xml, node);
951 node = get_node(ctx->xml, tuple, "PortNumber");
952 port = node ? xml_node_get_text(ctx->xml, node) : NULL;
981 int id, xml_node_t *node)
987 xml_node_for_each_child(ctx->xml, child, node) {
995 xml_node_t *node)
997 char *str = xml_node_get_text(ctx->xml, node);
1008 xml_node_t *node)
1015 xml_node_for_each_child(ctx->xml, child, node) {
1031 wpa_printf(MSG_INFO, "Unknown Policy node '%s'", name);
1037 xml_node_t *node)
1039 char *str = xml_node_get_text(ctx->xml, node);
1050 int id, xml_node_t *node)
1057 xml_node_t *node)
1065 int id, xml_node_t *node)
1070 ssid_node = get_node(ctx->xml, node, "SSID");
1072 wpa_printf(MSG_INFO, "Ignore HomeSP/NetworkID without mandatory SSID node");
1076 hessid_node = get_node(ctx->xml, node, "HESSID");
1096 int id, xml_node_t *node)
1102 xml_node_for_each_child(ctx->xml, child, node) {
1110 int id, xml_node_t *node)
1112 char *str = xml_node_get_text(ctx->xml, node);
1122 int id, xml_node_t *node)
1124 char *str = xml_node_get_text(ctx->xml, node);
1134 xml_node_t *node)
1136 char *str = xml_node_get_text(ctx->xml, node);
1149 xml_node_t *node)
1157 xml_node_for_each_child(ctx->xml, child, node) {
1173 wpa_printf(MSG_INFO, "Unknown HomeOIList node '%s'",
1200 xml_node_t *node)
1206 xml_node_for_each_child(ctx->xml, child, node) {
1214 int id, xml_node_t *node)
1220 xml_node_for_each_child(ctx->xml, child, node) {
1228 wpa_printf(MSG_INFO, "Unknown OtherHomePartners node '%s'",
1238 wpa_printf(MSG_INFO, "Failed to set cred domain for OtherHomePartners node");
1246 xml_node_t *node)
1252 xml_node_for_each_child(ctx->xml, child, node) {
1260 struct hs20_osu_client *ctx, int id, xml_node_t *node)
1262 char *str = xml_node_get_text(ctx->xml, node);
1272 xml_node_t *node)
1279 xml_node_for_each_child(ctx->xml, child, node) {
1298 wpa_printf(MSG_INFO, "Unknown HomeSP node '%s'", name);
1304 xml_node_t *node)
1312 xml_node_t *node)
1314 char *str = xml_node_get_text(ctx->xml, node);
1324 xml_node_t *node)
1326 char *str = xml_node_get_text(ctx->xml, node);
1336 xml_node_t *node)
1338 char *str = xml_node_get_text(ctx->xml, node);
1350 xml_node_t *node)
1355 pw = xml_node_get_base64_text(ctx->xml, node, &len);
1381 xml_node_t *node)
1383 char *str = xml_node_get_text(ctx->xml, node);
1394 xml_node_t *node)
1396 char *str = xml_node_get_text(ctx->xml, node);
1407 xml_node_t *node)
1409 char *str = xml_node_get_text(ctx->xml, node);
1420 xml_node_t *node)
1427 xml_node_t *node)
1434 xml_node_for_each_child(ctx->xml, child, node) {
1450 wpa_printf(MSG_INFO, "Unknown Credential/UsernamePassword node '%s'",
1457 xml_node_t *node, const char *fqdn)
1488 xml_node_t *node, const char *fqdn, int sim)
1490 char *str = xml_node_get_text(ctx->xml, node);
1516 int id, xml_node_t *node)
1518 char *str = xml_node_get_text(ctx->xml, node);
1534 xml_node_t *node;
1540 node = get_node(ctx->xml, sim, "EAPType");
1541 if (node == NULL) {
1542 wpa_printf(MSG_INFO, "No SIM/EAPType node in credential");
1545 eaptype = xml_node_get_text(ctx->xml, node);
1572 node = get_node(ctx->xml, sim, "IMSI");
1573 if (node == NULL) {
1574 wpa_printf(MSG_INFO, "No SIM/IMSI node in credential");
1577 imsi = xml_node_get_text(ctx->xml, node);
1590 str = xml_node_get_text(ctx->xml, node);
1622 xml_node_t *node, const char *fqdn)
1629 sim = get_node(ctx->xml, node, "SIM");
1630 realm = get_node(ctx->xml, node, "Realm");
1632 xml_node_for_each_child(ctx->xml, child, node) {
1650 wpa_printf(MSG_INFO, "Unknown Credential node '%s'",
1680 wpa_printf(MSG_INFO, "Unknown credential node '%s'",
1777 xml_node_t *pps, *node;
1786 node = get_child_node(ctx->xml, pps, "HomeSP/FQDN");
1787 if (node)
1788 fqdn = xml_node_get_text(ctx->xml, node);
1810 xml_node_t *mo, *node;
1818 node = mo_to_tnds(ctx->xml, mo, use_path, urn, NULL);
1819 if (node) {
1820 node_to_file(ctx->xml, out_fname, node);
1821 xml_node_free(ctx->xml, node);
2349 xml_node_t *pps, *node;
2414 node = get_child_node(ctx->xml, pps, "HomeSP/FQDN");
2415 if (node == NULL) {
2419 tmp = xml_node_get_text(ctx->xml, node);
2432 node = get_child_node(ctx->xml, pps,
2434 if (node) {
2436 tmp = xml_node_get_text(ctx->xml, node);
2465 node = get_child_node(ctx->xml, pps, "SubscriptionUpdate/URI");
2466 if (node) {
2467 sub_rem_uri = xml_node_get_text(ctx->xml, node);
2507 xml_node_t *node;
2571 node = get_child_node(ctx->xml, pps, "HomeSP/FQDN");
2572 if (node == NULL) {
2576 tmp = xml_node_get_text(ctx->xml, node);
2589 node = get_child_node(ctx->xml, pps,
2591 if (node) {
2593 tmp = xml_node_get_text(ctx->xml, node);
2622 node = get_child_node(ctx->xml, pps, "Policy/PolicyUpdate/URI");
2623 if (node) {
2624 uri = xml_node_get_text(ctx->xml, node);