Lines Matching refs:id

785 static void set_pps_cred_policy_spe(struct hs20_osu_client *ctx, int id,  in set_pps_cred_policy_spe()  argument
798 if (set_cred_quoted(ctx->ifname, id, "excluded_ssid", txt) < 0) in set_pps_cred_policy_spe()
804 static void set_pps_cred_policy_spel(struct hs20_osu_client *ctx, int id, in set_pps_cred_policy_spel() argument
811 set_pps_cred_policy_spe(ctx, id, child); in set_pps_cred_policy_spel()
816 static void set_pps_cred_policy_prp(struct hs20_osu_client *ctx, int id, in set_pps_cred_policy_prp() argument
864 if (set_cred_quoted(ctx->ifname, id, "roaming_partner", val) < 0) in set_pps_cred_policy_prp()
872 static void set_pps_cred_policy_prpl(struct hs20_osu_client *ctx, int id, in set_pps_cred_policy_prpl() argument
879 set_pps_cred_policy_prp(ctx, id, child); in set_pps_cred_policy_prpl()
884 static void set_pps_cred_policy_min_backhaul(struct hs20_osu_client *ctx, int id, in set_pps_cred_policy_min_backhaul() argument
935 set_cred(ctx->ifname, id, "min_dl_bandwidth_home", dl) < 0) in set_pps_cred_policy_min_backhaul()
938 set_cred(ctx->ifname, id, "min_ul_bandwidth_home", ul) < 0) in set_pps_cred_policy_min_backhaul()
942 set_cred(ctx->ifname, id, "min_dl_bandwidth_roaming", dl) < in set_pps_cred_policy_min_backhaul()
946 set_cred(ctx->ifname, id, "min_ul_bandwidth_roaming", ul) < in set_pps_cred_policy_min_backhaul()
957 int id, xml_node_t *node) in set_pps_cred_policy_min_backhaul_list() argument
965 set_pps_cred_policy_min_backhaul(ctx, id, child); in set_pps_cred_policy_min_backhaul_list()
970 static void set_pps_cred_policy_update(struct hs20_osu_client *ctx, int id, in set_pps_cred_policy_update() argument
979 int id, xml_node_t *tuple) in set_pps_cred_policy_required_proto_port() argument
1021 if (set_cred(ctx->ifname, id, "req_conn_capab", buf) < 0) in set_pps_cred_policy_required_proto_port()
1029 int id, xml_node_t *node) in set_pps_cred_policy_required_proto_ports() argument
1037 set_pps_cred_policy_required_proto_port(ctx, id, child); in set_pps_cred_policy_required_proto_ports()
1042 static void set_pps_cred_policy_max_bss_load(struct hs20_osu_client *ctx, int id, in set_pps_cred_policy_max_bss_load() argument
1049 if (set_cred(ctx->ifname, id, "max_bss_load", str) < 0) in set_pps_cred_policy_max_bss_load()
1055 static void set_pps_cred_policy(struct hs20_osu_client *ctx, int id, in set_pps_cred_policy() argument
1067 set_pps_cred_policy_prpl(ctx, id, child); in set_pps_cred_policy()
1069 set_pps_cred_policy_min_backhaul_list(ctx, id, child); in set_pps_cred_policy()
1071 set_pps_cred_policy_update(ctx, id, child); in set_pps_cred_policy()
1073 set_pps_cred_policy_spel(ctx, id, child); in set_pps_cred_policy()
1075 set_pps_cred_policy_required_proto_ports(ctx, id, child); in set_pps_cred_policy()
1077 set_pps_cred_policy_max_bss_load(ctx, id, child); in set_pps_cred_policy()
1084 static void set_pps_cred_priority(struct hs20_osu_client *ctx, int id, in set_pps_cred_priority() argument
1091 if (set_cred(ctx->ifname, id, "sp_priority", str) < 0) in set_pps_cred_priority()
1098 int id, xml_node_t *node) in set_pps_cred_aaa_server_trust_root() argument
1104 static void set_pps_cred_sub_update(struct hs20_osu_client *ctx, int id, in set_pps_cred_sub_update() argument
1113 int id, xml_node_t *node) in set_pps_cred_home_sp_network_id() argument
1144 int id, xml_node_t *node) in set_pps_cred_home_sp_network_ids() argument
1152 set_pps_cred_home_sp_network_id(ctx, id, child); in set_pps_cred_home_sp_network_ids()
1158 int id, xml_node_t *node) in set_pps_cred_home_sp_friendly_name() argument
1170 int id, xml_node_t *node) in set_pps_cred_home_sp_icon_url() argument
1181 static void set_pps_cred_home_sp_fqdn(struct hs20_osu_client *ctx, int id, in set_pps_cred_home_sp_fqdn() argument
1188 if (set_cred_quoted(ctx->ifname, id, "domain", str) < 0) in set_pps_cred_home_sp_fqdn()
1190 if (set_cred_quoted(ctx->ifname, id, "domain_suffix_match", str) < 0) in set_pps_cred_home_sp_fqdn()
1196 static void set_pps_cred_home_sp_oi(struct hs20_osu_client *ctx, int id, in set_pps_cred_home_sp_oi() argument
1234 if (set_cred_quoted(ctx->ifname, id, "required_home_ois", in set_pps_cred_home_sp_oi()
1239 if (set_cred_quoted(ctx->ifname, id, "home_ois", homeoi) < 0) in set_pps_cred_home_sp_oi()
1247 static void set_pps_cred_home_sp_oi_list(struct hs20_osu_client *ctx, int id, in set_pps_cred_home_sp_oi_list() argument
1256 set_pps_cred_home_sp_oi(ctx, id, child); in set_pps_cred_home_sp_oi_list()
1262 int id, xml_node_t *node) in set_pps_cred_home_sp_other_partner() argument
1285 if (set_cred_quoted(ctx->ifname, id, "domain", fqdn) < 0) in set_pps_cred_home_sp_other_partner()
1293 int id, in set_pps_cred_home_sp_other_partners() argument
1302 set_pps_cred_home_sp_other_partner(ctx, id, child); in set_pps_cred_home_sp_other_partners()
1308 struct hs20_osu_client *ctx, int id, xml_node_t *node) in set_pps_cred_home_sp_roaming_consortium_oi() argument
1314 if (set_cred_quoted(ctx->ifname, id, "roaming_consortiums", in set_pps_cred_home_sp_roaming_consortium_oi()
1321 static void set_pps_cred_home_sp(struct hs20_osu_client *ctx, int id, in set_pps_cred_home_sp() argument
1333 set_pps_cred_home_sp_network_ids(ctx, id, child); in set_pps_cred_home_sp()
1335 set_pps_cred_home_sp_friendly_name(ctx, id, child); in set_pps_cred_home_sp()
1337 set_pps_cred_home_sp_icon_url(ctx, id, child); in set_pps_cred_home_sp()
1339 set_pps_cred_home_sp_fqdn(ctx, id, child); in set_pps_cred_home_sp()
1341 set_pps_cred_home_sp_oi_list(ctx, id, child); in set_pps_cred_home_sp()
1343 set_pps_cred_home_sp_other_partners(ctx, id, child); in set_pps_cred_home_sp()
1345 set_pps_cred_home_sp_roaming_consortium_oi(ctx, id, in set_pps_cred_home_sp()
1353 static void set_pps_cred_sub_params(struct hs20_osu_client *ctx, int id, in set_pps_cred_sub_params() argument
1361 static void set_pps_cred_creation_date(struct hs20_osu_client *ctx, int id, in set_pps_cred_creation_date() argument
1373 static void set_pps_cred_expiration_date(struct hs20_osu_client *ctx, int id, in set_pps_cred_expiration_date() argument
1385 static void set_pps_cred_username(struct hs20_osu_client *ctx, int id, in set_pps_cred_username() argument
1393 if (set_cred_quoted(ctx->ifname, id, "username", str) < 0) in set_pps_cred_username()
1399 static void set_pps_cred_password(struct hs20_osu_client *ctx, int id, in set_pps_cred_password() argument
1424 if (set_cred(ctx->ifname, id, "password", hex) < 0) in set_pps_cred_password()
1430 static void set_pps_cred_machine_managed(struct hs20_osu_client *ctx, int id, in set_pps_cred_machine_managed() argument
1443 static void set_pps_cred_soft_token_app(struct hs20_osu_client *ctx, int id, in set_pps_cred_soft_token_app() argument
1456 static void set_pps_cred_able_to_share(struct hs20_osu_client *ctx, int id, in set_pps_cred_able_to_share() argument
1470 int id, xml_node_t *node) in set_pps_cred_eap_method_eap_type() argument
1501 if (set_cred(ctx->ifname, id, "eap", eap_method) < 0) in set_pps_cred_eap_method_eap_type()
1507 int id, xml_node_t *node) in set_pps_cred_eap_method_inner_method() argument
1531 if (set_cred_quoted(ctx->ifname, id, "phase2", phase2) < 0) in set_pps_cred_eap_method_inner_method()
1536 static void set_pps_cred_eap_method(struct hs20_osu_client *ctx, int id, in set_pps_cred_eap_method() argument
1548 set_pps_cred_eap_method_eap_type(ctx, id, child); in set_pps_cred_eap_method()
1550 set_pps_cred_eap_method_inner_method(ctx, id, child); in set_pps_cred_eap_method()
1558 static void set_pps_cred_username_password(struct hs20_osu_client *ctx, int id, in set_pps_cred_username_password() argument
1570 set_pps_cred_username(ctx, id, child); in set_pps_cred_username_password()
1572 set_pps_cred_password(ctx, id, child); in set_pps_cred_username_password()
1574 set_pps_cred_machine_managed(ctx, id, child); in set_pps_cred_username_password()
1576 set_pps_cred_soft_token_app(ctx, id, child); in set_pps_cred_username_password()
1578 set_pps_cred_able_to_share(ctx, id, child); in set_pps_cred_username_password()
1580 set_pps_cred_eap_method(ctx, id, child); in set_pps_cred_username_password()
1588 static void set_pps_cred_digital_cert(struct hs20_osu_client *ctx, int id, in set_pps_cred_digital_cert() argument
1600 if (set_cred_quoted(ctx->ifname, id, "username", "cert") < 0) { in set_pps_cred_digital_cert()
1609 if (set_cred_quoted(ctx->ifname, id, "client_cert", buf) < 0) { in set_pps_cred_digital_cert()
1619 if (set_cred_quoted(ctx->ifname, id, "private_key", buf) < 0) { in set_pps_cred_digital_cert()
1626 static void set_pps_cred_realm(struct hs20_osu_client *ctx, int id, in set_pps_cred_realm() argument
1637 if (set_cred_quoted(ctx->ifname, id, "realm", str) < 0) in set_pps_cred_realm()
1650 if (set_cred_quoted(ctx->ifname, id, "ca_cert", buf) < 0) { in set_pps_cred_realm()
1658 int id, xml_node_t *node) in set_pps_cred_check_aaa_cert_status() argument
1667 set_cred(ctx->ifname, id, "ocsp", "2") < 0) in set_pps_cred_check_aaa_cert_status()
1673 static void set_pps_cred_sim(struct hs20_osu_client *ctx, int id, in set_pps_cred_sim() argument
1698 if (set_cred(ctx->ifname, id, "eap", "SIM") < 0) in set_pps_cred_sim()
1702 if (set_cred(ctx->ifname, id, "eap", "AKA") < 0) in set_pps_cred_sim()
1706 if (set_cred(ctx->ifname, id, "eap", "AKA'") < 0) in set_pps_cred_sim()
1752 if (set_cred_quoted(ctx->ifname, id, "imsi", buf) < 0) in set_pps_cred_sim()
1755 if (set_cred_quoted(ctx->ifname, id, "milenage", in set_pps_cred_sim()
1763 static void set_pps_cred_credential(struct hs20_osu_client *ctx, int id, in set_pps_cred_credential() argument
1778 set_pps_cred_creation_date(ctx, id, child); in set_pps_cred_credential()
1780 set_pps_cred_expiration_date(ctx, id, child); in set_pps_cred_credential()
1782 set_pps_cred_username_password(ctx, id, child); in set_pps_cred_credential()
1784 set_pps_cred_digital_cert(ctx, id, child, fqdn); in set_pps_cred_credential()
1786 set_pps_cred_realm(ctx, id, child, fqdn, sim != NULL); in set_pps_cred_credential()
1788 set_pps_cred_check_aaa_cert_status(ctx, id, child); in set_pps_cred_credential()
1790 set_pps_cred_sim(ctx, id, child, realm); in set_pps_cred_credential()
1798 static void set_pps_credential(struct hs20_osu_client *ctx, int id, in set_pps_credential() argument
1808 set_pps_cred_policy(ctx, id, child); in set_pps_credential()
1810 set_pps_cred_priority(ctx, id, child); in set_pps_credential()
1812 set_pps_cred_aaa_server_trust_root(ctx, id, child); in set_pps_credential()
1814 set_pps_cred_sub_update(ctx, id, child); in set_pps_credential()
1816 set_pps_cred_home_sp(ctx, id, child); in set_pps_credential()
1818 set_pps_cred_sub_params(ctx, id, child); in set_pps_credential()
1820 set_pps_cred_credential(ctx, id, child, fqdn); in set_pps_credential()
1833 int id; in set_pps() local
1861 id = add_cred(ctx->ifname); in set_pps()
1862 if (id < 0) { in set_pps()
1869 set_cred(ctx->ifname, id, "update_identifier", in set_pps()
1872 if (set_cred_quoted(ctx->ifname, id, "provisioning_sp", fqdn) < in set_pps()
1876 set_pps_credential(ctx, id, child, fqdn); in set_pps()
1992 int id; member
2142 icon->id = atoi(buf + 5); in parse_osu_providers()
2197 int id; in osu_connect() local
2222 id = add_network(ifname); in osu_connect()
2223 if (id < 0) in osu_connect()
2225 if (set_network_quoted(ifname, id, "ssid", ssid) < 0) in osu_connect()
2235 if (ssid2 && set_network_quoted(ifname, id, "ssid", ssid2) < 0) in osu_connect()
2238 if (set_network(ifname, id, "proto", "OSEN") < 0 || in osu_connect()
2239 set_network(ifname, id, "key_mgmt", "OSEN") < 0 || in osu_connect()
2240 set_network(ifname, id, "pairwise", "CCMP") < 0 || in osu_connect()
2241 set_network(ifname, id, "group", "GTK_NOT_USED CCMP") < 0 || in osu_connect()
2242 set_network(ifname, id, "eap", "WFA-UNAUTH-TLS") < 0 || in osu_connect()
2243 set_network(ifname, id, "ocsp", "2") < 0 || in osu_connect()
2244 set_network_quoted(ifname, id, "identity", osu_nai) < 0 || in osu_connect()
2245 set_network_quoted(ifname, id, "ca_cert", fname) < 0) in osu_connect()
2252 if (set_network(ifname, id, "key_mgmt", "NONE") < 0) in osu_connect()
2262 snprintf(buf, sizeof(buf), "SELECT_NETWORK %d", id); in osu_connect()
2276 snprintf(buf, sizeof(buf), "REMOVE_NETWORK %d", id); in osu_connect()
2306 snprintf(buf, sizeof(buf), "REMOVE_NETWORK %d", id); in osu_connect()
2407 last->icon[j].id, in cmd_osu_select()
2482 dir, last->icon[j].id, in cmd_osu_select()