eapol/eapol_framework/eapol_common/type/tls_peap/tls/src/tls_record.cpp
branchCompilerCompatibility
changeset 14 3f122ca50ab9
parent 2 1c7bc153c08e
equal deleted inserted replaced
13:5431fd16d0e9 14:3f122ca50ab9
    58 
    58 
    59 #define EAP_STATUS_RETURN_AND_CREATE_TLS_PROTOCOL_ALERT(tools, status) \
    59 #define EAP_STATUS_RETURN_AND_CREATE_TLS_PROTOCOL_ALERT(tools, status) \
    60 	EAP_STATUS_RETURN(tools, eap_status_return_and_create_tls_protocol_alert((status)))
    60 	EAP_STATUS_RETURN(tools, eap_status_return_and_create_tls_protocol_alert((status)))
    61 
    61 
    62 
    62 
    63 eap_status_e tls_record_c::eap_status_return_and_create_tls_protocol_alert(
    63 EAP_FUNC_EXPORT eap_status_e tls_record_c::eap_status_return_and_create_tls_protocol_alert(
    64 	const eap_status_e status)
    64 	const eap_status_e status)
    65 {
    65 {
    66 	if (status != eap_status_ok
    66 	if (status != eap_status_ok
    67 		&& status != eap_status_success
    67 		&& status != eap_status_success
    68 		&& status != eap_status_pending_request
    68 		&& status != eap_status_pending_request
  1188 	return EAP_STATUS_RETURN(m_am_tools, status);
  1188 	return EAP_STATUS_RETURN(m_am_tools, status);
  1189 }
  1189 }
  1190 
  1190 
  1191 //--------------------------------------------------
  1191 //--------------------------------------------------
  1192 
  1192 
  1193 void tls_record_c::send_error_notification(const eap_status_e error)
  1193 EAP_FUNC_EXPORT void tls_record_c::send_error_notification(const eap_status_e error)
  1194 {
  1194 {
  1195 	// Notifies the lower level of an authentication error.
  1195 	// Notifies the lower level of an authentication error.
  1196 
  1196 
  1197 	eap_general_state_variable_e general_state_variable(eap_general_state_authentication_error);
  1197 	eap_general_state_variable_e general_state_variable(eap_general_state_authentication_error);
  1198 
  1198