aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/Makefile
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2017-12-27 21:35:26 (GMT)
committerJouni Malinen <j@w1.fi>2017-12-27 21:35:26 (GMT)
commit133f8d09fcef5461e70c3a81c7bf8124778591c6 (patch)
tree12917df4f2fb0a94828b88cf0cd31b71ab6c2929 /hostapd/Makefile
parent85c12a62ee167946cecbc065f78d4bb674de16ca (diff)
downloadhostap-133f8d09fcef5461e70c3a81c7bf8124778591c6.zip
hostap-133f8d09fcef5461e70c3a81c7bf8124778591c6.tar.gz
hostap-133f8d09fcef5461e70c3a81c7bf8124778591c6.tar.bz2
GnuTLS: Implement HMAC functions using libgcrypt
Replace the internal HMAC MD5, SHA-1, and SHA256 implementations with the ones from libgcrypt and also add the SHA384 and SHA512 versions. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'hostapd/Makefile')
-rw-r--r--hostapd/Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/hostapd/Makefile b/hostapd/Makefile
index 456c9b4..cf6f829 100644
--- a/hostapd/Makefile
+++ b/hostapd/Makefile
@@ -894,9 +894,11 @@ endif
ifdef NEED_SHA1
ifneq ($(CONFIG_TLS), openssl)
ifneq ($(CONFIG_TLS), linux)
+ifneq ($(CONFIG_TLS), gnutls)
SHA1OBJS += ../src/crypto/sha1.o
endif
endif
+endif
SHA1OBJS += ../src/crypto/sha1-prf.o
ifdef CONFIG_INTERNAL_SHA1
SHA1OBJS += ../src/crypto/sha1-internal.o
@@ -921,9 +923,11 @@ endif
ifneq ($(CONFIG_TLS), openssl)
ifneq ($(CONFIG_TLS), linux)
+ifneq ($(CONFIG_TLS), gnutls)
OBJS += ../src/crypto/md5.o
endif
endif
+endif
ifdef NEED_MD5
ifdef CONFIG_INTERNAL_MD5
@@ -960,9 +964,11 @@ ifdef NEED_SHA256
CFLAGS += -DCONFIG_SHA256
ifneq ($(CONFIG_TLS), openssl)
ifneq ($(CONFIG_TLS), linux)
+ifneq ($(CONFIG_TLS), gnutls)
OBJS += ../src/crypto/sha256.o
endif
endif
+endif
OBJS += ../src/crypto/sha256-prf.o
ifdef CONFIG_INTERNAL_SHA256
OBJS += ../src/crypto/sha256-internal.o
@@ -984,18 +990,22 @@ ifdef NEED_SHA384
CFLAGS += -DCONFIG_SHA384
ifneq ($(CONFIG_TLS), openssl)
ifneq ($(CONFIG_TLS), linux)
+ifneq ($(CONFIG_TLS), gnutls)
OBJS += ../src/crypto/sha384.o
endif
endif
+endif
OBJS += ../src/crypto/sha384-prf.o
endif
ifdef NEED_SHA512
CFLAGS += -DCONFIG_SHA512
ifneq ($(CONFIG_TLS), openssl)
ifneq ($(CONFIG_TLS), linux)
+ifneq ($(CONFIG_TLS), gnutls)
OBJS += ../src/crypto/sha512.o
endif
endif
+endif
OBJS += ../src/crypto/sha512-prf.o
endif