3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-18 10:19:24 +01:00

eap-mschapv2: Check for MD4 support

This commit is contained in:
Denis Kenzior 2018-05-03 14:45:00 -05:00
parent 1523ce1130
commit bfe4fcffd3

View File

@ -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);
}