eapol/eapol_framework/eapol_common/type/gsmsim/include/eap_type_gsmsim.h
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: 8 %
    19 * %version: 5.1.2 %
    20 */
    20 */
    21 
    21 
    22 #if !defined(_GSMSIM_CORE_H_)
    22 #if !defined(_GSMSIM_CORE_H_)
    23 #define _GSMSIM_CORE_H_
    23 #define _GSMSIM_CORE_H_
    24 
    24 
  1514 		const u32_t identity_length,
  1514 		const u32_t identity_length,
  1515 		const u8_t * const at_character);
  1515 		const u8_t * const at_character);
  1516 #endif //#if defined(USE_EAP_TYPE_SERVER_GSMSIM)
  1516 #endif //#if defined(USE_EAP_TYPE_SERVER_GSMSIM)
  1517 
  1517 
  1518 
  1518 
       
  1519 #if defined(USE_EAP_TRACE)
       
  1520 
  1519 	/**
  1521 	/**
  1520 	 * This function traces the EAP packet.
  1522 	 * This function traces the EAP packet.
  1521 	 */
  1523 	 */
  1522 	EAP_FUNC_IMPORT void packet_trace(
  1524 	EAP_FUNC_IMPORT void packet_trace(
  1523 		eap_const_string prefix,
  1525 		eap_const_string prefix,
  1524 		const eap_am_network_id_c * const receive_network_id,
  1526 		const eap_am_network_id_c * const receive_network_id,
  1525 		eap_header_wr_c * const received_eap,
  1527 		eap_header_wr_c * const received_eap,
  1526 		const u32_t eap_packet_length);
  1528 		const u32_t eap_packet_length);
  1527 
       
  1528 #if defined(USE_EAP_TRACE)
       
  1529 
  1529 
  1530 	#define EAP_GSMSIM_PACKET_TRACE(prefix, receive_network_id, received_eap, eap_packet_length) \
  1530 	#define EAP_GSMSIM_PACKET_TRACE(prefix, receive_network_id, received_eap, eap_packet_length) \
  1531 			packet_trace((prefix), (receive_network_id), (received_eap), (eap_packet_length))
  1531 			packet_trace((prefix), (receive_network_id), (received_eap), (eap_packet_length))
  1532 
  1532 
  1533 #else
  1533 #else
  1857 
  1857 
  1858 	EAP_FUNC_IMPORT eap_status_e cancel_timer(
  1858 	EAP_FUNC_IMPORT eap_status_e cancel_timer(
  1859 		abs_eap_base_timer_c * const p_initializer, 
  1859 		abs_eap_base_timer_c * const p_initializer, 
  1860 		const u32_t p_id);
  1860 		const u32_t p_id);
  1861 
  1861 
       
  1862 	//
       
  1863 	EAP_FUNC_IMPORT eap_status_e cancel_all_timers();
       
  1864 
  1862 	//--------------------------------------------------
  1865 	//--------------------------------------------------
  1863 }; // class eap_type_gsmsim_c
  1866 }; // class eap_type_gsmsim_c
  1864 
  1867 
  1865 #endif //#if !defined(_GSMSIM_CORE_H_)
  1868 #endif //#if !defined(_GSMSIM_CORE_H_)
  1866 
  1869