eapol/eapol_framework/eapol_common/type/radius/core/eap_radius_session.cpp
branchRCL_3
changeset 18 bad0cc58d154
parent 2 1c7bc153c08e
child 19 c74b3d9f6b9e
equal deleted inserted replaced
17:30e048a7b597 18:bad0cc58d154
    14 * Description:  EAP and WLAN authentication protocols.
    14 * Description:  EAP and WLAN authentication protocols.
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 /*
    18 /*
    19 * %version: 11.1.2 %
    19 * %version: %
    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
   945 	return EAP_STATUS_RETURN(m_am_tools, eap_status_ok);
   945 	return EAP_STATUS_RETURN(m_am_tools, eap_status_ok);
   946 }
   946 }
   947 
   947 
   948 //--------------------------------------------------
   948 //--------------------------------------------------
   949 
   949 
   950 EAP_FUNC_EXPORT eap_status_e eap_radius_session_c::synchronous_remove_eap_session(
   950 EAP_FUNC_EXPORT eap_status_e eap_radius_session_c::remove_eap_session(
       
   951 	const bool complete_to_lower_layer,
   951 	const eap_am_network_id_c * const receive_network_id)
   952 	const eap_am_network_id_c * const receive_network_id)
   952 {
   953 {
   953 	EAP_TRACE_BEGIN(m_am_tools, TRACE_FLAGS_DEFAULT);
   954 	EAP_TRACE_BEGIN(m_am_tools, TRACE_FLAGS_DEFAULT);
   954 
   955 
   955 	// Here we swap the addresses.
   956 	// Here we swap the addresses.
  1016 		m_am_tools, 
  1017 		m_am_tools, 
  1017 		TRACE_FLAGS_DEFAULT, 
  1018 		TRACE_FLAGS_DEFAULT, 
  1018 		(EAPL("eap_radius_session_c::asynchronous_init_remove_eap_session(): %s.\n"),
  1019 		(EAPL("eap_radius_session_c::asynchronous_init_remove_eap_session(): %s.\n"),
  1019 		 (m_is_client == true) ? "client": "server"));
  1020 		 (m_is_client == true) ? "client": "server"));
  1020 
  1021 
  1021 	// NOTE: we cannot call directly synchronous_remove_eap_session(), because we will
  1022 	// NOTE: we cannot call directly remove_eap_session(), because we will
  1022 	// return from here to removed object.
  1023 	// return from here to removed object.
  1023 
  1024 
  1024 	eap_status_e status = eap_status_process_general_error;
  1025 	eap_status_e status = eap_status_process_general_error;
  1025 
  1026 
  1026 	if (m_eap_core != 0)
  1027 	if (m_eap_core != 0)