Home | History | Annotate | Download | only in eap_peer

Lines Matching refs:identity

408  * Handles requests for Identity method and builds a response.
410 SM_STATE(EAP, IDENTITY)
414 SM_ENTRY(EAP, IDENTITY);
634 SM_ENTER(EAP, IDENTITY);
857 * RFC 3748 - 5.1: Identity
865 wpa_hexdump_ascii(MSG_DEBUG, "EAP: EAP-Request Identity data",
897 os_free(conf->identity);
898 conf->identity = os_malloc(1 + imsi_len);
899 if (conf->identity == NULL) {
901 "IMSI-based identity");
905 conf->identity[0] = aka ? '0' : '1';
906 os_memcpy(conf->identity + 1, imsi, imsi_len);
951 * eap_sm_buildIdentity - Build EAP-Identity/Response for the current network
955 * Returns: Pointer to the allocated EAP-Identity/Response packet or %NULL on
958 * This function allocates and builds an EAP-Identity/Response packet for the
965 const u8 *identity;
975 (identity = sm->m->get_identity(sm, sm->eap_method_priv,
978 "identity", identity, identity_len);
980 identity = config->anonymous_identity;
982 wpa_hexdump_ascii(MSG_DEBUG, "EAP: using anonymous identity",
983 identity, identity_len);
985 identity = config->identity;
987 wpa_hexdump_ascii(MSG_DEBUG, "EAP: using real identity",
988 identity, identity_len);
991 if (identity == NULL) {
992 wpa_printf(MSG_WARNING, "EAP: buildIdentity: identity "
997 identity = config->identity;
999 wpa_hexdump_ascii(MSG_DEBUG, "permanent identity from "
1000 "IMSI", identity, identity_len);
1015 wpabuf_put_data(resp, identity, identity_len);
1287 return "IDENTITY";
1434 field = "IDENTITY";
1435 txt = "Identity";
1491 * eap_sm_request_identity - Request identity from user (ctrl_iface)
1494 * EAP methods can call this function to request identity information for the
1495 * current network. This is normally called when the identity is not included
1729 * eap_get_config_identity - Get identity from the network configuration
1731 * @len: Buffer for the length of the identity
1732 * Returns: Pointer to the identity or %NULL if not found
1740 return config->identity;
2055 os_memcmp(conf->identity, WSC_ID_ENROLLEE, WSC_ID_ENROLLEE_LEN))
2068 os_memcmp(conf->identity, WSC_ID_ENROLLEE, WSC_ID_ENROLLEE_LEN))