mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-21 11:52:34 +01:00
eap-md5: Convert to dynamic method registration
This commit is contained in:
parent
0816d04873
commit
05151d762d
16
src/eap.c
16
src/eap.c
@ -548,7 +548,7 @@ static bool eap_md5_load_settings(struct eap_state *eap,
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct eap_method eap_md5 = {
|
static struct eap_method eap_md5 = {
|
||||||
.request_type = EAP_TYPE_MD5_CHALLENGE,
|
.request_type = EAP_TYPE_MD5_CHALLENGE,
|
||||||
.exports_msk = false,
|
.exports_msk = false,
|
||||||
.name = "MD5",
|
.name = "MD5",
|
||||||
@ -558,3 +558,17 @@ struct eap_method eap_md5 = {
|
|||||||
.handle_request = eap_md5_handle_request,
|
.handle_request = eap_md5_handle_request,
|
||||||
.load_settings = eap_md5_load_settings,
|
.load_settings = eap_md5_load_settings,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static int eap_md5_init(void)
|
||||||
|
{
|
||||||
|
l_debug("");
|
||||||
|
return eap_register_method(&eap_md5);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void eap_md5_exit(void)
|
||||||
|
{
|
||||||
|
l_debug("");
|
||||||
|
eap_unregister_method(&eap_md5);
|
||||||
|
}
|
||||||
|
|
||||||
|
EAP_METHOD_BUILTIN(eap_md5, eap_md5_init, eap_md5_exit)
|
||||||
|
Loading…
Reference in New Issue
Block a user