eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit 5576722d2930c720c5ae867b194d5119b0bf7169
parent 45824ff7ebbeb14f2a672859634ef1050283375e
Author: Denis Kenzior <denkenz@gmail.com>
Date:   Thu,  2 Apr 2020 18:16:41 -0500

eapol: Make sure igtk key index is uint16_t

Fixes: 1cc7346d6aaf ("handshake: Change signature of (i)gtk setters")

Diffstat:
Msrc/eapol.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/eapol.c b/src/eapol.c @@ -943,7 +943,7 @@ static void eapol_install_gtk(struct eapol_sm *sm, uint8_t gtk_key_index, sm->installed_gtk_len = gtk_len; } -static void eapol_install_igtk(struct eapol_sm *sm, uint8_t igtk_key_index, +static void eapol_install_igtk(struct eapol_sm *sm, uint16_t igtk_key_index, const uint8_t *igtk, size_t igtk_len) { /* @@ -1504,7 +1504,7 @@ static void eapol_handle_ptk_3_of_4(struct eapol_sm *sm, const uint8_t *rsne; const uint8_t *optional_rsne = NULL; uint8_t gtk_key_index; - uint8_t igtk_key_index; + uint16_t igtk_key_index; l_debug("ifindex=%u", sm->handshake->ifindex); @@ -1799,7 +1799,7 @@ static void eapol_handle_gtk_1_of_2(struct eapol_sm *sm, uint8_t gtk_key_index; const uint8_t *igtk; size_t igtk_len; - uint8_t igtk_key_index; + uint16_t igtk_key_index; if (!eapol_verify_gtk_1_of_2(ek, sm->handshake->wpa_ie, sm->mic_len)) { handshake_failed(sm, MMPDU_REASON_CODE_UNSPECIFIED);