diff --git a/src/eap-mschapv2.c b/src/eap-mschapv2.c index e48e00ad..5e878d3b 100644 --- a/src/eap-mschapv2.c +++ b/src/eap-mschapv2.c @@ -796,6 +796,13 @@ static struct eap_method eap_mschapv2 = { static int eap_mschapv2_init(void) { l_debug(""); + + if (!l_checksum_is_supported(L_CHECKSUM_MD4, false)) { + l_warn("EAP_MSCHAPv2 init: MD4 support not found, skipping"); + l_warn("Ensure that CONFIG_CRYPTO_MD4 is enabled"); + return -ENOTSUP; + } + return eap_register_method(&eap_mschapv2); }