aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <jouni@codeaurora.org>2019-06-03 14:28:50 (GMT)
committerJouni Malinen <jouni@codeaurora.org>2019-06-03 17:27:44 (GMT)
commit59fcb3f0b171b363bad72dbeaa6dbe117c87b8e4 (patch)
treefe92672c9cf193d57df563f59a93ad8e592625f4
parentb09670abfb8ef52999c1fcb7022671c627c91e0c (diff)
downloadhostap-59fcb3f0b171b363bad72dbeaa6dbe117c87b8e4.zip
hostap-59fcb3f0b171b363bad72dbeaa6dbe117c87b8e4.tar.gz
hostap-59fcb3f0b171b363bad72dbeaa6dbe117c87b8e4.tar.bz2
RADIUS server: Add EAP-Key-Name into Access-Accept
If the EAP Session-ID is available, add it into Access-Accept (EAP-Key-Name attribute). This is needed for MACsec. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
-rw-r--r--src/radius/radius_server.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/radius/radius_server.c b/src/radius/radius_server.c
index d352f26..e0c0d82 100644
--- a/src/radius/radius_server.c
+++ b/src/radius/radius_server.c
@@ -1136,6 +1136,13 @@ radius_server_encapsulate_eap(struct radius_server_data *data,
len)) {
RADIUS_DEBUG("Failed to add MPPE key attributes");
}
+
+ if (sess->eap_if->eapSessionId &&
+ !radius_msg_add_attr(msg, RADIUS_ATTR_EAP_KEY_NAME,
+ sess->eap_if->eapSessionId,
+ sess->eap_if->eapSessionIdLen)) {
+ RADIUS_DEBUG("Failed to add EAP-Key-Name attribute");
+ }
}
#ifdef CONFIG_HS20