EAP peer: Allow VENDOR-TEST method in Phase 2

This allows EAP methods to be tested for support of expanded EAP headers
in Phase 2.

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2019-08-17 12:12:57 +03:00
parent 5ddbd9e968
commit f2ef4f2550

View file

@ -2601,6 +2601,8 @@ void eap_sm_notify_ctrl_attached(struct eap_sm *sm)
static int eap_allowed_phase2_type(int vendor, int type) static int eap_allowed_phase2_type(int vendor, int type)
{ {
if (vendor == EAP_VENDOR_HOSTAP)
return 1;
if (vendor != EAP_VENDOR_IETF) if (vendor != EAP_VENDOR_IETF)
return 0; return 0;
return type != EAP_TYPE_PEAP && type != EAP_TYPE_TTLS && return type != EAP_TYPE_PEAP && type != EAP_TYPE_TTLS &&