Lines Matching full:identity
119 username = sim_get_username(sm->identity, sm->identity_len);
129 wpa_printf(MSG_DEBUG, " No identity request");
132 * RFC 4186, Chap. 4.2.4 recommends that identity from EAP is
133 * ignored and the SIM/Start is used to request the identity.
145 * already know the identity of the peer, there is no need to
146 * request any identity in this case.
148 } else if (sm->identity && sm->identity_len > 0 &&
149 sm->identity[0] == EAP_SIM_REAUTH_ID_PREFIX) {
288 eap_sim_derive_keys_reauth(data->counter, sm->identity,
453 const u8 *identity;
463 * Special case for AT_COUNTER_TOO_SMALL recovery - no identity
470 (!attr->identity || attr->identity_len == 0))
474 * Unless explicitly configured otherwise, we always request identity
477 if (!attr->identity || attr->identity_len == 0) {
479 "identity");
486 os_free(sm->identity);
487 sm->identity = new_identity;
488 os_memcpy(sm->identity, attr->identity, attr->identity_len);
493 identity = (const u8 *) sm->sim_aka_permanent;
496 identity = sm->identity;
499 wpa_hexdump_ascii(MSG_DEBUG, "EAP-SIM: Identity",
500 identity, identity_len);
501 username = sim_get_username(identity, identity_len);
513 "identity - request full auth identity");
524 "EAP-SIM: Permanent identity recognized - skip new Identity query");
558 "identity - request permanent identity");
570 } else if (sm->identity_len > 1 && sm->identity[0] == '\0') {
581 "EAP-SIM: Received encrypted identity, but no IMSI privacy key configured to decrypt it");
585 enc_id = (char *) &sm->identity[1];
586 end = (char *) &sm->identity[sm->identity_len];
594 "EAP-SIM: Encrypted permanent identity",
599 "EAP-SIM: Could not base64 decode encrypted identity");
603 "EAP-SIM: Decoded encrypted permanent identity",
614 "EAP-SIM: Failed to decrypt encrypted identity");
617 wpa_hexdump_ascii(MSG_DEBUG, "EAP-SIM: Decrypted permanent identity",
629 os_free(sm->identity);
630 sm->identity = new_id;
680 while (identity_len > 0 && sm->identity[identity_len - 1] == '\0') {
682 "character from identity");
685 wpa_hexdump_ascii(MSG_DEBUG, "EAP-SIM: Identity for MK derivation",
686 sm->identity, identity_len);
690 eap_sim_derive_mk(sm->identity, identity_len, attr->nonce_mt,