eapol/eapol_framework/eapol_common/core/eapol_key_state_string.cpp
branchRCL_3
changeset 18 bad0cc58d154
parent 9 aa67149e0134
child 19 c74b3d9f6b9e
equal deleted inserted replaced
17:30e048a7b597 18:bad0cc58d154
    14 * Description:  EAP and WLAN authentication protocols.
    14 * Description:  EAP and WLAN authentication protocols.
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 /*
    18 /*
    19 * %version: 9.1.2 %
    19 * %version: 12 %
    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
    25 	#define EAP_FILE_NUMBER_ENUM 50 
    25 	#define EAP_FILE_NUMBER_ENUM 719 
    26 	#undef EAP_FILE_NUMBER_DATE 
    26 	#undef EAP_FILE_NUMBER_DATE 
    27 	#define EAP_FILE_NUMBER_DATE 1127594498 
    27 	#define EAP_FILE_NUMBER_DATE 1127594498 
    28 #endif //#if defined(USE_EAP_MINIMUM_RELEASE_TRACES)
    28 #endif //#if defined(USE_EAP_MINIMUM_RELEASE_TRACES)
    29 
    29 
    30 
    30 
   101 	else EAP_IF_RETURN_STRING(handshake_type, eapol_key_handshake_type_WPXM_reassociation)
   101 	else EAP_IF_RETURN_STRING(handshake_type, eapol_key_handshake_type_WPXM_reassociation)
   102 #endif //#if defined(EAP_USE_WPXM)
   102 #endif //#if defined(EAP_USE_WPXM)
   103 #if defined(USE_WAPI_CORE)
   103 #if defined(USE_WAPI_CORE)
   104 	else EAP_IF_RETURN_STRING(handshake_type, eapol_key_handshake_type_wai_handshake)
   104 	else EAP_IF_RETURN_STRING(handshake_type, eapol_key_handshake_type_wai_handshake)
   105 #endif //#if defined(USE_WAPI_CORE)
   105 #endif //#if defined(USE_WAPI_CORE)
       
   106 	else EAP_IF_RETURN_STRING(handshake_type, eapol_key_handshake_type_authenticated)
   106 	else
   107 	else
   107 #endif // #if defined(USE_EAP_TRACE_STRINGS)
   108 #endif // #if defined(USE_EAP_TRACE_STRINGS)
   108 	{
   109 	{
   109 		EAP_UNREFERENCED_PARAMETER(handshake_type);
   110 		EAP_UNREFERENCED_PARAMETER(handshake_type);
   110 
   111 
   126 	else EAP_IF_RETURN_STRING(authentication_type, eapol_key_authentication_type_WPA_PSK)
   127 	else EAP_IF_RETURN_STRING(authentication_type, eapol_key_authentication_type_WPA_PSK)
   127 	else EAP_IF_RETURN_STRING(authentication_type, eapol_key_authentication_type_dynamic_WEP)
   128 	else EAP_IF_RETURN_STRING(authentication_type, eapol_key_authentication_type_dynamic_WEP)
   128 #if defined(EAP_USE_WPXM)
   129 #if defined(EAP_USE_WPXM)
   129 	else EAP_IF_RETURN_STRING(authentication_type, eapol_key_authentication_type_WPXM)
   130 	else EAP_IF_RETURN_STRING(authentication_type, eapol_key_authentication_type_WPXM)
   130 #endif //#if defined(EAP_USE_WPXM)
   131 #endif //#if defined(EAP_USE_WPXM)
   131 	else EAP_IF_RETURN_STRING(authentication_type, eapol_key_authentication_type_WFA_SC)
   132 	else EAP_IF_RETURN_STRING(authentication_type, eapol_key_authentication_type_WPS)
   132 #if defined(USE_WAPI_CORE)
   133 #if defined(USE_WAPI_CORE)
   133 	else EAP_IF_RETURN_STRING(authentication_type, eapol_key_authentication_type_WAI_PSK)
   134 	else EAP_IF_RETURN_STRING(authentication_type, eapol_key_authentication_type_WAI_PSK)
   134 	else EAP_IF_RETURN_STRING(authentication_type, eapol_key_authentication_type_WAI_certificate)
   135 	else EAP_IF_RETURN_STRING(authentication_type, eapol_key_authentication_type_WAI_certificate)
   135 #endif //#if defined(USE_WAPI_CORE)
   136 #endif //#if defined(USE_WAPI_CORE)
   136 	else EAP_IF_RETURN_STRING(authentication_type, eapol_key_authentication_type_EAP_authentication_no_encryption)
   137 	else EAP_IF_RETURN_STRING(authentication_type, eapol_key_authentication_type_EAP_authentication_no_encryption)
   144 	}
   145 	}
   145 }
   146 }
   146 
   147 
   147 //--------------------------------------------------
   148 //--------------------------------------------------
   148 
   149 
   149 eap_const_string eapol_key_state_string_c::get_eapol_key_descriptor_type_string(
   150 EAP_FUNC_EXPORT eap_const_string eapol_key_state_string_c::get_eapol_key_descriptor_type_string(
   150 	const eapol_key_descriptor_type_e key_descriptor_type)
   151 	const eapol_key_descriptor_type_e key_descriptor_type)
   151 {
   152 {
   152 
   153 
   153 #if defined(USE_EAP_TRACE_STRINGS)
   154 #if defined(USE_EAP_TRACE_STRINGS)
   154 	EAP_IF_RETURN_STRING(key_descriptor_type, eapol_key_descriptor_type_none)
   155 	EAP_IF_RETURN_STRING(key_descriptor_type, eapol_key_descriptor_type_none)