Fix crypto config for minimal builds

This commit is contained in:
Jouni Malinen 2009-10-11 20:19:12 +03:00
parent 000bbd77c9
commit 0dba0175c5
2 changed files with 22 additions and 7 deletions

View file

@ -266,6 +266,7 @@ NEED_DH_GROUPS=y
NEED_SHA256=y
NEED_CRYPTO=y
NEED_BASE64=y
NEED_AES_CBC=y
ifdef CONFIG_WPS_UFD
CFLAGS += -DCONFIG_WPS_UFD
@ -576,9 +577,7 @@ endif
AESOBJS += ../src/crypto/aes-wrap.o
ifndef CONFIG_NO_AES_EXTRAS
ifdef CONFIG_INTERNAL_AES
AESOBJS += ../src/crypto/aes-internal-dec.o
endif
NEED_AES_CBC=y
AESOBJS += ../src/crypto/aes-cbc.o
AESOBJS += ../src/crypto/aes-ctr.o
AESOBJS += ../src/crypto/aes-eax.o
@ -587,6 +586,13 @@ AESOBJS += ../src/crypto/aes-omac1.o
AESOBJS += ../src/crypto/aes-unwrap.o
endif
ifdef NEED_AES_CBC
ifdef CONFIG_INTERNAL_AES
AESOBJS += ../src/crypto/aes-internal-dec.o
endif
AESOBJS += ../src/crypto/aes-cbc.o
endif
OBJS += $(SHA1OBJS)
ALL=hostapd hostapd_cli

View file

@ -418,6 +418,7 @@ NEED_SHA256=y
NEED_BASE64=y
NEED_CRYPTO=y
NEED_80211_COMMON=y
NEED_AES_CBC=y
ifdef CONFIG_WPS_UFD
CFLAGS += -DCONFIG_WPS_UFD
@ -722,6 +723,10 @@ ifdef CHAP
OBJS += ../src/eap_common/chap.o
endif
ifndef CONFIG_NO_WPA
NEED_CRYPTO=y
endif
ifdef NEED_CRYPTO
ifndef TLS_FUNCS
ifeq ($(CONFIG_TLS), openssl)
@ -991,15 +996,19 @@ endif
AESOBJS += ../src/crypto/aes-unwrap.o
ifndef CONFIG_NO_AES_EXTRAS
ifdef CONFIG_INTERNAL_AES
AESOBJS += ../src/crypto/aes-internal-enc.o
endif
AESOBJS += ../src/crypto/aes-cbc.o
NEED_AES_CBC=y
AESOBJS += ../src/crypto/aes-ctr.o
AESOBJS += ../src/crypto/aes-eax.o
AESOBJS += ../src/crypto/aes-encblock.o
AESOBJS += ../src/crypto/aes-omac1.o
AESOBJS += ../src/crypto/aes-wrap.o
else
endif
ifdef NEED_AES_CBC
ifdef CONFIG_INTERNAL_AES
AESOBJS += ../src/crypto/aes-internal-enc.o
endif
AESOBJS += ../src/crypto/aes-cbc.o
endif
ifdef NEED_AES