EAP server: Simplify EAP method registration call
Free the allocated structure in error cases to remove need for each EAP method to handle the error cases separately. Each registration function can simply do "return eap_server_method_register(eap);" in the end of the function. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
49a26bb3e3
commit
814f43cff5
22 changed files with 33 additions and 122 deletions
|
@ -15,7 +15,6 @@ const struct eap_method * eap_server_get_eap_method(int vendor,
|
|||
EapType method);
|
||||
struct eap_method * eap_server_method_alloc(int version, int vendor,
|
||||
EapType method, const char *name);
|
||||
void eap_server_method_free(struct eap_method *method);
|
||||
int eap_server_method_register(struct eap_method *method);
|
||||
|
||||
EapType eap_server_get_type(const char *name, int *vendor);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue