aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/Makefile
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2011-11-27 21:45:07 +0200
committerJouni Malinen <j@w1.fi>2011-11-27 21:45:07 +0200
commitca84eed7ad13dc23bd5363aaa1fd5ed34b3bb5e3 (patch)
tree3f0d4132c27e57830805da0d12f7a4323eb3599d /hostapd/Makefile
parentbcf03f52099e0b306e4c8f747958b0f929861b49 (diff)
downloadexternal_wpa_supplicant_8_ti-ca84eed7ad13dc23bd5363aaa1fd5ed34b3bb5e3.zip
external_wpa_supplicant_8_ti-ca84eed7ad13dc23bd5363aaa1fd5ed34b3bb5e3.tar.gz
external_wpa_supplicant_8_ti-ca84eed7ad13dc23bd5363aaa1fd5ed34b3bb5e3.tar.bz2
TLS: Add build configuration for TLS v1.2 support
This allows the internal TLS implementation to be built for TLS v1.2 support. In addition to the build option, this changes the TLS PRF based on the negotiated version number. Though, this commit does not yet complete support for TLS v1.2. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'hostapd/Makefile')
-rw-r--r--hostapd/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/hostapd/Makefile b/hostapd/Makefile
index 2dfb7d6..22c09c1 100644
--- a/hostapd/Makefile
+++ b/hostapd/Makefile
@@ -440,6 +440,11 @@ ifdef CONFIG_TLSV11
CFLAGS += -DCONFIG_TLSV11
endif
+ifdef CONFIG_TLSV12
+CFLAGS += -DCONFIG_TLSV12
+NEED_SHA256=y
+endif
+
ifeq ($(CONFIG_TLS), openssl)
ifdef TLS_FUNCS
OBJS += ../src/crypto/tls_openssl.o
@@ -519,6 +524,9 @@ OBJS += ../src/tls/pkcs8.o
NEED_SHA256=y
NEED_BASE64=y
NEED_TLS_PRF=y
+ifdef CONFIG_TLSV12
+NEED_TLS_PRF_SHA256=y
+endif
NEED_MODEXP=y
NEED_CIPHER=y
CFLAGS += -DCONFIG_TLS_INTERNAL