Fix EAP-AKA server build without EAP-SIM

This commit is contained in:
Jouni Malinen 2009-10-11 22:23:05 +03:00
parent 38b462868c
commit 34c9910dc7

View file

@ -15,7 +15,7 @@
#ifndef EAP_SIM_DB_H #ifndef EAP_SIM_DB_H
#define EAP_SIM_DB_H #define EAP_SIM_DB_H
#ifdef EAP_SERVER_SIM #if defined(EAP_SERVER_SIM) || defined(EAP_SERVER_AKA)
#include "eap_common/eap_sim_common.h" #include "eap_common/eap_sim_common.h"
@ -90,7 +90,7 @@ int eap_sim_db_resynchronize(void *priv, const u8 *identity,
size_t identity_len, const u8 *auts, size_t identity_len, const u8 *auts,
const u8 *_rand); const u8 *_rand);
#else /* EAP_SERVER_SIM */ #else /* EAP_SERVER_SIM || EAP_SERVER_AKA */
static inline void * static inline void *
eap_sim_db_init(const char *config, eap_sim_db_init(const char *config,
void (*get_complete_cb)(void *ctx, void *session_ctx), void (*get_complete_cb)(void *ctx, void *session_ctx),
@ -102,6 +102,6 @@ eap_sim_db_init(const char *config,
static inline void eap_sim_db_deinit(void *priv) static inline void eap_sim_db_deinit(void *priv)
{ {
} }
#endif /* EAP_SERVER_SIM */ #endif /* EAP_SERVER_SIM || EAP_SERVER_AKA */
#endif /* EAP_SIM_DB_H */ #endif /* EAP_SIM_DB_H */