diff options
author | Jouni Malinen <j@w1.fi> | 2009-12-06 14:37:46 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2009-12-06 14:37:46 +0200 |
commit | be473f3f09f515afaddaedc639ea20ae2a608269 (patch) | |
tree | c00f2a0cabdbe3dd3ca7cbcee97ad848c82ff165 /hostapd | |
parent | 507d87930c672a224b99556a2b5fe4357db641c1 (diff) | |
download | external_wpa_supplicant_8_ti-be473f3f09f515afaddaedc639ea20ae2a608269.zip external_wpa_supplicant_8_ti-be473f3f09f515afaddaedc639ea20ae2a608269.tar.gz external_wpa_supplicant_8_ti-be473f3f09f515afaddaedc639ea20ae2a608269.tar.bz2 |
Split crypto_internal.c into parts to clean up build
This makes it easier to make src/libcrypto.a and only link in
code that is really used.
Diffstat (limited to 'hostapd')
-rw-r--r-- | hostapd/Makefile | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/hostapd/Makefile b/hostapd/Makefile index 05961be..6f8eef0 100644 --- a/hostapd/Makefile +++ b/hostapd/Makefile @@ -329,6 +329,7 @@ OBJS += ../src/eap_common/eap_ikev2_common.o ../src/eap_common/ikev2_common.o NEED_DH_GROUPS=y NEED_DH_GROUPS_ALL=y NEED_MODEXP=y +NEED_CIPHER=y endif ifdef CONFIG_EAP_TNC @@ -445,6 +446,7 @@ ifndef CONFIG_CRYPTO CONFIG_CRYPTO=internal endif ifdef TLS_FUNCS +OBJS += ../src/crypto/crypto_internal-rsa.o OBJS += ../src/crypto/tls_internal.o OBJS += ../src/tls/tlsv1_common.o OBJS += ../src/tls/tlsv1_record.o @@ -461,10 +463,16 @@ OBJS += ../src/tls/pkcs8.o NEED_BASE64=y NEED_TLS_PRF=y NEED_MODEXP=y +NEED_CIPHER=y CFLAGS += -DCONFIG_TLS_INTERNAL CFLAGS += -DCONFIG_TLS_INTERNAL_SERVER endif +ifdef NEED_CIPHER +NEED_DES=y +OBJS += ../src/crypto/crypto_internal-cipher.o +endif ifdef NEED_MODEXP +OBJS += ../src/crypto/crypto_internal-modexp.o OBJS += ../src/tls/bignum.o endif ifeq ($(CONFIG_CRYPTO), libtomcrypt) @@ -532,10 +540,6 @@ CONFIG_INTERNAL_RC4=y endif endif -ifdef NEED_MODEXP -CFLAGS += -DCONFIG_MODEXP -endif - AESOBJS = # none so far ifdef CONFIG_INTERNAL_AES AESOBJS += ../src/crypto/aes-internal.o ../src/crypto/aes-internal-enc.o |