3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 06:29:23 +01:00

eapol: cache ERP keys on EAP success

This commit is contained in:
James Prestwood 2019-04-17 14:53:43 -07:00 committed by Denis Kenzior
parent 61ab1d4f5f
commit 433373fe28

View File

@ -39,6 +39,7 @@
#include "src/eap.h" #include "src/eap.h"
#include "src/handshake.h" #include "src/handshake.h"
#include "src/watchlist.h" #include "src/watchlist.h"
#include "src/erp.h"
struct l_queue *state_machines; struct l_queue *state_machines;
struct l_queue *preauths; struct l_queue *preauths;
@ -2006,6 +2007,11 @@ static void eapol_eap_results_cb(const uint8_t *msk_data, size_t msk_len,
handshake_state_set_pmk(sm->handshake, msk_data, msk_len); handshake_state_set_pmk(sm->handshake, msk_data, msk_len);
if (sm->handshake->support_fils && emsk_data && session_id)
erp_cache_add(eap_get_identity(sm->eap), session_id,
session_len, emsk_data, emsk_len,
(const char *)sm->handshake->ssid);
return; return;
msk_short: msk_short: