diff -r 30e048a7b597 -r bad0cc58d154 eapol/eapol_framework/eapol_common/am/include/eap_am_pac_store.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/eapol/eapol_framework/eapol_common/am/include/eap_am_pac_store.h Tue Aug 31 15:16:37 2010 +0300 @@ -0,0 +1,93 @@ +/* +* 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. +* +*/ + +/* +* %version: % +*/ + +#if !defined(_EAP_AM_PAC_STORE_H_) +#define _EAP_AM_PAC_STORE_H_ + +#include "eap_tools.h" +#include "eap_status.h" +#include "eap_am_export.h" +#include "eap_expanded_type.h" +#include "eap_array.h" +#include "eap_database_reference_if.h" + +class eap_method_settings_c; +class abs_eap_am_pac_store_c; + +/** @file */ + +/// This class is the common part of EAP message interface. +/// This class is interface to the message creation and parsing function. +class EAP_EXPORT eap_am_pac_store_c +{ + +private: + + // ---------------------------------------------------------------------- + +public: + + virtual ~eap_am_pac_store_c() + { + } + + virtual bool get_is_valid() = 0; + + // This is documented in abs_eap_stack_interface_c::configure(). + virtual eap_status_e configure() = 0; + + // This is documented in abs_eap_stack_interface_c::shutdown(). + virtual eap_status_e shutdown() = 0; + + virtual eap_status_e open_pac_store() = 0; + + virtual eap_status_e create_device_seed() = 0; + + virtual eap_status_e is_master_key_present() = 0; + + virtual eap_status_e is_master_key_and_password_matching( + const eap_variable_data_c * const pac_store_password) = 0; + + virtual eap_status_e create_and_save_master_key( + const eap_variable_data_c * const pac_store_password) = 0; + + virtual eap_status_e compare_pac_store_password( + eap_variable_data_c * pac_store_password) = 0; + + virtual eap_status_e is_pacstore_password_present() = 0; + + virtual eap_status_e set_pac_store_password( + const eap_variable_data_c * pac_store_password) = 0; + + virtual eap_status_e destroy_pac_store() = 0; + + // ---------------------------------------------------------------------- +}; + +eap_am_pac_store_c * new_eap_am_pac_store_c( + abs_eap_am_tools_c * const tools, + abs_eap_am_pac_store_c * const partner); + +#endif //#if !defined(_EAP_AM_PAC_STORE_H_) + + +//-------------------------------------------------- +// End