]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
EAP peer: Allow VENDOR-TEST method in Phase 2
authorJouni Malinen <j@w1.fi>
Sat, 17 Aug 2019 09:12:57 +0000 (12:12 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 17 Aug 2019 13:14:58 +0000 (16:14 +0300)
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

index a59c52c75370f539bb657f69b856b31173c734bb..d71d00cad61ec701e802f196f7ffbb26f4e7f82c 100644 (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)
 {
+       if (vendor == EAP_VENDOR_HOSTAP)
+               return 1;
        if (vendor != EAP_VENDOR_IETF)
                return 0;
        return type != EAP_TYPE_PEAP && type != EAP_TYPE_TTLS &&