aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/Makefile
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2015-08-17 18:31:17 (GMT)
committerJouni Malinen <j@w1.fi>2015-08-17 22:56:02 (GMT)
commit812f28b79cfcff122af8c0d6a9eb9e793a1c2652 (patch)
treebf6707bcbffa7ea4e9305cefab510eb844baa359 /wpa_supplicant/Makefile
parentc965ae034a9730670bad512defc839bf8de9dca8 (diff)
downloadhostap-812f28b79cfcff122af8c0d6a9eb9e793a1c2652.zip
hostap-812f28b79cfcff122af8c0d6a9eb9e793a1c2652.tar.gz
hostap-812f28b79cfcff122af8c0d6a9eb9e793a1c2652.tar.bz2
BoringSSL: Allow internal AES key wrap to be used with "OpenSSL" build
It looks like BoringSSL has removed the AES_wrap_key(), AES_unwrap_key() API. This broke wpa_supplicant/hostapd build since those functions from OpenSSL were used to replace the internal AES key wrap implementation. Add a new build configuration option (CONFIG_OPENSSL_INTERNAL_AES_WRAP=y) to allow the internal implementation to be used with CONFIG_OPENSSL=y build to allow build against the latest BoringSSL version. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/Makefile')
-rw-r--r--wpa_supplicant/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile
index 6acbf43..1f1527a 100644
--- a/wpa_supplicant/Makefile
+++ b/wpa_supplicant/Makefile
@@ -1152,6 +1152,11 @@ endif
ifneq ($(CONFIG_TLS), openssl)
NEED_INTERNAL_AES_WRAP=y
endif
+ifdef CONFIG_OPENSSL_INTERNAL_AES_WRAP
+# Seems to be needed at least with BoringSSL
+NEED_INTERNAL_AES_WRAP=y
+CFLAGS += -DCONFIG_OPENSSL_INTERNAL_AES_WRAP
+endif
ifdef CONFIG_FIPS
# Have to use internal AES key wrap routines to use OpenSSL EVP since the
# OpenSSL AES_wrap_key()/AES_unwrap_key() API is not available in FIPS mode.