Remove TLS-PRF from hostapd build if it is not needed

This commit is contained in:
Jouni Malinen 2009-01-12 15:20:12 +02:00 committed by Jouni Malinen
parent 03ba2cb4c6
commit 815d2189d9

View file

@ -347,6 +347,7 @@ ifdef TLS_FUNCS
# Shared TLS functions (needed for EAP_TLS, EAP_PEAP, and EAP_TTLS) # Shared TLS functions (needed for EAP_TLS, EAP_PEAP, and EAP_TTLS)
CFLAGS += -DEAP_TLS_FUNCS CFLAGS += -DEAP_TLS_FUNCS
OBJS += ../src/eap_server/eap_tls_common.o OBJS += ../src/eap_server/eap_tls_common.o
NEED_TLS_PRF=y
ifeq ($(CONFIG_TLS), openssl) ifeq ($(CONFIG_TLS), openssl)
OBJS += ../src/crypto/tls_openssl.o OBJS += ../src/crypto/tls_openssl.o
LIBS += -lssl -lcrypto LIBS += -lssl -lcrypto
@ -496,6 +497,10 @@ ifndef NEED_T_PRF
CFLAGS += -DCONFIG_NO_T_PRF CFLAGS += -DCONFIG_NO_T_PRF
endif endif
ifndef NEED_TLS_PRF
CFLAGS += -DCONFIG_NO_TLS_PRF
endif
ifdef CONFIG_RADIUS_SERVER ifdef CONFIG_RADIUS_SERVER
CFLAGS += -DRADIUS_SERVER CFLAGS += -DRADIUS_SERVER
OBJS += ../src/radius/radius_server.o OBJS += ../src/radius/radius_server.o