equal
deleted
inserted
replaced
14 * Description: EAP and WLAN authentication protocols. |
14 * Description: EAP and WLAN authentication protocols. |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 /* |
18 /* |
19 * %version: 86.1.2 % |
19 * %version: 86.1.2.1.1 % |
20 */ |
20 */ |
21 |
21 |
22 // This is enumeration of EAPOL source code. |
22 // This is enumeration of EAPOL source code. |
23 #if defined(USE_EAP_MINIMUM_RELEASE_TRACES) |
23 #if defined(USE_EAP_MINIMUM_RELEASE_TRACES) |
24 #undef EAP_FILE_NUMBER_ENUM |
24 #undef EAP_FILE_NUMBER_ENUM |
570 // reset index (start from the first enabled EAP type) |
570 // reset index (start from the first enabled EAP type) |
571 m_current_eap_index = ind_type; |
571 m_current_eap_index = ind_type; |
572 |
572 |
573 if (eap_type->get_type() == eap_type_leap) |
573 if (eap_type->get_type() == eap_type_leap) |
574 { |
574 { |
575 if (m_authentication_type == eapol_key_authentication_type_802_1X) |
575 if (m_authentication_type == eapol_key_authentication_type_dynamic_WEP) |
576 { |
576 { |
577 // LEAP uses it's own 802.11 authentication mode when 802.1X (dynamic WEP) is used. |
577 // LEAP uses it's own 802.11 authentication mode when 802.1X (dynamic WEP) is used. |
578 m_802_11_authentication_mode = eapol_key_802_11_authentication_mode_leap; |
578 m_802_11_authentication_mode = eapol_key_802_11_authentication_mode_leap; |
579 |
579 |
580 EAP_TRACE_ALWAYS( |
580 EAP_TRACE_ALWAYS( |
846 return EAP_STATUS_RETURN(m_am_tools, eap_status_process_general_error); |
846 return EAP_STATUS_RETURN(m_am_tools, eap_status_process_general_error); |
847 } |
847 } |
848 |
848 |
849 if (m_authentication_type == eapol_key_authentication_type_RSNA_EAP |
849 if (m_authentication_type == eapol_key_authentication_type_RSNA_EAP |
850 || m_authentication_type == eapol_key_authentication_type_WPA_EAP |
850 || m_authentication_type == eapol_key_authentication_type_WPA_EAP |
851 || m_authentication_type == eapol_key_authentication_type_802_1X |
851 || m_authentication_type == eapol_key_authentication_type_dynamic_WEP |
852 || m_authentication_type == eapol_key_authentication_type_WFA_SC |
852 || m_authentication_type == eapol_key_authentication_type_WFA_SC |
853 #if defined(EAP_USE_WPXM) |
853 #if defined(EAP_USE_WPXM) |
854 || m_authentication_type == eapol_key_authentication_type_WPXM |
854 || m_authentication_type == eapol_key_authentication_type_WPXM |
855 #endif //#if defined(EAP_USE_WPXM) |
855 #endif //#if defined(EAP_USE_WPXM) |
|
856 || m_authentication_type == eapol_key_authentication_type_EAP_authentication_no_encryption |
856 ) |
857 ) |
857 { |
858 { |
858 // Start authentication if mode is not pre-shared key. If mode is pre-shared key then |
859 // Start authentication if mode is not pre-shared key. If mode is pre-shared key then |
859 // just wait for EAPOL-Key frames. |
860 // just wait for EAPOL-Key frames. |
860 WAUTH_ENTER_MUTEX(m_am_tools); |
861 WAUTH_ENTER_MUTEX(m_am_tools); |