Home
last modified time | relevance | path

Searched refs:r0kh (Results 1 – 4 of 4) sorted by relevance

/hostap-latest/src/ap/
Dwpa_auth_ft.c1559 static int wpa_ft_rrb_init_r0kh_seq(struct ft_remote_r0kh *r0kh) in wpa_ft_rrb_init_r0kh_seq() argument
1561 if (r0kh->seq) in wpa_ft_rrb_init_r0kh_seq()
1564 r0kh->seq = os_zalloc(sizeof(*r0kh->seq)); in wpa_ft_rrb_init_r0kh_seq()
1565 if (!r0kh->seq) { in wpa_ft_rrb_init_r0kh_seq()
1570 dl_list_init(&r0kh->seq->rx.queue); in wpa_ft_rrb_init_r0kh_seq()
1581 struct ft_remote_r0kh *r0kh; in wpa_ft_rrb_lookup_r0kh() local
1587 r0kh = *wpa_auth->conf.r0kh_list; in wpa_ft_rrb_lookup_r0kh()
1589 r0kh = NULL; in wpa_ft_rrb_lookup_r0kh()
1590 for (; r0kh; r0kh = r0kh->next) { in wpa_ft_rrb_lookup_r0kh()
1591 if (r0kh->id_len == 1 && r0kh->id[0] == '*') in wpa_ft_rrb_lookup_r0kh()
[all …]
Dap_config.c722 struct ft_remote_r0kh *r0kh, *r0kh_prev; in hostapd_config_clear_rxkhs() local
725 r0kh = conf->r0kh_list; in hostapd_config_clear_rxkhs()
727 while (r0kh) { in hostapd_config_clear_rxkhs()
728 r0kh_prev = r0kh; in hostapd_config_clear_rxkhs()
729 r0kh = r0kh->next; in hostapd_config_clear_rxkhs()
/hostap-latest/hostapd/
Dconfig_file.c936 struct ft_remote_r0kh *r0kh; in add_r0kh() local
939 r0kh = os_zalloc(sizeof(*r0kh)); in add_r0kh()
940 if (r0kh == NULL) in add_r0kh()
948 if (next == NULL || hwaddr_aton(pos, r0kh->addr)) { in add_r0kh()
950 os_free(r0kh); in add_r0kh()
960 os_free(r0kh); in add_r0kh()
963 r0kh->id_len = next - pos - 1; in add_r0kh()
964 os_memcpy(r0kh->id, pos, r0kh->id_len); in add_r0kh()
967 if (rkh_derive_key(pos, r0kh->key, sizeof(r0kh->key)) < 0) { in add_r0kh()
969 os_free(r0kh); in add_r0kh()
[all …]
Dctrl_iface.c1489 struct ft_remote_r0kh *r0kh; in hostapd_ctrl_iface_get_rxkhs() local
1496 for (r0kh = conf->r0kh_list; r0kh; r0kh=r0kh->next) { in hostapd_ctrl_iface_get_rxkhs()
1499 MAC2STR(r0kh->addr)); in hostapd_ctrl_iface_get_rxkhs()
1503 if (r0kh->id_len + 1 >= (size_t) (end - pos)) in hostapd_ctrl_iface_get_rxkhs()
1505 os_memcpy(pos, r0kh->id, r0kh->id_len); in hostapd_ctrl_iface_get_rxkhs()
1506 pos += r0kh->id_len; in hostapd_ctrl_iface_get_rxkhs()
1508 pos += wpa_snprintf_hex(pos, end - pos, r0kh->key, in hostapd_ctrl_iface_get_rxkhs()
1509 sizeof(r0kh->key)); in hostapd_ctrl_iface_get_rxkhs()