eapol/eapol_framework/eapol_symbian/eap_if/include/EapFastPacStoreImpl.h
changeset 52 c23bdf5a328a
parent 33 938269283a16
equal deleted inserted replaced
51:e863583e6720 52:c23bdf5a328a
    14 * Description:  EAP and WLAN authentication protocols.
    14 * Description:  EAP and WLAN authentication protocols.
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 /*
    18 /*
    19 * %version: %
    19 * %version: 14 %
    20 */
    20 */
    21 
    21 
       
    22 #include "eap_am_export.h"
       
    23 // Start: added by script change_export_macros.sh.
       
    24 #if defined(EAP_NO_EXPORT_EAPFASTPACSTOREIMPL_H)
       
    25 	#define EAP_CLASS_VISIBILITY_EAPFASTPACSTOREIMPL_H EAP_NONSHARABLE 
       
    26 	#define EAP_FUNC_VISIBILITY_EAPFASTPACSTOREIMPL_H 
       
    27 	#define EAP_C_FUNC_VISIBILITY_EAPFASTPACSTOREIMPL_H 
       
    28 	#define EAP_FUNC_EXPORT_EAPFASTPACSTOREIMPL_H 
       
    29 	#define EAP_C_FUNC_EXPORT_EAPFASTPACSTOREIMPL_H 
       
    30 #elif defined(EAP_EXPORT_EAPFASTPACSTOREIMPL_H)
       
    31 	#define EAP_CLASS_VISIBILITY_EAPFASTPACSTOREIMPL_H EAP_EXPORT 
       
    32 	#define EAP_FUNC_VISIBILITY_EAPFASTPACSTOREIMPL_H EAP_FUNC_EXPORT 
       
    33 	#define EAP_C_FUNC_VISIBILITY_EAPFASTPACSTOREIMPL_H EAP_C_FUNC_EXPORT 
       
    34 	#define EAP_FUNC_EXPORT_EAPFASTPACSTOREIMPL_H EAP_FUNC_EXPORT 
       
    35 	#define EAP_C_FUNC_EXPORT_EAPFASTPACSTOREIMPL_H EAP_C_FUNC_EXPORT 
       
    36 #else
       
    37 	#define EAP_CLASS_VISIBILITY_EAPFASTPACSTOREIMPL_H EAP_IMPORT 
       
    38 	#define EAP_FUNC_VISIBILITY_EAPFASTPACSTOREIMPL_H EAP_FUNC_IMPORT 
       
    39 	#define EAP_C_FUNC_VISIBILITY_EAPFASTPACSTOREIMPL_H EAP_C_FUNC_IMPORT 
       
    40 	#define EAP_FUNC_EXPORT_EAPFASTPACSTOREIMPL_H 
       
    41 	#define EAP_C_FUNC_EXPORT_EAPFASTPACSTOREIMPL_H 
       
    42 #endif
       
    43 // End: added by script change_export_macros.sh.
    22 #include "EapFastPacStore.h"
    44 #include "EapFastPacStore.h"
    23 #include "abs_eap_pac_store_message.h"
    45 #include "abs_eap_pac_store_message.h"
    24 #include "eap_pac_store_message_base.h"
    46 #include "eap_pac_store_message_base.h"
    25 #include "eap_pac_store_client_message_if.h"
    47 #include "eap_pac_store_client_message_if.h"
    26 #include "eap_am_message_if.h"
    48 #include "eap_am_message_if.h"
    39 	eap_fast_pac_store_impl_wait_state_complete_is_pacstore_password_present,
    61 	eap_fast_pac_store_impl_wait_state_complete_is_pacstore_password_present,
    40 	eap_fast_pac_store_impl_wait_state_complete_set_pac_store_password,
    62 	eap_fast_pac_store_impl_wait_state_complete_set_pac_store_password,
    41 	eap_fast_pac_store_impl_wait_state_complete_destroy_pac_store,
    63 	eap_fast_pac_store_impl_wait_state_complete_destroy_pac_store,
    42 };
    64 };
    43 
    65 
    44 class CEapFastPacStoreImpl
    66 class EAP_CLASS_VISIBILITY_EAPFASTPACSTOREIMPL_H CEapFastPacStoreImpl
    45 : public CEapFastPacStore
    67 : public CEapFastPacStore
    46 	,public abs_eap_pac_store_message_c
    68 	,public abs_eap_pac_store_message_c
    47 {
    69 {
    48 public:
    70 public:
    49 	
    71 	
    50 	static CEapFastPacStore* NewL();
    72 	static CEapFastPacStore* NewL();
    51 	
    73 
    52 	CEapFastPacStoreImpl();
    74 	CEapFastPacStoreImpl();
    53 	
    75 
    54 	virtual ~CEapFastPacStoreImpl();
    76 	virtual ~CEapFastPacStoreImpl();
    55 
    77 
    56 	void OpenPacStoreL();
    78 	TBool IsMasterKeyPresentL();
    57     
       
    58   void CreateDeviceSeedL();
       
    59 
    79 
    60   TBool IsMasterKeyPresentL();
    80 	TBool IsMasterKeyAndPasswordMatchingL(
    61 
       
    62   TBool IsMasterKeyAndPasswordMatchingL(
       
    63 		const TDesC8 & aPassword8);
    81 		const TDesC8 & aPassword8);
    64 
    82 
    65   TInt CreateAndSaveMasterKeyL(
    83 	TInt CreateAndSaveMasterKeyL(
    66 		const TDesC8 & aPassword8);
    84 		const TDesC8 & aPassword8);
    67 
    85 
    68   TBool ComparePacStorePasswordL(
    86 	TBool ComparePacStorePasswordL(
    69 		TDes8 & aPassword8);
    87 		TDes8 & aPassword8);
    70 
    88 
    71   TBool IsPacStorePasswordPresentL();
    89 	TBool IsPacStorePasswordPresentL();
    72 
    90 
    73   TInt SetPacStorePasswordL(
    91 	TInt SetPacStorePasswordL(
    74 		const TDesC8 & aPassword8);
    92 		const TDesC8 & aPassword8);
    75 
    93 
    76   TInt DestroyPacStore();
    94 	TInt DestroyPacStore();
    77   
       
    78   eap_status_e complete_open_pac_store(
       
    79 		const eap_status_e completion_status);
       
    80 
       
    81 	eap_status_e complete_create_device_seed(
       
    82 		const eap_status_e completion_status);
       
    83 
    95 
    84 	eap_status_e complete_is_master_key_present(
    96 	eap_status_e complete_is_master_key_present(
    85 		bool is_present
    97 		bool is_present
    86 		,const eap_status_e completion_status);
    98 		,const eap_status_e completion_status);
    87 
    99 
   103 
   115 
   104 	eap_status_e complete_destroy_pac_store(
   116 	eap_status_e complete_destroy_pac_store(
   105 		const eap_status_e completion_status);
   117 		const eap_status_e completion_status);
   106 
   118 
   107 	void ConstructL();
   119 	void ConstructL();
   108 	
   120 
   109 protected:
   121 protected:
   110 	
   122 
   111 
   123 
   112 private:
   124 private:
   113 	
   125 
   114 	void Activate();
   126 	void Activate();
   115 	
   127 
   116 	void Complete();
   128 	void Complete();
   117 
   129 
   118 	void WaitCompletion();
   130 	void WaitCompletion();
   119 
   131 
   120 	abs_eap_am_tools_c* iTools;
   132 	abs_eap_am_tools_c* iTools;