eapol/eapol_framework/eapol_symbian/am/type/gsmsim/symbian/eap_am_type_gsmsim_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: 47.1.10 %
    19 * %version: 47.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
   162 	const TInt aIndex,
   162 	const TInt aIndex,
   163 	const eap_type_value_e aTunnelingType,
   163 	const eap_type_value_e aTunnelingType,
   164 	const bool aIsClient,
   164 	const bool aIsClient,
   165 	const eap_am_network_id_c * const receive_network_id)
   165 	const eap_am_network_id_c * const receive_network_id)
   166 {
   166 {
   167 	eap_am_type_gsmsim_symbian_c* self = new(ELeave) eap_am_type_gsmsim_symbian_c(
   167 	eap_am_type_gsmsim_symbian_c* self = new eap_am_type_gsmsim_symbian_c(
   168 		aTools, 
   168 		aTools, 
   169 		aPartner, 
   169 		aPartner, 
   170 		aIndexType, 
   170 		aIndexType, 
   171 		aIndex, 
   171 		aIndex, 
   172 		aTunnelingType,
   172 		aTunnelingType,
   173 		aIsClient,
   173 		aIsClient,
   174 		receive_network_id);
   174 		receive_network_id);
   175 
   175 
   176 	CleanupStack::PushL(self);
   176 	if (self == 0
   177 	
   177 		|| self->get_is_valid() != true)
   178 	if (self->get_is_valid() != true)
   178 	{
   179 	{
   179 		if (self != 0)
       
   180 		{
       
   181 			self->shutdown();
       
   182 		}
       
   183 
       
   184 		delete self;
       
   185 
   180 		User::Leave(KErrGeneral);
   186 		User::Leave(KErrGeneral);
   181 	}
   187 	}
   182 
   188 
   183 	self->ConstructL();
   189 	TRAPD(error, self->ConstructL());
   184 
   190 
   185 	CleanupStack::Pop();
   191 	if (error != KErrNone)
       
   192 	{
       
   193 		self->shutdown();
       
   194 		delete self;
       
   195 
       
   196 		User::Leave(error);
       
   197 	}
       
   198 
   186 	return self;
   199 	return self;
   187 }
   200 }
   188 
   201 
   189 //--------------------------------------------------
   202 //--------------------------------------------------
   190 
   203