EAP: Add "expanded" EAP type to get_name functions
This commit is contained in:
parent
02b915f689
commit
49a191a142
2 changed files with 4 additions and 0 deletions
|
@ -77,6 +77,8 @@ EapType eap_peer_get_type(const char *name, int *vendor)
|
||||||
const char * eap_get_name(int vendor, EapType type)
|
const char * eap_get_name(int vendor, EapType type)
|
||||||
{
|
{
|
||||||
struct eap_method *m;
|
struct eap_method *m;
|
||||||
|
if (vendor == EAP_VENDOR_IETF && type == EAP_TYPE_EXPANDED)
|
||||||
|
return "expanded";
|
||||||
for (m = eap_methods; m; m = m->next) {
|
for (m = eap_methods; m; m = m->next) {
|
||||||
if (m->vendor == vendor && m->method == type)
|
if (m->vendor == vendor && m->method == type)
|
||||||
return m->name;
|
return m->name;
|
||||||
|
|
|
@ -167,6 +167,8 @@ void eap_server_unregister_methods(void)
|
||||||
const char * eap_server_get_name(int vendor, EapType type)
|
const char * eap_server_get_name(int vendor, EapType type)
|
||||||
{
|
{
|
||||||
struct eap_method *m;
|
struct eap_method *m;
|
||||||
|
if (vendor == EAP_VENDOR_IETF && type == EAP_TYPE_EXPANDED)
|
||||||
|
return "expanded";
|
||||||
for (m = eap_methods; m; m = m->next) {
|
for (m = eap_methods; m; m = m->next) {
|
||||||
if (m->vendor == vendor && m->method == type)
|
if (m->vendor == vendor && m->method == type)
|
||||||
return m->name;
|
return m->name;
|
||||||
|
|
Loading…
Reference in a new issue