Lines Matching refs:IDENTITY
417 * Handles requests for Identity method and builds a response.
419 SM_STATE(EAP, IDENTITY)
423 SM_ENTRY(EAP, IDENTITY);
643 SM_ENTER(EAP, IDENTITY);
866 * RFC 3748 - 5.1: Identity
874 wpa_hexdump_ascii(MSG_DEBUG, "EAP: EAP-Request Identity data",
906 os_free(conf->identity);
907 conf->identity = os_malloc(1 + imsi_len);
908 if (conf->identity == NULL) {
910 "IMSI-based identity");
914 conf->identity[0] = aka ? '0' : '1';
915 os_memcpy(conf->identity + 1, imsi, imsi_len);
960 * eap_sm_buildIdentity - Build EAP-Identity/Response for the current network
964 * Returns: Pointer to the allocated EAP-Identity/Response packet or %NULL on
967 * This function allocates and builds an EAP-Identity/Response packet for the
974 const u8 *identity;
984 (identity = sm->m->get_identity(sm, sm->eap_method_priv,
987 "identity", identity, identity_len);
989 identity = config->anonymous_identity;
991 wpa_hexdump_ascii(MSG_DEBUG, "EAP: using anonymous identity",
992 identity, identity_len);
994 identity = config->identity;
996 wpa_hexdump_ascii(MSG_DEBUG, "EAP: using real identity",
997 identity, identity_len);
1000 if (identity == NULL) {
1001 wpa_printf(MSG_WARNING, "EAP: buildIdentity: identity "
1006 identity = config->identity;
1008 wpa_hexdump_ascii(MSG_DEBUG, "permanent identity from "
1009 "IMSI", identity, identity_len);
1024 wpabuf_put_data(resp, identity, identity_len);
1341 return "IDENTITY";
1488 field = "IDENTITY";
1489 txt = "Identity";
1552 * eap_sm_request_identity - Request identity from user (ctrl_iface)
1555 * EAP methods can call this function to request identity information for the
1556 * current network. This is normally called when the identity is not included
1790 * eap_get_config_identity - Get identity from the network configuration
1792 * @len: Buffer for the length of the identity
1793 * Returns: Pointer to the identity or %NULL if not found
1801 return config->identity;
2125 os_memcmp(conf->identity, WSC_ID_ENROLLEE, WSC_ID_ENROLLEE_LEN))
2138 os_memcmp(conf->identity, WSC_ID_ENROLLEE, WSC_ID_ENROLLEE_LEN))