From f2ef4f2550edc94734ec2b14d559f21004ba097d Mon Sep 17 00:00:00 2001 From: Jouni Malinen <j@w1.fi> Date: Sat, 17 Aug 2019 12:12:57 +0300 Subject: [PATCH] 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> --- src/eap_peer/eap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/eap_peer/eap.c b/src/eap_peer/eap.c index a59c52c75..d71d00cad 100644 --- a/src/eap_peer/eap.c +++ b/src/eap_peer/eap.c @@ -2601,6 +2601,8 @@ void eap_sm_notify_ctrl_attached(struct eap_sm *sm) static int eap_allowed_phase2_type(int vendor, int type) { + if (vendor == EAP_VENDOR_HOSTAP) + return 1; if (vendor != EAP_VENDOR_IETF) return 0; return type != EAP_TYPE_PEAP && type != EAP_TYPE_TTLS &&