From: Jouni Malinen Date: Thu, 19 Aug 2010 18:16:19 +0000 (+0300) Subject: EAP-FAST server: Add I-ID into PAC-Info X-Git-Tag: hostap-1-bp~1228 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8cbd92ee2911defeed72f1c12e29124b5afa5cbb;p=thirdparty%2Fhostap.git EAP-FAST server: Add I-ID into PAC-Info This indicates that the peer identity is associated with the credential and will be required to match with the identity used during authentication when the PAC is used (RFC 5422, 4.2.4). --- diff --git a/src/eap_server/eap_server_fast.c b/src/eap_server/eap_server_fast.c index 74bef17ea..39beb3305 100644 --- a/src/eap_server/eap_server_fast.c +++ b/src/eap_server/eap_server_fast.c @@ -791,6 +791,11 @@ static struct wpabuf * eap_fast_build_pac(struct eap_sm *sm, /* Note: headers may be misaligned after A-ID */ + if (sm->identity) { + eap_fast_put_tlv(buf, PAC_TYPE_I_ID, sm->identity, + sm->identity_len); + } + /* A-ID-Info (inside PAC-Info) */ eap_fast_put_tlv(buf, PAC_TYPE_A_ID_INFO, data->srv_id_info, srv_id_info_len);