Lines Matching refs:identity
903 os_free(conf->identity);
904 conf->identity = os_malloc(1 + imsi_len);
905 if (conf->identity == NULL) {
907 "IMSI-based identity");
911 conf->identity[0] = aka ? '0' : '1';
912 os_memcpy(conf->identity + 1, imsi, imsi_len);
971 const u8 *identity;
981 (identity = sm->m->get_identity(sm, sm->eap_method_priv,
984 "identity", identity, identity_len);
986 identity = config->anonymous_identity;
988 wpa_hexdump_ascii(MSG_DEBUG, "EAP: using anonymous identity",
989 identity, identity_len);
991 identity = config->identity;
993 wpa_hexdump_ascii(MSG_DEBUG, "EAP: using real identity",
994 identity, identity_len);
997 if (identity == NULL) {
998 wpa_printf(MSG_WARNING, "EAP: buildIdentity: identity "
1003 identity = config->identity;
1005 wpa_hexdump_ascii(MSG_DEBUG, "permanent identity from "
1006 "IMSI", identity, identity_len);
1021 wpabuf_put_data(resp, identity, identity_len);
1556 * eap_sm_request_identity - Request identity from user (ctrl_iface)
1559 * EAP methods can call this function to request identity information for the
1560 * current network. This is normally called when the identity is not included
1794 * eap_get_config_identity - Get identity from the network configuration
1796 * @len: Buffer for the length of the identity
1797 * Returns: Pointer to the identity or %NULL if not found
1805 return config->identity;
2120 os_memcmp(conf->identity, WSC_ID_ENROLLEE, WSC_ID_ENROLLEE_LEN))
2133 os_memcmp(conf->identity, WSC_ID_ENROLLEE, WSC_ID_ENROLLEE_LEN))