aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorAndrey Utkin <andrey_utkin@gentoo.org>2018-04-14 23:34:35 (GMT)
committerJouni Malinen <j@w1.fi>2018-04-15 18:55:06 (GMT)
commit4449efeb1d9dc06ff242ecd84541ea38b9dc2198 (patch)
tree89cea990b14e511a2ba8219ad2f16e4860125e6d /hostapd
parent5ecdf06c8ceff8a817291b1f1ea5b681ca119f4d (diff)
downloadhostap-4449efeb1d9dc06ff242ecd84541ea38b9dc2198.zip
hostap-4449efeb1d9dc06ff242ecd84541ea38b9dc2198.tar.gz
hostap-4449efeb1d9dc06ff242ecd84541ea38b9dc2198.tar.bz2
Fix building nt_password_hash with gnutls
Even with CONFIG_TLS=gnutls CONFIG_CRYPTO=gnutls in .config, nt_password_hash was linked with libcrypto instead of libgcrypt, which caused linkage failure. Signed-off-by: Andrey Utkin <andrey_utkin@gentoo.org>
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/hostapd/Makefile b/hostapd/Makefile
index 98ce115..616dbe2 100644
--- a/hostapd/Makefile
+++ b/hostapd/Makefile
@@ -688,6 +688,7 @@ NEED_SHA256=y
NEED_TLS_PRF_SHA256=y
LIBS += -lcrypto
LIBS_h += -lcrypto
+LIBS_n += -lcrypto
ifdef CONFIG_TLS_ADD_DL
LIBS += -ldl
LIBS_h += -ldl
@@ -716,6 +717,7 @@ endif
ifeq ($(CONFIG_CRYPTO), gnutls)
LIBS += -lgcrypt
LIBS_h += -lgcrypt
+LIBS_n += -lgcrypt
CONFIG_INTERNAL_RC4=y
CONFIG_INTERNAL_DH_GROUP5=y
endif
@@ -1301,9 +1303,6 @@ ifdef CONFIG_WPA_TRACE
NOBJS += ../src/utils/trace.o
LIBS_n += -lbfd
endif
-ifdef TLS_FUNCS
-LIBS_n += -lcrypto
-endif
HOBJS += 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