eapol/eapol_framework/eapol_symbian/am/type/tls_peap/symbian/plugin/inc/EapTlsPeap.h
branchRCL_3
changeset 46 c74b3d9f6b9e
parent 45 bad0cc58d154
equal deleted inserted replaced
45:bad0cc58d154 46:c74b3d9f6b9e
    14 * Description:  EAP and WLAN authentication protocols.
    14 * Description:  EAP and WLAN authentication protocols.
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 /*
    18 /*
    19 * %version: 27 %
    19 * %version: 17.1.2 %
    20 */
    20 */
    21 
    21 
    22 #ifndef _EAPTLSPEAP_H_
    22 #ifndef _EAPTLSPEAP_H_
    23 #define _EAPTLSPEAP_H_
    23 #define _EAPTLSPEAP_H_
    24 
    24 
    25 // INCLUDES
    25 // INCLUDES
    26 #include <EapTypePlugin.h>
    26 #include <EapType.h>
    27 #include "eap_header.h"
    27 #include "eap_header.h"
    28 #if defined(USE_FAST_EAP_TYPE)
    28 
    29 #include "tls_application_eap_fast.h"
       
    30 #endif
       
    31 // CLASS DECLARATION
    29 // CLASS DECLARATION
    32 /**
    30 /**
    33 * Class that implements the generic EAP type interface. Implements EAP TLS protocol.
    31 * Class that implements the generic EAP type interface. Implements EAP TLS protocol.
    34 */
    32 */
    35 class CEapTlsPeap : public CEapTypePlugin
    33 class CEapTlsPeap : public CEapType
    36 {
    34 {
    37 public:		
    35 public:		
    38 
    36 
    39 	/**
    37 	/**
    40 	* Construction function for TLS. Called by ECom after the DLL has been loaded.
    38 	* Construction function for TLS. Called by ECom after the DLL has been loaded.
   120 									   const bool is_client_when_true,
   118 									   const bool is_client_when_true,
   121 									   const eap_am_network_id_c * const receive_network_id);
   119 									   const eap_am_network_id_c * const receive_network_id);
   122 	
   120 	
   123 #endif // #ifdef USE_EAP_SIMPLE_CONFIG
   121 #endif // #ifdef USE_EAP_SIMPLE_CONFIG
   124 	
   122 	
   125 
   123 	/**
       
   124 	* Invokes the configuration UI.
       
   125 	**/
       
   126 	TInt InvokeUiL();
   126 	
   127 	
   127 	/**
   128 	/**
   128 	* Gets information about EAP type. 
   129 	* Gets information about EAP type. 
   129 	* @return Pointer to a class that contains the EAP type information. Also pushed to cleanup stack.
   130 	* @return Pointer to a class that contains the EAP type information. Also pushed to cleanup stack.
   130 	*/
   131 	*/
   131 	CEapTypeInfo* GetInfoL();
   132 	CEapTypeInfo* GetInfoLC();
   132 	
   133 	
   133 	/**
   134 	/**
   134 	* Deletes EAP type configuration
   135 	* Deletes EAP type configuration
   135 	*/	
   136 	*/	
   136 	void DeleteConfigurationL();
   137 	void DeleteConfigurationL();
   148 	/**
   149 	/**
   149 	* Sets the tunneling type. This is used to indicate that this type is run inside another 
   150 	* Sets the tunneling type. This is used to indicate that this type is run inside another 
   150 	* EAP type. 
   151 	* EAP type. 
   151 	* @param aTunnelingType Type number for the tunneling type
   152 	* @param aTunnelingType Type number for the tunneling type
   152 	*/	
   153 	*/	
   153 	void SetTunnelingType(const TEapExpandedType aTunnelingType);
   154 	void SetTunnelingType(const TInt aTunnelingType);
   154 
   155 
   155 	/**
   156 	/**
   156 	* Changes the index of the saved parameters.
   157 	* Changes the index of the saved parameters.
   157 	* @param aIndexType Indicates the bearer used for this connection.
   158 	* @param aIndexType Indicates the bearer used for this connection.
   158 	* @param aIndex Index for the connection. aIndexType and aIndex uniquely specify the connection.
   159 	* @param aIndex Index for the connection. aIndexType and aIndex uniquely specify the connection.
   183 	
   184 	
   184 	/**
   185 	/**
   185 	* Constructor initialises member variables.
   186 	* Constructor initialises member variables.
   186 	*/
   187 	*/
   187 	CEapTlsPeap(const TIndexType aIndexType, const TInt aIndex, const eap_type_value_e aEapType);
   188 	CEapTlsPeap(const TIndexType aIndexType, const TInt aIndex, const eap_type_value_e aEapType);
   188 
   189 	
   189 #if defined(USE_FAST_EAP_TYPE)
       
   190 	tls_application_eap_fast_c* GetTlsInterfaceL(abs_eap_am_tools_c* const aTools, 
       
   191 											   const bool is_client_when_true,
       
   192 											   const eap_am_network_id_c * const receive_network_id);	
       
   193 #endif
       
   194 private:
   190 private:
   195 
   191 
   196 #ifdef USE_PAC_STORE
   192 #ifdef USE_PAC_STORE
   197 
   193 
   198 	void UpdatePacStoreCleanupTableL(const TIndexType aIndexType,
   194 	void UpdatePacStoreCleanupTableL(const TIndexType aIndexType,
   215 	// Tunneling type
   211 	// Tunneling type
   216 	eap_type_value_e iTunnelingType;
   212 	eap_type_value_e iTunnelingType;
   217 	
   213 	
   218 	// EAP array for deleting and changing index
   214 	// EAP array for deleting and changing index
   219 	RImplInfoPtrArray iEapArray;
   215 	RImplInfoPtrArray iEapArray;
   220 	
       
   221 #if defined(USE_FAST_EAP_TYPE)
       
   222 	tls_application_eap_fast_c* iApplication;
       
   223 #endif	
       
   224 		/// This is pointer to the tools class.
       
   225 	abs_eap_am_tools_c * const m_am_tools;
       
   226 	
       
   227 	eap_base_type_c* iType;
       
   228 
       
   229 
       
   230 };
   216 };
   231 
   217 
   232 #endif // _EAPTLSPEAP_H_
   218 #endif // _EAPTLSPEAP_H_
   233 
   219 
   234 // End of file
   220 // End of file