From 43df4cc2ca684befd9dc08678cb93d2cf8257ca6 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 5 Dec 2009 21:00:52 +0200 Subject: [PATCH] Move milenage.[ch] into src/crypto --- hostapd/Makefile | 2 +- src/{hlr_auc_gw => crypto}/milenage.c | 0 src/{hlr_auc_gw => crypto}/milenage.h | 0 src/eap_peer/eap_aka.c | 2 +- src/eap_peer/eap_sim.c | 6 ++---- src/hlr_auc_gw/hlr_auc_gw.c | 2 +- wpa_supplicant/Makefile | 2 +- 7 files changed, 6 insertions(+), 8 deletions(-) rename src/{hlr_auc_gw => crypto}/milenage.c (100%) rename src/{hlr_auc_gw => crypto}/milenage.h (100%) diff --git a/hostapd/Makefile b/hostapd/Makefile index 6524ff019..5ca65534d 100644 --- a/hostapd/Makefile +++ b/hostapd/Makefile @@ -721,7 +721,7 @@ ifdef TLS_FUNCS LIBS_n += -lcrypto endif -HOBJS += ../src/hlr_auc_gw/hlr_auc_gw.o ../src/utils/common.o ../src/utils/wpa_debug.o ../src/utils/os_$(CONFIG_OS).o ../src/utils/wpabuf.o ../src/hlr_auc_gw/milenage.o +HOBJS += ../src/hlr_auc_gw/hlr_auc_gw.o ../src/utils/common.o ../src/utils/wpa_debug.o ../src/utils/os_$(CONFIG_OS).o ../src/utils/wpabuf.o ../src/crypto/milenage.o HOBJS += ../src/crypto/aes-encblock.o ifdef CONFIG_INTERNAL_AES HOBJS += ../src/crypto/aes-internal.o diff --git a/src/hlr_auc_gw/milenage.c b/src/crypto/milenage.c similarity index 100% rename from src/hlr_auc_gw/milenage.c rename to src/crypto/milenage.c diff --git a/src/hlr_auc_gw/milenage.h b/src/crypto/milenage.h similarity index 100% rename from src/hlr_auc_gw/milenage.h rename to src/crypto/milenage.h diff --git a/src/eap_peer/eap_aka.c b/src/eap_peer/eap_aka.c index f00031e1a..182f01a5e 100644 --- a/src/eap_peer/eap_aka.c +++ b/src/eap_peer/eap_aka.c @@ -19,7 +19,7 @@ #include "crypto/crypto.h" #include "crypto/sha1.h" #include "crypto/sha256.h" -#include "hlr_auc_gw/milenage.h" +#include "crypto/milenage.h" #include "eap_common/eap_sim_common.h" #include "eap_config.h" #include "eap_i.h" diff --git a/src/eap_peer/eap_sim.c b/src/eap_peer/eap_sim.c index 5e30d1f7e..3d8afb22f 100644 --- a/src/eap_peer/eap_sim.c +++ b/src/eap_peer/eap_sim.c @@ -15,13 +15,11 @@ #include "includes.h" #include "common.h" +#include "pcsc_funcs.h" +#include "crypto/milenage.h" #include "eap_peer/eap_i.h" #include "eap_config.h" -#include "pcsc_funcs.h" #include "eap_common/eap_sim_common.h" -#ifdef CONFIG_SIM_SIMULATOR -#include "hlr_auc_gw/milenage.h" -#endif /* CONFIG_SIM_SIMULATOR */ struct eap_sim_data { diff --git a/src/hlr_auc_gw/hlr_auc_gw.c b/src/hlr_auc_gw/hlr_auc_gw.c index e31890354..36934aa97 100644 --- a/src/hlr_auc_gw/hlr_auc_gw.c +++ b/src/hlr_auc_gw/hlr_auc_gw.c @@ -47,7 +47,7 @@ #include #include "common.h" -#include "milenage.h" +#include "crypto/milenage.h" static const char *default_socket_path = "/tmp/hlr_auc_gw.sock"; static const char *socket_path; diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile index 3cb88540b..abd207644 100644 --- a/wpa_supplicant/Makefile +++ b/wpa_supplicant/Makefile @@ -670,7 +670,7 @@ NEED_MILENAGE=y endif ifdef NEED_MILENAGE -OBJS += ../src/hlr_auc_gw/milenage.o +OBJS += ../src/crypto/milenage.o endif ifdef CONFIG_PKCS12