aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2010-08-19 18:16:19 (GMT)
committerJouni Malinen <j@w1.fi>2010-09-05 14:30:15 (GMT)
commit00e7af47351256eadc1bf84a407f9872d6bcc9c6 (patch)
tree6b5bfbf8fa8b29e1de6a4ca34c5ff3833b03c14f
parenta48f8380fa561d5ebb37754a9dbb85bedd11b81e (diff)
downloadhostap-07-00e7af47351256eadc1bf84a407f9872d6bcc9c6.zip
hostap-07-00e7af47351256eadc1bf84a407f9872d6bcc9c6.tar.gz
hostap-07-00e7af47351256eadc1bf84a407f9872d6bcc9c6.tar.bz2
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). (cherry picked from commit 8cbd92ee2911defeed72f1c12e29124b5afa5cbb)
-rw-r--r--src/eap_server/eap_server_fast.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/eap_server/eap_server_fast.c b/src/eap_server/eap_server_fast.c
index 74bef17..39beb33 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);