eapol/eapol_framework/eapol_symbian/am/common/symbian/EapConfigToolsSymbian.cpp
changeset 39 fe6b6762fccd
parent 33 938269283a16
equal deleted inserted replaced
38:7a0216d033ac 39:fe6b6762fccd
     1 /*
     1 /*
     2 * Copyright (c) 2001-2006 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2001-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of the License "Eclipse Public License v1.0"
     5 * under the terms of the License "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     9 * Initial Contributors:
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:  EAP and WLAN authentication protocols.
    14 * Description:  Some tools used in Symbian.
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 /*
    18 /*
    19 * %version: 2 %
    19 * %version: 6 %
    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 151 
    25 	#define EAP_FILE_NUMBER_ENUM 725 
    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 #include "eap_config.h"
    30 #include "eap_config.h"
    33 #include "eap_automatic_variable.h"
    33 #include "eap_automatic_variable.h"
    34 #include "EapConfigToolsSymbian.h"
    34 #include "EapConfigToolsSymbian.h"
    35 
    35 
    36 #include "EapConversion.h"
    36 #include "EapConversion.h"
    37 
    37 
    38 #include <EapPluginTools.h>
    38 #include "EapPluginTools.h"
    39 
    39 
    40 //--------------------------------------------------
    40 //--------------------------------------------------
    41 
    41 
    42 eap_status_e EapConfigToolsSymbian::EapReadDefaultConfigFileSymbian(
    42 eap_status_e EapConfigToolsSymbian::EapReadDefaultConfigFileSymbian(
    43 	abs_eap_am_tools_c * const aAmTools,
    43 	abs_eap_am_tools_c * const aAmTools,
   194 						aAmTools,
   194 						aAmTools,
   195 						TRACE_FLAGS_DEFAULT,
   195 						TRACE_FLAGS_DEFAULT,
   196 						(EAPL("Opens configure file %s\n"),
   196 						(EAPL("Opens configure file %s\n"),
   197 						file_name_c_data.get_data(file_name_c_data.get_data_length())));
   197 						file_name_c_data.get_data(file_name_c_data.get_data_length())));
   198 				}
   198 				}
   199 				else if (status != eap_status_ok)
   199 				else
   200 				{
   200 				{
   201 					// Second try open from Z: disk.
   201 					// Second try open from Z: disk.
   202 					status = fileio->file_open(
   202 					status = fileio->file_open(
   203 						&file_name_z_data,
   203 						&file_name_z_data,
   204 						eap_file_io_direction_read);
   204 						eap_file_io_direction_read);