aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap/ieee802_11_shared.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2016-12-17 19:59:40 (GMT)
committerJouni Malinen <j@w1.fi>2016-12-17 20:07:57 (GMT)
commit42b847ac1ed656383f13646db84568fb23cd45c4 (patch)
tree793933ecbf298c0f717de667a688d60dba74d354 /src/ap/ieee802_11_shared.c
parent29062f29322a219f9ff56c073635a83fb149612c (diff)
downloadhostap-42b847ac1ed656383f13646db84568fb23cd45c4.zip
hostap-42b847ac1ed656383f13646db84568fb23cd45c4.tar.gz
hostap-42b847ac1ed656383f13646db84568fb23cd45c4.tar.bz2
FILS: Fix hashed realm name derivation
P802.11ai/D7.0 changed from CRC32 to SHA256 as the hash algorithm for the FILS realm name. Update the implementation to match that change. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/ap/ieee802_11_shared.c')
-rw-r--r--src/ap/ieee802_11_shared.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/ap/ieee802_11_shared.c b/src/ap/ieee802_11_shared.c
index 97b1d67..d20ddc7 100644
--- a/src/ap/ieee802_11_shared.c
+++ b/src/ap/ieee802_11_shared.c
@@ -639,10 +639,7 @@ u8 * hostapd_eid_fils_indic(struct hostapd_data *hapd, u8 *eid, int hessid)
pos += ETH_ALEN;
}
if (hapd->conf->erp_domain) {
- u16 hash;
-
- hash = fils_domain_name_hash(hapd->conf->erp_domain);
- WPA_PUT_LE16(pos, hash);
+ fils_domain_name_hash(hapd->conf->erp_domain, pos);
pos += 2;
}
*len = pos - len - 1;