eapol/eapol_framework/eapol_common/type/gsmsim/core/eap_type_gsmsim_state.cpp
branchRCL_3
changeset 46 c74b3d9f6b9e
parent 45 bad0cc58d154
equal deleted inserted replaced
45:bad0cc58d154 46:c74b3d9f6b9e
    14 * Description:  EAP and WLAN authentication protocols.
    14 * Description:  EAP and WLAN authentication protocols.
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 /*
    18 /*
    19 * %version: %
    19 * %version: 9 %
    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
    74 	return false;
    74 	return false;
    75 }
    75 }
    76 
    76 
    77 EAP_FUNC_EXPORT bool eap_type_gsmsim_state_variable_parameters_c::check_initiator(const bool is_initiator) const
    77 EAP_FUNC_EXPORT bool eap_type_gsmsim_state_variable_parameters_c::check_initiator(const bool is_initiator) const
    78 {
    78 {
    79 	if ((m_must_be_initiator == true && is_initiator == false)
    79 	if (m_must_be_initiator == true && is_initiator == false
    80 		|| (m_must_be_responder == true && is_initiator == true))
    80 		|| m_must_be_responder == true && is_initiator == true)
    81 	{
    81 	{
    82 		return false;
    82 		return false;
    83 	}
    83 	}
    84 	return true;
    84 	return true;
    85 }
    85 }