|
@@ -375,7 +375,6 @@ static u8 * eap_tls_get_session_id(struct eap_sm *sm, void *priv, size_t *len)
|
|
|
int eap_server_tls_register(void)
|
|
|
{
|
|
|
struct eap_method *eap;
|
|
|
- int ret;
|
|
|
|
|
|
eap = eap_server_method_alloc(EAP_SERVER_METHOD_INTERFACE_VERSION,
|
|
|
EAP_VENDOR_IETF, EAP_TYPE_TLS, "TLS");
|
|
@@ -393,10 +392,7 @@ int eap_server_tls_register(void)
|
|
|
eap->get_emsk = eap_tls_get_emsk;
|
|
|
eap->getSessionId = eap_tls_get_session_id;
|
|
|
|
|
|
- ret = eap_server_method_register(eap);
|
|
|
- if (ret)
|
|
|
- eap_server_method_free(eap);
|
|
|
- return ret;
|
|
|
+ return eap_server_method_register(eap);
|
|
|
}
|
|
|
|
|
|
|
|
@@ -404,7 +400,6 @@ int eap_server_tls_register(void)
|
|
|
int eap_server_unauth_tls_register(void)
|
|
|
{
|
|
|
struct eap_method *eap;
|
|
|
- int ret;
|
|
|
|
|
|
eap = eap_server_method_alloc(EAP_SERVER_METHOD_INTERFACE_VERSION,
|
|
|
EAP_VENDOR_UNAUTH_TLS,
|
|
@@ -423,10 +418,7 @@ int eap_server_unauth_tls_register(void)
|
|
|
eap->isSuccess = eap_tls_isSuccess;
|
|
|
eap->get_emsk = eap_tls_get_emsk;
|
|
|
|
|
|
- ret = eap_server_method_register(eap);
|
|
|
- if (ret)
|
|
|
- eap_server_method_free(eap);
|
|
|
- return ret;
|
|
|
+ return eap_server_method_register(eap);
|
|
|
}
|
|
|
#endif /* EAP_SERVER_UNAUTH_TLS */
|
|
|
|
|
@@ -435,7 +427,6 @@ int eap_server_unauth_tls_register(void)
|
|
|
int eap_server_wfa_unauth_tls_register(void)
|
|
|
{
|
|
|
struct eap_method *eap;
|
|
|
- int ret;
|
|
|
|
|
|
eap = eap_server_method_alloc(EAP_SERVER_METHOD_INTERFACE_VERSION,
|
|
|
EAP_VENDOR_WFA_NEW,
|
|
@@ -454,9 +445,6 @@ int eap_server_wfa_unauth_tls_register(void)
|
|
|
eap->isSuccess = eap_tls_isSuccess;
|
|
|
eap->get_emsk = eap_tls_get_emsk;
|
|
|
|
|
|
- ret = eap_server_method_register(eap);
|
|
|
- if (ret)
|
|
|
- eap_server_method_free(eap);
|
|
|
- return ret;
|
|
|
+ return eap_server_method_register(eap);
|
|
|
}
|
|
|
#endif /* CONFIG_HS20 */
|