eapol/eapol_framework/eapol_common/type/radius/core/eap_radius_header_string.cpp
changeset 0 c8830336c852
child 2 1c7bc153c08e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/eapol/eapol_framework/eapol_common/type/radius/core/eap_radius_header_string.cpp	Thu Dec 17 08:47:43 2009 +0200
@@ -0,0 +1,66 @@
+/*
+* Copyright (c) 2001-2006 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of the License "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:  EAP and WLAN authentication protocols.
+*
+*/
+
+
+// This is enumeration of EAPOL source code.
+#if defined(USE_EAP_MINIMUM_RELEASE_TRACES)
+	#undef EAP_FILE_NUMBER_ENUM
+	#define EAP_FILE_NUMBER_ENUM 106 
+	#undef EAP_FILE_NUMBER_DATE 
+	#define EAP_FILE_NUMBER_DATE 1127594498 
+#endif //#if defined(USE_EAP_MINIMUM_RELEASE_TRACES)
+
+
+
+/** @file */
+
+#include "eap_tools.h"
+#include "eap_radius_header_string.h"
+
+//------------------------------------------------------------------------------
+
+EAP_FUNC_EXPORT eap_radius_header_string_c::~eap_radius_header_string_c()
+{
+}
+
+EAP_FUNC_EXPORT eap_radius_header_string_c::eap_radius_header_string_c()
+{
+}
+
+EAP_FUNC_EXPORT eap_const_string eap_radius_header_string_c::get_code_string(
+	const eap_radius_code_value_e code)
+{
+#if defined(USE_EAP_TRACE_STRINGS)
+	EAP_IF_RETURN_STRING(code, eap_radius_code_none)
+	else EAP_IF_RETURN_STRING(code, eap_radius_code_access_request)
+	else EAP_IF_RETURN_STRING(code, eap_radius_code_access_accept)
+	else EAP_IF_RETURN_STRING(code, eap_radius_code_access_reject)
+	else EAP_IF_RETURN_STRING(code, eap_radius_code_accounting_request)
+	else EAP_IF_RETURN_STRING(code, eap_radius_code_accounting_response)
+	else EAP_IF_RETURN_STRING(code, eap_radius_code_access_challenge)
+	else
+#endif // #if defined(USE_EAP_TRACE_STRINGS)
+	{
+		return EAPL("Unknown EAP-code");
+	}
+}
+
+//------------------------------------------------------------------------------
+
+
+
+// End.