From: Jouni Malinen Date: Tue, 9 Apr 2019 13:17:25 +0000 (+0300) Subject: tests: Fix build without CONFIG_SAE X-Git-Tag: hostap_2_8~124 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83f13e4ff688548678b8a3308522fe42e1dd3c5e;p=thirdparty%2Fhostap.git tests: Fix build without CONFIG_SAE Signed-off-by: Jouni Malinen --- diff --git a/src/common/common_module_tests.c b/src/common/common_module_tests.c index 82d3aed29..30c52476b 100644 --- a/src/common/common_module_tests.c +++ b/src/common/common_module_tests.c @@ -252,6 +252,7 @@ static int gas_tests(void) static int sae_tests(void) { +#ifdef CONFIG_SAE struct sae_data sae; int ret = -1; /* IEEE P802.11-REVmd/D2.1, Annex J.10 */ @@ -416,6 +417,9 @@ fail: wpabuf_free(buf); crypto_bignum_deinit(mask, 1); return ret; +#else /* CONFIG_SAE */ + return 0; +#endif /* CONFIG_SAE */ }