From 12d529eddbc8ad28c352a0a47a99f06bea599581 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Thu, 19 Mar 2015 20:50:10 -0500 Subject: [PATCH] eapol: Rearrange data structure members The order follows the rough order of initialization, as information becomes available from the calling code or via steps of the 4-way handshake. --- src/eapol.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/eapol.c b/src/eapol.c index c17c7b7e..98137dcb 100644 --- a/src/eapol.c +++ b/src/eapol.c @@ -426,15 +426,15 @@ struct eapol_key *eapol_create_ptk_4_of_4( } struct eapol_sm { - uint8_t pmk[32]; - uint64_t replay_counter; uint8_t sta_addr[6]; - uint8_t snonce[32]; uint8_t aa_addr[6]; - uint8_t anonce[32]; - uint8_t ptk[64]; uint8_t *ap_rsn; uint8_t *own_rsn; + uint8_t pmk[32]; + uint64_t replay_counter; + uint8_t snonce[32]; + uint8_t anonce[32]; + uint8_t ptk[64]; bool have_snonce:1; bool have_replay:1; };