aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2011-08-28 16:23:16 (GMT)
committerJouni Malinen <j@w1.fi>2011-08-28 16:23:16 (GMT)
commit49a191a1421483c2a6c5094a9e60aa0c787703d4 (patch)
treeb1378ab92d99c2029020290ac18e5778368e2a22
parent02b915f689d4e53ce1a09636d5b416209396c889 (diff)
downloadhostap-49a191a1421483c2a6c5094a9e60aa0c787703d4.zip
hostap-49a191a1421483c2a6c5094a9e60aa0c787703d4.tar.gz
hostap-49a191a1421483c2a6c5094a9e60aa0c787703d4.tar.bz2
EAP: Add "expanded" EAP type to get_name functions
-rw-r--r--src/eap_peer/eap_methods.c2
-rw-r--r--src/eap_server/eap_server_methods.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/eap_peer/eap_methods.c b/src/eap_peer/eap_methods.c
index 3b0af05..937fd45 100644
--- a/src/eap_peer/eap_methods.c
+++ b/src/eap_peer/eap_methods.c
@@ -77,6 +77,8 @@ EapType eap_peer_get_type(const char *name, int *vendor)
const char * eap_get_name(int vendor, EapType type)
{
struct eap_method *m;
+ if (vendor == EAP_VENDOR_IETF && type == EAP_TYPE_EXPANDED)
+ return "expanded";
for (m = eap_methods; m; m = m->next) {
if (m->vendor == vendor && m->method == type)
return m->name;
diff --git a/src/eap_server/eap_server_methods.c b/src/eap_server/eap_server_methods.c
index 900a5dd..4d241a4 100644
--- a/src/eap_server/eap_server_methods.c
+++ b/src/eap_server/eap_server_methods.c
@@ -167,6 +167,8 @@ void eap_server_unregister_methods(void)
const char * eap_server_get_name(int vendor, EapType type)
{
struct eap_method *m;
+ if (vendor == EAP_VENDOR_IETF && type == EAP_TYPE_EXPANDED)
+ return "expanded";
for (m = eap_methods; m; m = m->next) {
if (m->vendor == vendor && m->method == type)
return m->name;