]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Fix build without CONFIG_SAE
authorJouni Malinen <jouni@codeaurora.org>
Tue, 9 Apr 2019 13:17:25 +0000 (16:17 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 9 Apr 2019 13:24:38 +0000 (16:24 +0300)
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/common/common_module_tests.c

index 82d3aed29e5b35ae6e55f95f6ad6bfb2f2a012cf..30c52476bbed8a3f622ea50be76dbd7a445980fd 100644 (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 */
 }