eapol/eapol_framework/eapol_symbian/am/type/aka/symbian/eap_am_type_aka_symbian.cpp
changeset 49 43351a4f2da3
parent 34 ad1f037f1ac2
equal deleted inserted replaced
47:712b4ffd76bb 49:43351a4f2da3
    14 * Description:  EAP and WLAN authentication protocols.
    14 * Description:  EAP and WLAN authentication protocols.
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 /*
    18 /*
    19 * %version: 46.1.10 %
    19 * %version: 46.1.11 %
    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
   226 	const TInt aIndex,
   226 	const TInt aIndex,
   227 	const eap_type_value_e aTunnelingType,
   227 	const eap_type_value_e aTunnelingType,
   228 	const bool aIsClient,
   228 	const bool aIsClient,
   229 	const eap_am_network_id_c * const receive_network_id)
   229 	const eap_am_network_id_c * const receive_network_id)
   230 {
   230 {
   231 	eap_am_type_aka_symbian_c* self = new(ELeave) eap_am_type_aka_symbian_c(
   231 	eap_am_type_aka_symbian_c* self = new eap_am_type_aka_symbian_c(
   232 		aTools, 
   232 		aTools, 
   233 		aPartner, 
   233 		aPartner, 
   234 		aIndexType, 
   234 		aIndexType, 
   235 		aIndex, 
   235 		aIndex, 
   236 		aTunnelingType,
   236 		aTunnelingType,
   237 		aIsClient,
   237 		aIsClient,
   238 		receive_network_id);
   238 		receive_network_id);
   239 		
   239 		
   240 	CleanupStack::PushL(self);
   240 	if (self == 0
   241 	
   241 		|| self->get_is_valid() != true)
   242 	self->ConstructL();
   242 	{
   243 
   243 		if (self != 0)
   244 	if (self->get_is_valid() != true)
   244 		{
   245 	{
   245 			self->shutdown();
       
   246 		}
       
   247 
       
   248 		delete self;
       
   249 
   246 		User::Leave(KErrGeneral);
   250 		User::Leave(KErrGeneral);
   247 	}
   251 	}
   248 	
   252 
   249 	CleanupStack::Pop();
   253 	TRAPD(error, self->ConstructL());
       
   254 
       
   255 	if (error != KErrNone)
       
   256 	{
       
   257 		self->shutdown();
       
   258 		delete self;
       
   259 
       
   260 		User::Leave(error);
       
   261 	}
       
   262 
   250 	return self;
   263 	return self;
   251 }
   264 }
   252 
   265 
   253 //--------------------------------------------------
   266 //--------------------------------------------------
   254 
   267