From: Jouni Malinen Date: Sat, 1 Aug 2015 12:49:34 +0000 (+0300) Subject: Comment out EAPOL-Key WEP support in CONFIG_FIPS=y build X-Git-Tag: hostap_2_5~252 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e03e56c3d6474e9353b82ed5da6540d83ed63e14;p=thirdparty%2Fhostap.git Comment out EAPOL-Key WEP support in CONFIG_FIPS=y build This avoids a call to hmac_md5() to fix the build. The EAPOL-Key frame TX code is not applicable for any FIPS mode operation, so the simplest approach is to remove this from the build. Signed-off-by: Jouni Malinen --- diff --git a/src/ap/ieee802_1x.c b/src/ap/ieee802_1x.c index c52c4150b..d29318a89 100644 --- a/src/ap/ieee802_1x.c +++ b/src/ap/ieee802_1x.c @@ -125,6 +125,8 @@ void ieee802_1x_set_sta_authorized(struct hostapd_data *hapd, } +#ifndef CONFIG_FIPS + static void ieee802_1x_tx_key_one(struct hostapd_data *hapd, struct sta_info *sta, int idx, int broadcast, @@ -259,6 +261,8 @@ static void ieee802_1x_tx_key(struct hostapd_data *hapd, struct sta_info *sta) } } +#endif /* CONFIG_FIPS */ + const char *radius_mode_txt(struct hostapd_data *hapd) { @@ -2023,9 +2027,11 @@ static void _ieee802_1x_abort_auth(void *ctx, void *sta_ctx) static void _ieee802_1x_tx_key(void *ctx, void *sta_ctx) { +#ifndef CONFIG_FIPS struct hostapd_data *hapd = ctx; struct sta_info *sta = sta_ctx; ieee802_1x_tx_key(hapd, sta); +#endif /* CONFIG_FIPS */ }