aboutsummaryrefslogtreecommitdiffstats
path: root/src/radius
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-07-31 16:53:25 (GMT)
committerJouni Malinen <j@w1.fi>2014-07-31 16:55:29 (GMT)
commit6c460eaf7e33b52ac7976ddf87133bdbfe050d41 (patch)
treecabc7bfb1db640417f5c761ad2a35d5bd5052c4d /src/radius
parentcdffd72173c189a44fd2b27dab00e78c876b18ef (diff)
downloadhostap-6c460eaf7e33b52ac7976ddf87133bdbfe050d41.zip
hostap-6c460eaf7e33b52ac7976ddf87133bdbfe050d41.tar.gz
hostap-6c460eaf7e33b52ac7976ddf87133bdbfe050d41.tar.bz2
Add RSN cipher/AKM suite attributes into RADIUS messages
This adds hostapd support for the new WLAN-Pairwise-Cipher, WLAN-Group-Cipher, WLAN-AKM-Suite, and WLAN-Group-Mgmt-Pairwise-Cipher attributes defined in RFC 7268. These attributes are added to RADIUS messages when the station negotiates use of WPA/RSN. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/radius')
-rw-r--r--src/radius/radius.c8
-rw-r--r--src/radius/radius.h4
2 files changed, 12 insertions, 0 deletions
diff --git a/src/radius/radius.c b/src/radius/radius.c
index 8bcf2f5..f3b645d 100644
--- a/src/radius/radius.c
+++ b/src/radius/radius.c
@@ -236,6 +236,14 @@ static struct radius_attr_type radius_attrs[] =
{ RADIUS_ATTR_MOBILITY_DOMAIN_ID, "Mobility-Domain-Id",
RADIUS_ATTR_INT32 },
{ RADIUS_ATTR_WLAN_HESSID, "WLAN-HESSID", RADIUS_ATTR_TEXT },
+ { RADIUS_ATTR_WLAN_PAIRWISE_CIPHER, "WLAN-Pairwise-Cipher",
+ RADIUS_ATTR_HEXDUMP },
+ { RADIUS_ATTR_WLAN_GROUP_CIPHER, "WLAN-Group-Cipher",
+ RADIUS_ATTR_HEXDUMP },
+ { RADIUS_ATTR_WLAN_AKM_SUITE, "WLAN-AKM-Suite",
+ RADIUS_ATTR_HEXDUMP },
+ { RADIUS_ATTR_WLAN_GROUP_MGMT_CIPHER, "WLAN-Group-Mgmt-Pairwise-Cipher",
+ RADIUS_ATTR_HEXDUMP },
};
#define RADIUS_ATTRS ARRAY_SIZE(radius_attrs)
diff --git a/src/radius/radius.h b/src/radius/radius.h
index 4ff7391..62faae1 100644
--- a/src/radius/radius.h
+++ b/src/radius/radius.h
@@ -94,6 +94,10 @@ enum { RADIUS_ATTR_USER_NAME = 1,
RADIUS_ATTR_EAP_KEY_NAME = 102,
RADIUS_ATTR_MOBILITY_DOMAIN_ID = 177,
RADIUS_ATTR_WLAN_HESSID = 181,
+ RADIUS_ATTR_WLAN_PAIRWISE_CIPHER = 186,
+ RADIUS_ATTR_WLAN_GROUP_CIPHER = 187,
+ RADIUS_ATTR_WLAN_AKM_SUITE = 188,
+ RADIUS_ATTR_WLAN_GROUP_MGMT_CIPHER = 189,
};