mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-29 13:59:24 +01:00
eapol: Add eapol_sm_set_user_data
This commit is contained in:
parent
d075d49a96
commit
ddcbb3f2a8
@ -436,6 +436,7 @@ struct eapol_sm {
|
||||
uint8_t snonce[32];
|
||||
uint8_t anonce[32];
|
||||
uint8_t ptk[64];
|
||||
void *user_data;
|
||||
bool have_snonce:1;
|
||||
bool have_replay:1;
|
||||
};
|
||||
@ -498,6 +499,11 @@ void eapol_sm_set_own_rsn(struct eapol_sm *sm, const uint8_t *rsn_ie,
|
||||
sm->own_rsn = l_memdup(rsn_ie, len);
|
||||
}
|
||||
|
||||
void eapol_sm_set_user_data(struct eapol_sm *sm, void *user_data)
|
||||
{
|
||||
sm->user_data = user_data;
|
||||
}
|
||||
|
||||
void eapol_start(uint32_t ifindex, struct eapol_sm *sm)
|
||||
{
|
||||
sm->ifindex = ifindex;
|
||||
|
@ -146,6 +146,7 @@ void eapol_sm_set_ap_rsn(struct eapol_sm *sm, const uint8_t *rsn_ie,
|
||||
size_t len);
|
||||
void eapol_sm_set_own_rsn(struct eapol_sm *sm, const uint8_t *rsn_ie,
|
||||
size_t len);
|
||||
void eapol_sm_set_user_data(struct eapol_sm *sm, void *user_data);
|
||||
struct l_io *eapol_open_pae(uint32_t index);
|
||||
|
||||
void eapol_start(uint32_t ifindex, struct eapol_sm *sm);
|
||||
|
Loading…
Reference in New Issue
Block a user