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>
This commit is contained in:
parent
b09670abfb
commit
59fcb3f0b1
1 changed files with 7 additions and 0 deletions
|
@ -1136,6 +1136,13 @@ radius_server_encapsulate_eap(struct radius_server_data *data,
|
||||||
len)) {
|
len)) {
|
||||||
RADIUS_DEBUG("Failed to add MPPE key attributes");
|
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
|
#ifdef CONFIG_HS20
|
||||||
|
|
Loading…
Reference in a new issue