eapol/eapol_framework/eapol_common/am/include/eap_am_tools.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.1.2 %
    19 * %version: 10 %
    20 */
    20 */
    21 
    21 
    22 #if !defined( _EAP_AM_TOOLS_H_ )
    22 #if !defined( _EAP_AM_TOOLS_H_ )
    23 #define _EAP_AM_TOOLS_H_
    23 #define _EAP_AM_TOOLS_H_
    24 
    24 
   118 		eap_trace_mask_crypto_test_random = (1u << 11u), ///< This value traces only internal state of test random generator.
   118 		eap_trace_mask_crypto_test_random = (1u << 11u), ///< This value traces only internal state of test random generator.
   119 		eap_trace_mask_message_data       = (1u << 12u), ///< This value traces only data of the messages, this will increase trace bloat.
   119 		eap_trace_mask_message_data       = (1u << 12u), ///< This value traces only data of the messages, this will increase trace bloat.
   120 		eap_trace_mask_hash_map           = (1u << 13u), ///< This value traces only data of hash table. It does map data and selector.
   120 		eap_trace_mask_hash_map           = (1u << 13u), ///< This value traces only data of hash table. It does map data and selector.
   121 		eap_trace_mask_timer_queue        = (1u << 14u), ///< This value traces the timer queue.
   121 		eap_trace_mask_timer_queue        = (1u << 14u), ///< This value traces the timer queue.
   122 		eap_trace_mask_ok_returns         = (1u << 15u), ///< This value traces the OK return values, alot of them.
   122 		eap_trace_mask_ok_returns         = (1u << 15u), ///< This value traces the OK return values, alot of them.
   123 		eap_trace_mask_trace_never        = (1u << 16u), ///< This value never traces. This can disable trace always.
       
   124 	};
   123 	};
   125 
   124 
   126 	EAP_FUNC_IMPORT u8_t octet_to_ascii(i32_t octet);
   125 	EAP_FUNC_IMPORT u8_t octet_to_ascii(i32_t octet);
   127 
   126 
   128 	EAP_FUNC_IMPORT u8_t ascii_to_octet(i32_t character);
   127 	EAP_FUNC_IMPORT u8_t ascii_to_octet(i32_t character);
   320 const u32_t TRACE_FLAGS_TIMER = eap_am_tools_c::eap_trace_mask_timer;
   319 const u32_t TRACE_FLAGS_TIMER = eap_am_tools_c::eap_trace_mask_timer;
   321 const u32_t TRACE_FLAGS_TIMER_QUEUE = eap_am_tools_c::eap_trace_mask_timer_queue;
   320 const u32_t TRACE_FLAGS_TIMER_QUEUE = eap_am_tools_c::eap_trace_mask_timer_queue;
   322 
   321 
   323 const u32_t TRACE_FLAGS_OK_RETURNS = eap_am_tools_c::eap_trace_mask_ok_returns;
   322 const u32_t TRACE_FLAGS_OK_RETURNS = eap_am_tools_c::eap_trace_mask_ok_returns;
   324 
   323 
   325 const u32_t EAP_TRACE_FLAGS_NEVER = eap_am_tools_c::eap_trace_mask_trace_never;
       
   326 
       
   327 //-----------------------------------------------------------------------------------------------
   324 //-----------------------------------------------------------------------------------------------
   328 
   325 
   329 #if !defined(USE_EAP_STATUS_RETURN)
   326 #if !defined(USE_EAP_STATUS_RETURN)
   330 
   327 
   331 	#define EAP_STATUS_RETURN(tools, status) (status)
   328 	#define EAP_STATUS_RETURN(tools, status) (status)