Home
last modified time | relevance | path

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

/freebsd/contrib/wpa/src/ap/
H A 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 …]
H A Dap_config.c715 struct ft_remote_r0kh *r0kh, *r0kh_prev; in hostapd_config_clear_rxkhs() local
718 r0kh = conf->r0kh_list; in hostapd_config_clear_rxkhs()
720 while (r0kh) { in hostapd_config_clear_rxkhs()
721 r0kh_prev = r0kh; in hostapd_config_clear_rxkhs()
722 r0kh = r0kh->next; in hostapd_config_clear_rxkhs()
/freebsd/contrib/wpa/hostapd/
H A 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 …]
H A Dctrl_iface.c1484 struct ft_remote_r0kh *r0kh; in hostapd_ctrl_iface_get_rxkhs() local
1491 for (r0kh = conf->r0kh_list; r0kh; r0kh=r0kh->next) { in hostapd_ctrl_iface_get_rxkhs()
1494 MAC2STR(r0kh->addr)); in hostapd_ctrl_iface_get_rxkhs()
1498 if (r0kh->id_len + 1 >= (size_t) (end - pos)) in hostapd_ctrl_iface_get_rxkhs()
1500 os_memcpy(pos, r0kh->id, r0kh->id_len); in hostapd_ctrl_iface_get_rxkhs()
1501 pos += r0kh->id_len; in hostapd_ctrl_iface_get_rxkhs()
1503 pos += wpa_snprintf_hex(pos, end - pos, r0kh->key, in hostapd_ctrl_iface_get_rxkhs()
1504 sizeof(r0kh->key)); in hostapd_ctrl_iface_get_rxkhs()