Lines Matching full:identity
148 * @identity: Identity (User-Name) of the user
149 * @identity_len: Length of identity in bytes
154 * selected based on the specified identity. sm->user and
158 int eap_user_get(struct eap_sm *sm, const u8 *identity, size_t identity_len, in eap_user_get() argument
174 if (sm->eapol_cb->get_eap_user(sm->eapol_ctx, identity, in eap_user_get()
225 if (sm->eap_if.eapRestart && !sm->cfg->eap_server && sm->identity) { in SM_STATE()
227 * Need to allow internal Identity method to be used instead in SM_STATE()
867 * EAP Identity exchange. Use keyName-NAI as the user identity in SM_STATE()
872 "EAP: Use keyName-NAI as user identity for backend authentication"); in SM_STATE()
874 sm->identity = (u8 *) dup_binstr(parse.keyname, in SM_STATE()
876 if (!sm->identity) in SM_STATE()
1082 * if (respMethod == IDENTITY) in SM_STATE()
1084 * This is already taken care of by the EAP-Identity method which in SM_STATE()
1085 * stores the identity into sm->identity. in SM_STATE()
1155 * Start reauthentication with identity request even though we know the in SM_STATE()
1156 * previously used identity. This is needed to get reauthentication in SM_STATE()
1696 * re-authentication with something else than EAP-Request/Identity and in eap_sm_Policy_getNextMethod()
1699 * EAP-Request/Identity. in eap_sm_Policy_getNextMethod()
1701 * whether Identity needs to be requested again. */ in eap_sm_Policy_getNextMethod()
1702 if (sm->identity == NULL || sm->currentId == -1) { in eap_sm_Policy_getNextMethod()
1724 if (!sm->cfg->eap_server && sm->identity && !sm->start_reauth) { in eap_sm_Policy_getDecision()
1745 if ((sm->user == NULL || sm->update_user) && sm->identity && in eap_sm_Policy_getDecision()
1748 * Allow Identity method to be started once to allow identity in eap_sm_Policy_getDecision()
1750 * but prevent a loop of Identity requests by only allowing in eap_sm_Policy_getDecision()
1758 if (eap_user_get(sm, sm->identity, sm->identity_len, 0) != 0) { in eap_sm_Policy_getDecision()
1767 "identity request loop -> FAILURE"); in eap_sm_Policy_getDecision()
1785 if (!sm->identity && eap_get_erp_send_reauth_start(sm) && in eap_sm_Policy_getDecision()
1792 if (sm->identity == NULL || sm->currentId == -1) { in eap_sm_Policy_getDecision()
1793 wpa_printf(MSG_DEBUG, "EAP: getDecision: no identity known " in eap_sm_Policy_getDecision()
1902 os_free(sm->identity); in eap_server_sm_deinit()
1960 * eap_get_identity - Get the user identity (from EAP-Response/Identity)
1962 * @len: Buffer for returning identity length
1963 * Returns: Pointer to the user identity or %NULL if not available
1968 return sm->identity; in eap_get_identity()
2033 "EAP: Update identity based on EAP-Initiate/Re-auth keyName-NAI", in eap_erp_update_identity()
2035 os_free(sm->identity); in eap_erp_update_identity()
2036 sm->identity = os_malloc(parse.keyname_len); in eap_erp_update_identity()
2037 if (sm->identity) { in eap_erp_update_identity()
2038 os_memcpy(sm->identity, parse.keyname, parse.keyname_len); in eap_erp_update_identity()
2059 * eap_server_clear_identity - Clear EAP identity information
2062 * This function can be used to clear the EAP identity information in the EAP
2063 * server context. This allows the EAP/Identity method to be used again after
2068 os_free(sm->identity); in eap_server_clear_identity()
2069 sm->identity = NULL; in eap_server_clear_identity()