aboutsummaryrefslogtreecommitdiffstats
path: root/src/eapol_supp
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2017-02-19 10:28:33 (GMT)
committerJouni Malinen <j@w1.fi>2017-02-19 10:28:33 (GMT)
commite01cf2afc948222963fd182ca271b79ac7389dd3 (patch)
treeab4666efa6cbcd56ada6bd4a4dfe2bc7e706f10f /src/eapol_supp
parenta8e25deeb8959f047b632f88605f5311db3aeddc (diff)
downloadhostap-e01cf2afc948222963fd182ca271b79ac7389dd3.zip
hostap-e01cf2afc948222963fd182ca271b79ac7389dd3.tar.gz
hostap-e01cf2afc948222963fd182ca271b79ac7389dd3.tar.bz2
Define eapol_sm_get_eap_proxy_imsi() only with CONFIG_EAP_PROXY=y
This function is called only from locations within ifdef CONFIG_EAP_PROXY, so there is no need to try to cover the not-defined case here and the function can simply be removed completely if CONFIG_EAP_PROXY=y is not used. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/eapol_supp')
-rw-r--r--src/eapol_supp/eapol_supp_sm.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/eapol_supp/eapol_supp_sm.c b/src/eapol_supp/eapol_supp_sm.c
index 0dc7ea6..c8bb303 100644
--- a/src/eapol_supp/eapol_supp_sm.c
+++ b/src/eapol_supp/eapol_supp_sm.c
@@ -2155,16 +2155,14 @@ int eapol_sm_failed(struct eapol_sm *sm)
}
+#ifdef CONFIG_EAP_PROXY
int eapol_sm_get_eap_proxy_imsi(struct eapol_sm *sm, char *imsi, size_t *len)
{
-#ifdef CONFIG_EAP_PROXY
if (sm->eap_proxy == NULL)
return -1;
return eap_proxy_get_imsi(sm->eap_proxy, imsi, len);
-#else /* CONFIG_EAP_PROXY */
- return -1;
-#endif /* CONFIG_EAP_PROXY */
}
+#endif /* CONFIG_EAP_PROXY */
void eapol_sm_erp_flush(struct eapol_sm *sm)