mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 10:18:21 -05:00
macsec: Export eapSessionId
Signed-off-by: leiwei <leiwei@codeaurora.org>
This commit is contained in:
parent
0ee6885dae
commit
a872bfcf31
@ -2581,6 +2581,20 @@ const u8 * ieee802_1x_get_key(struct eapol_state_machine *sm, size_t *len)
|
||||
}
|
||||
|
||||
|
||||
#ifdef CONFIG_MACSEC
|
||||
const u8 * ieee802_1x_get_session_id(struct eapol_state_machine *sm,
|
||||
size_t *len)
|
||||
{
|
||||
*len = 0;
|
||||
if (!sm || !sm->eap_if)
|
||||
return NULL;
|
||||
|
||||
*len = sm->eap_if->eapSessionIdLen;
|
||||
return sm->eap_if->eapSessionId;
|
||||
}
|
||||
#endif /* CONFIG_MACSEC */
|
||||
|
||||
|
||||
void ieee802_1x_notify_port_enabled(struct eapol_state_machine *sm,
|
||||
int enabled)
|
||||
{
|
||||
|
@ -39,6 +39,8 @@ u8 * ieee802_1x_get_radius_class(struct eapol_state_machine *sm, size_t *len,
|
||||
int idx);
|
||||
struct wpabuf * ieee802_1x_get_radius_cui(struct eapol_state_machine *sm);
|
||||
const u8 * ieee802_1x_get_key(struct eapol_state_machine *sm, size_t *len);
|
||||
const u8 * ieee802_1x_get_session_id(struct eapol_state_machine *sm,
|
||||
size_t *len);
|
||||
void ieee802_1x_notify_port_enabled(struct eapol_state_machine *sm,
|
||||
int enabled);
|
||||
void ieee802_1x_notify_port_valid(struct eapol_state_machine *sm,
|
||||
|
Loading…
Reference in New Issue
Block a user