OWE: Add CONFIG_OWE=y build option

This can be used to enable OWE support in hostapd and wpa_supplicant
builds.

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2017-03-12 00:38:24 +02:00
parent 07a5fe823e
commit 6115238492
8 changed files with 40 additions and 0 deletions

View File

@ -261,6 +261,12 @@ NEED_ECC=y
NEED_DH_GROUPS=y NEED_DH_GROUPS=y
endif endif
ifdef CONFIG_OWE
L_CFLAGS += -DCONFIG_OWE
NEED_ECC=y
NEED_HMAC_SHA256_KDF=y
endif
ifdef CONFIG_FILS ifdef CONFIG_FILS
L_CFLAGS += -DCONFIG_FILS L_CFLAGS += -DCONFIG_FILS
OBJS += src/ap/fils_hlp.c OBJS += src/ap/fils_hlp.c

View File

@ -305,6 +305,12 @@ NEED_DH_GROUPS=y
NEED_AP_MLME=y NEED_AP_MLME=y
endif endif
ifdef CONFIG_OWE
CFLAGS += -DCONFIG_OWE
NEED_ECC=y
NEED_HMAC_SHA256_KDF=y
endif
ifdef CONFIG_FILS ifdef CONFIG_FILS
CFLAGS += -DCONFIG_FILS CFLAGS += -DCONFIG_FILS
OBJS += ../src/ap/fils_hlp.o OBJS += ../src/ap/fils_hlp.o

View File

@ -202,3 +202,7 @@ CONFIG_AP=y
# Include internal line edit mode in hostapd_cli. # Include internal line edit mode in hostapd_cli.
CONFIG_WPA_CLI_EDIT=y CONFIG_WPA_CLI_EDIT=y
# Opportunistic Wireless Encryption (OWE)
# Experimental implementation of draft-harkins-owe-07.txt
#CONFIG_OWE=y

View File

@ -362,3 +362,7 @@ CONFIG_IPV6=y
# Include internal line edit mode in hostapd_cli. This can be used to provide # Include internal line edit mode in hostapd_cli. This can be used to provide
# limited command line editing and history support. # limited command line editing and history support.
#CONFIG_WPA_CLI_EDIT=y #CONFIG_WPA_CLI_EDIT=y
# Opportunistic Wireless Encryption (OWE)
# Experimental implementation of draft-harkins-owe-07.txt
#CONFIG_OWE=y

View File

@ -243,6 +243,12 @@ NEED_ECC=y
NEED_DH_GROUPS=y NEED_DH_GROUPS=y
endif endif
ifdef CONFIG_OWE
L_CFLAGS += -DCONFIG_OWE
NEED_ECC=y
NEED_HMAC_SHA256_KDF=y
endif
ifdef CONFIG_FILS ifdef CONFIG_FILS
L_CFLAGS += -DCONFIG_FILS L_CFLAGS += -DCONFIG_FILS
NEED_SHA384=y NEED_SHA384=y

View File

@ -276,6 +276,12 @@ NEED_ECC=y
NEED_DH_GROUPS=y NEED_DH_GROUPS=y
endif endif
ifdef CONFIG_OWE
CFLAGS += -DCONFIG_OWE
NEED_ECC=y
NEED_HMAC_SHA256_KDF=y
endif
ifdef CONFIG_FILS ifdef CONFIG_FILS
CFLAGS += -DCONFIG_FILS CFLAGS += -DCONFIG_FILS
NEED_SHA384=y NEED_SHA384=y

View File

@ -541,4 +541,8 @@ CONFIG_WIFI_DISPLAY=y
# channels (experimental) # channels (experimental)
#CONFIG_BGSCAN_LEARN=y #CONFIG_BGSCAN_LEARN=y
# Opportunistic Wireless Encryption (OWE)
# Experimental implementation of draft-harkins-owe-07.txt
#CONFIG_OWE=y
include $(wildcard $(LOCAL_PATH)/android_config_*.inc) include $(wildcard $(LOCAL_PATH)/android_config_*.inc)

View File

@ -581,3 +581,7 @@ CONFIG_PEERKEY=y
# Learn channels used by the network and try to avoid bgscans on other # Learn channels used by the network and try to avoid bgscans on other
# channels (experimental) # channels (experimental)
#CONFIG_BGSCAN_LEARN=y #CONFIG_BGSCAN_LEARN=y
# Opportunistic Wireless Encryption (OWE)
# Experimental implementation of draft-harkins-owe-07.txt
#CONFIG_OWE=y