aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/Android.mk
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/Android.mk
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/Android.mk')
-rw-r--r--hostapd/Android.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/hostapd/Android.mk b/hostapd/Android.mk
index c185aed..04167a6 100644
--- a/hostapd/Android.mk
+++ b/hostapd/Android.mk
@@ -809,8 +809,10 @@ endif
SHA1OBJS =
ifdef NEED_SHA1
ifneq ($(CONFIG_TLS), openssl)
+ifneq ($(CONFIG_TLS), gnutls)
SHA1OBJS += src/crypto/sha1.c
endif
+endif
SHA1OBJS += src/crypto/sha1-prf.c
ifdef CONFIG_INTERNAL_SHA1
SHA1OBJS += src/crypto/sha1-internal.c
@@ -834,8 +836,10 @@ OBJS += $(SHA1OBJS)
endif
ifneq ($(CONFIG_TLS), openssl)
+ifneq ($(CONFIG_TLS), gnutls)
OBJS += src/crypto/md5.c
endif
+endif
ifdef NEED_MD5
ifdef CONFIG_INTERNAL_MD5
@@ -871,8 +875,10 @@ endif
ifdef NEED_SHA256
L_CFLAGS += -DCONFIG_SHA256
ifneq ($(CONFIG_TLS), openssl)
+ifneq ($(CONFIG_TLS), gnutls)
OBJS += src/crypto/sha256.c
endif
+endif
OBJS += src/crypto/sha256-prf.c
ifdef CONFIG_INTERNAL_SHA256
OBJS += src/crypto/sha256-internal.c
@@ -893,17 +899,21 @@ endif
ifdef NEED_SHA384
L_CFLAGS += -DCONFIG_SHA384
ifneq ($(CONFIG_TLS), openssl)
+ifneq ($(CONFIG_TLS), gnutls)
OBJS += src/crypto/sha384.c
endif
+endif
OBJS += src/crypto/sha384-prf.c
endif
ifdef NEED_SHA512
L_CFLAGS += -DCONFIG_SHA512
ifneq ($(CONFIG_TLS), openssl)
ifneq ($(CONFIG_TLS), linux)
+ifneq ($(CONFIG_TLS), gnutls)
OBJS += src/crypto/sha512.c
endif
endif
+endif
OBJS += src/crypto/sha512-prf.c
endif