eapol/eapol_framework/eapol_common/type/radius/core/eap_radius_header_string.cpp
changeset 0 c8830336c852
child 2 1c7bc153c08e
equal deleted inserted replaced
-1:000000000000 0:c8830336c852
       
     1 /*
       
     2 * Copyright (c) 2001-2006 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  EAP and WLAN authentication protocols.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // This is enumeration of EAPOL source code.
       
    20 #if defined(USE_EAP_MINIMUM_RELEASE_TRACES)
       
    21 	#undef EAP_FILE_NUMBER_ENUM
       
    22 	#define EAP_FILE_NUMBER_ENUM 106 
       
    23 	#undef EAP_FILE_NUMBER_DATE 
       
    24 	#define EAP_FILE_NUMBER_DATE 1127594498 
       
    25 #endif //#if defined(USE_EAP_MINIMUM_RELEASE_TRACES)
       
    26 
       
    27 
       
    28 
       
    29 /** @file */
       
    30 
       
    31 #include "eap_tools.h"
       
    32 #include "eap_radius_header_string.h"
       
    33 
       
    34 //------------------------------------------------------------------------------
       
    35 
       
    36 EAP_FUNC_EXPORT eap_radius_header_string_c::~eap_radius_header_string_c()
       
    37 {
       
    38 }
       
    39 
       
    40 EAP_FUNC_EXPORT eap_radius_header_string_c::eap_radius_header_string_c()
       
    41 {
       
    42 }
       
    43 
       
    44 EAP_FUNC_EXPORT eap_const_string eap_radius_header_string_c::get_code_string(
       
    45 	const eap_radius_code_value_e code)
       
    46 {
       
    47 #if defined(USE_EAP_TRACE_STRINGS)
       
    48 	EAP_IF_RETURN_STRING(code, eap_radius_code_none)
       
    49 	else EAP_IF_RETURN_STRING(code, eap_radius_code_access_request)
       
    50 	else EAP_IF_RETURN_STRING(code, eap_radius_code_access_accept)
       
    51 	else EAP_IF_RETURN_STRING(code, eap_radius_code_access_reject)
       
    52 	else EAP_IF_RETURN_STRING(code, eap_radius_code_accounting_request)
       
    53 	else EAP_IF_RETURN_STRING(code, eap_radius_code_accounting_response)
       
    54 	else EAP_IF_RETURN_STRING(code, eap_radius_code_access_challenge)
       
    55 	else
       
    56 #endif // #if defined(USE_EAP_TRACE_STRINGS)
       
    57 	{
       
    58 		return EAPL("Unknown EAP-code");
       
    59 	}
       
    60 }
       
    61 
       
    62 //------------------------------------------------------------------------------
       
    63 
       
    64 
       
    65 
       
    66 // End.