[PATCH] Fix building nt_password_hash with gnutls
Andrey Utkin
andrey_utkin at gentoo.org
Sat Apr 14 16:34:35 PDT 2018
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 at gentoo.org>
---
hostapd/Makefile | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/hostapd/Makefile b/hostapd/Makefile
index 98ce1151f..616dbe2cc 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
--
2.16.2
More information about the Hostap
mailing list