eapol/eapol_framework/eapol_symbian/am/type/mschapv2/symbian/eap_am_type_mschapv2_symbian.cpp
equal
deleted
inserted
replaced
14 * Description: EAP and WLAN authentication protocols. |
14 * Description: EAP and WLAN authentication protocols. |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 /* |
18 /* |
19 * %version: 34 % |
19 * %version: 38 % |
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 |
170 const TInt aIndex, |
170 const TInt aIndex, |
171 const eap_type_value_e aTunnelingType, |
171 const eap_type_value_e aTunnelingType, |
172 const bool aIsClient, |
172 const bool aIsClient, |
173 const eap_am_network_id_c * const receive_network_id) |
173 const eap_am_network_id_c * const receive_network_id) |
174 { |
174 { |
175 eap_am_type_mschapv2_symbian_c * self; |
175 eap_am_type_mschapv2_symbian_c * self = new eap_am_type_mschapv2_symbian_c( |
176 |
|
177 self = new(ELeave) eap_am_type_mschapv2_symbian_c( |
|
178 aTools, |
176 aTools, |
179 aPartner, |
177 aPartner, |
180 aIndexType, |
178 aIndexType, |
181 aIndex, |
179 aIndex, |
182 aTunnelingType, |
180 aTunnelingType, |
183 aIsClient, |
181 aIsClient, |
184 receive_network_id); |
182 receive_network_id); |
185 |
183 |
186 CleanupStack::PushL(self); |
184 if (self == 0 |
187 |
185 || self->get_is_valid() != true) |
188 if (self->get_is_valid() != true) |
186 { |
189 { |
187 if (self != 0) |
|
188 { |
|
189 self->shutdown(); |
|
190 } |
|
191 |
|
192 delete self; |
|
193 |
190 User::Leave(KErrGeneral); |
194 User::Leave(KErrGeneral); |
191 } |
195 } |
192 |
196 |
193 self->ConstructL(); |
197 TRAPD(error, self->ConstructL()); |
194 |
198 |
195 CleanupStack::Pop(); |
199 if (error != KErrNone) |
|
200 { |
|
201 self->shutdown(); |
|
202 delete self; |
|
203 |
|
204 User::Leave(error); |
|
205 } |
196 |
206 |
197 return self; |
207 return self; |
198 } |
208 } |
199 |
209 |
200 void eap_am_type_mschapv2_symbian_c::ConstructL() |
210 void eap_am_type_mschapv2_symbian_c::ConstructL() |
260 false); |
270 false); |
261 |
271 |
262 notification.set_authentication_error(error); |
272 notification.set_authentication_error(error); |
263 |
273 |
264 m_partner->state_notification(¬ification); |
274 m_partner->state_notification(¬ification); |
|
275 } |
|
276 |
|
277 //-------------------------------------------------- |
|
278 TBool eap_am_type_mschapv2_symbian_c::IsMasterKeyAndPasswordMatchingL( |
|
279 const TDesC16 & /*aPassword8*/) |
|
280 { |
|
281 return EFalse; |
265 } |
282 } |
266 |
283 |
267 //-------------------------------------------------- |
284 //-------------------------------------------------- |
268 EAP_FUNC_EXPORT void eap_am_type_mschapv2_symbian_c::DlgComplete( TInt aStatus ) |
285 EAP_FUNC_EXPORT void eap_am_type_mschapv2_symbian_c::DlgComplete( TInt aStatus ) |
269 { |
286 { |