]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Fix crypto module test build without EAP-FAST
authorJouni Malinen <j@w1.fi>
Sun, 11 Jan 2015 13:59:58 +0000 (15:59 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 11 Jan 2015 22:19:21 +0000 (00:19 +0200)
Skip the EAP-FAST specific test cases if wpa_supplicant build is
configured not to include EAP-FAST support.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/crypto/crypto_module_tests.c

index 5b3808f330f754df3ddca5cfccc6e6413ef28286..7137c27d0e8c516168a87147f049c4afac94b138 100644 (file)
@@ -815,6 +815,7 @@ static int test_md5(void)
 
 static int test_eap_fast(void)
 {
+#ifdef EAP_FAST
        /* RFC 4851, Appendix B.1 */
        const u8 pac_key[] = {
                0x0B, 0x97, 0x39, 0x0F, 0x37, 0x51, 0x78, 0x09,
@@ -976,6 +977,9 @@ static int test_eap_fast(void)
        }
 
        return errors;
+#else /* EAP_FAST */
+       return 0;
+#endif /* EAP_FAST */
 }