mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-29 02:38:22 -05:00
tests: Fix crypto module test build without EAP-FAST
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>
This commit is contained in:
parent
a783340d04
commit
1068bdb90c
@ -815,6 +815,7 @@ static int test_md5(void)
|
|||||||
|
|
||||||
static int test_eap_fast(void)
|
static int test_eap_fast(void)
|
||||||
{
|
{
|
||||||
|
#ifdef EAP_FAST
|
||||||
/* RFC 4851, Appendix B.1 */
|
/* RFC 4851, Appendix B.1 */
|
||||||
const u8 pac_key[] = {
|
const u8 pac_key[] = {
|
||||||
0x0B, 0x97, 0x39, 0x0F, 0x37, 0x51, 0x78, 0x09,
|
0x0B, 0x97, 0x39, 0x0F, 0x37, 0x51, 0x78, 0x09,
|
||||||
@ -976,6 +977,9 @@ static int test_eap_fast(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
return errors;
|
return errors;
|
||||||
|
#else /* EAP_FAST */
|
||||||
|
return 0;
|
||||||
|
#endif /* EAP_FAST */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user