tests: Fix build without CONFIG_SAE

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
Jouni Malinen 2019-04-09 16:17:25 +03:00 committed by Jouni Malinen
parent 85b3bb6cc7
commit 83f13e4ff6

View file

@ -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 */
}