eapol/eapol_framework/eapol_common/type/aka/include/eap_type_aka.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: 23 %
    19 * %version: 20.1.2 %
    20 */
    20 */
    21 
    21 
    22 #if !defined(_AKA_CORE_H_)
    22 #if !defined(_AKA_CORE_H_)
    23 #define _AKA_CORE_H_
    23 #define _AKA_CORE_H_
    24 
    24 
  1292 	EAP_FUNC_IMPORT eap_status_e check_NAI(
  1292 	EAP_FUNC_IMPORT eap_status_e check_NAI(
  1293 		const u8_t * const identity,
  1293 		const u8_t * const identity,
  1294 		const u32_t identity_length,
  1294 		const u32_t identity_length,
  1295 		const u8_t * const at_character);
  1295 		const u8_t * const at_character);
  1296 
  1296 
       
  1297 
       
  1298 #if defined(USE_EAP_TRACE)
       
  1299 
  1297 	/**
  1300 	/**
  1298 	 * This function traces the EAP packet.
  1301 	 * This function traces the EAP packet.
  1299 	 */
  1302 	 */
  1300 	EAP_FUNC_IMPORT void packet_trace(
  1303 	EAP_FUNC_IMPORT void packet_trace(
  1301 		eap_const_string prefix,
  1304 		eap_const_string prefix,
  1302 		const eap_am_network_id_c * const receive_network_id,
  1305 		const eap_am_network_id_c * const receive_network_id,
  1303 		eap_header_wr_c * const received_eap,
  1306 		eap_header_wr_c * const received_eap,
  1304 		const u32_t eap_packet_length);
  1307 		const u32_t eap_packet_length);
  1305 
       
  1306 #if defined(USE_EAP_TRACE)
       
  1307 
  1308 
  1308 	#define EAP_AKA_PACKET_TRACE(prefix, receive_network_id, received_eap, eap_packet_length) \
  1309 	#define EAP_AKA_PACKET_TRACE(prefix, receive_network_id, received_eap, eap_packet_length) \
  1309 			packet_trace((prefix), (receive_network_id), (received_eap), (eap_packet_length))
  1310 			packet_trace((prefix), (receive_network_id), (received_eap), (eap_packet_length))
  1310 
  1311 
  1311 #else
  1312 #else
  1935 
  1936 
  1936 	EAP_FUNC_IMPORT eap_status_e cancel_timer(
  1937 	EAP_FUNC_IMPORT eap_status_e cancel_timer(
  1937 		abs_eap_base_timer_c * const p_initializer, 
  1938 		abs_eap_base_timer_c * const p_initializer, 
  1938 		const u32_t p_id);
  1939 		const u32_t p_id);
  1939 
  1940 
       
  1941 	//
       
  1942 	EAP_FUNC_IMPORT eap_status_e cancel_all_timers();
       
  1943 
  1940 	EAP_FUNC_IMPORT static eap_const_string get_identity_string(const eap_type_aka_identity_type identity_type);
  1944 	EAP_FUNC_IMPORT static eap_const_string get_identity_string(const eap_type_aka_identity_type identity_type);
  1941 
  1945 
  1942 	/**
  1946 	/**
  1943 	 * This function returns string of the state. This is for trace purposes.
  1947 	 * This function returns string of the state. This is for trace purposes.
  1944 	 * NOTE this is static member function.
  1948 	 * NOTE this is static member function.