eapol/eapol_framework/eapol_common/type/tls_peap/eap/src/eap_type_tls_peap.cpp
changeset 49 43351a4f2da3
parent 26 9abfd4f00d37
equal deleted inserted replaced
47:712b4ffd76bb 49:43351a4f2da3
    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: 91 %
    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
  1144 		 eap_header_string_c::get_eap_type_string(m_current_eap_type),
  1144 		 eap_header_string_c::get_eap_type_string(m_current_eap_type),
  1145 		 get_tls_session_type(),
  1145 		 get_tls_session_type(),
  1146 		 eap_tls_trace_string_c::get_tls_session_type_string(get_tls_session_type()),
  1146 		 eap_tls_trace_string_c::get_tls_session_type_string(get_tls_session_type()),
  1147 		 eap_tls_trace_string_c::get_peap_version_string(m_current_peap_version)));
  1147 		 eap_tls_trace_string_c::get_peap_version_string(m_current_peap_version)));
  1148 
  1148 
       
  1149 	EAP_TRACE_RETURN_STRING(m_am_tools, "returns: eap_type_tls_peap_c::finish_successful_authentication()");
       
  1150 
  1149 	eap_status_e status(eap_status_process_general_error);
  1151 	eap_status_e status(eap_status_process_general_error);
  1150 
  1152 
  1151 	if (do_quiet_finish == false)
  1153 	if (do_quiet_finish == false)
  1152 	{
  1154 	{
  1153 		if (get_master_session_key()->get_is_valid_data() == false
  1155 		if (get_master_session_key()->get_is_valid_data() == false
  1239 		TRACE_FLAGS_DEFAULT,
  1241 		TRACE_FLAGS_DEFAULT,
  1240 		(EAPL("EAP_type_TLS_PEAP: %s: function: eap_type_tls_peap_c::send_final_notification(): m_is_valid=%d, m_authentication_finished_successfully=%d\n"),
  1242 		(EAPL("EAP_type_TLS_PEAP: %s: function: eap_type_tls_peap_c::send_final_notification(): m_is_valid=%d, m_authentication_finished_successfully=%d\n"),
  1241 		(m_is_client == true ? "client": "server"),
  1243 		(m_is_client == true ? "client": "server"),
  1242 		m_is_valid,
  1244 		m_is_valid,
  1243 		m_authentication_finished_successfully));
  1245 		m_authentication_finished_successfully));
       
  1246 
       
  1247 	EAP_TRACE_RETURN_STRING(m_am_tools, "returns: eap_type_tls_peap_c::send_final_notification()");
  1244 
  1248 
  1245 	if (m_is_valid == true 
  1249 	if (m_is_valid == true 
  1246 		&& m_authentication_finished_successfully == false)
  1250 		&& m_authentication_finished_successfully == false)
  1247 	{
  1251 	{
  1248 		eap_tls_trace_string_c tls_trace;
  1252 		eap_tls_trace_string_c tls_trace;