mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-21 03:32:42 +01:00
eap-mschapv2: Check for MD4 support
This commit is contained in:
parent
1523ce1130
commit
bfe4fcffd3
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user