Move EAP-SIM DB conditional build into hostapd
This commit is contained in:
parent
655702f38d
commit
5c90d47657
2 changed files with 4 additions and 20 deletions
|
@ -328,12 +328,12 @@ static void hostapd_cleanup(struct hostapd_data *hapd)
|
|||
}
|
||||
#endif /* EAP_TLS_FUNCS */
|
||||
|
||||
#ifdef EAP_SERVER
|
||||
#if defined(EAP_SERVER_SIM) || defined(EAP_SERVER_AKA)
|
||||
if (hapd->eap_sim_db_priv) {
|
||||
eap_sim_db_deinit(hapd->eap_sim_db_priv);
|
||||
hapd->eap_sim_db_priv = NULL;
|
||||
}
|
||||
#endif /* EAP_SERVER */
|
||||
#endif /* EAP_SERVER_SIM || EAP_SERVER_AKA */
|
||||
|
||||
if (hapd->interface_added &&
|
||||
hostapd_bss_remove(hapd, hapd->conf->iface)) {
|
||||
|
@ -1430,7 +1430,7 @@ hostapd_alloc_bss_data(struct hostapd_iface *hapd_iface,
|
|||
}
|
||||
#endif /* EAP_TLS_FUNCS */
|
||||
|
||||
#ifdef EAP_SERVER
|
||||
#if defined(EAP_SERVER_SIM) || defined(EAP_SERVER_AKA)
|
||||
if (hapd->conf->eap_sim_db) {
|
||||
hapd->eap_sim_db_priv =
|
||||
eap_sim_db_init(hapd->conf->eap_sim_db,
|
||||
|
@ -1441,7 +1441,7 @@ hostapd_alloc_bss_data(struct hostapd_iface *hapd_iface,
|
|||
goto fail;
|
||||
}
|
||||
}
|
||||
#endif /* EAP_SERVER */
|
||||
#endif /* EAP_SERVER_SIM || EAP_SERVER_AKA */
|
||||
|
||||
hapd->driver = hapd->iconf->driver;
|
||||
|
||||
|
|
|
@ -15,8 +15,6 @@
|
|||
#ifndef EAP_SIM_DB_H
|
||||
#define EAP_SIM_DB_H
|
||||
|
||||
#if defined(EAP_SERVER_SIM) || defined(EAP_SERVER_AKA)
|
||||
|
||||
#include "eap_common/eap_sim_common.h"
|
||||
|
||||
/* Identity prefixes */
|
||||
|
@ -90,18 +88,4 @@ int eap_sim_db_resynchronize(void *priv, const u8 *identity,
|
|||
size_t identity_len, const u8 *auts,
|
||||
const u8 *_rand);
|
||||
|
||||
#else /* EAP_SERVER_SIM || EAP_SERVER_AKA */
|
||||
static inline void *
|
||||
eap_sim_db_init(const char *config,
|
||||
void (*get_complete_cb)(void *ctx, void *session_ctx),
|
||||
void *ctx)
|
||||
{
|
||||
return (void *) 1;
|
||||
}
|
||||
|
||||
static inline void eap_sim_db_deinit(void *priv)
|
||||
{
|
||||
}
|
||||
#endif /* EAP_SERVER_SIM || EAP_SERVER_AKA */
|
||||
|
||||
#endif /* EAP_SIM_DB_H */
|
||||
|
|
Loading…
Reference in a new issue