eapol/eapol_framework/eapol_symbian/am/type/securid/symbian/plugin/src/EapSecurID.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: 25 % |
19 * %version: 29 % |
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 |
59 { |
59 { |
60 } |
60 } |
61 |
61 |
62 // ---------------------------------------------------------- |
62 // ---------------------------------------------------------- |
63 |
63 |
64 CEapSecurID* CEapSecurID::NewSecurIdL(SIapInfo *aIapInfo) |
64 CEapSecurID* CEapSecurID::NewSecurIdL(SPluginInfo *aIapInfo) |
65 { |
65 { |
66 return new(ELeave) CEapSecurID(aIapInfo->indexType, aIapInfo->index, eap_type_securid); |
66 return new(ELeave) CEapSecurID(aIapInfo->indexType, aIapInfo->index, eap_type_securid); |
67 } |
67 } |
68 |
68 |
69 // ---------------------------------------------------------- |
69 // ---------------------------------------------------------- |
70 |
70 |
71 CEapSecurID* CEapSecurID::NewGtcL(SIapInfo *aIapInfo) |
71 CEapSecurID* CEapSecurID::NewGtcL(SPluginInfo *aIapInfo) |
72 { |
72 { |
73 return new(ELeave) CEapSecurID(aIapInfo->indexType, aIapInfo->index, eap_type_generic_token_card); |
73 return new(ELeave) CEapSecurID(aIapInfo->indexType, aIapInfo->index, eap_type_generic_token_card); |
74 } |
74 } |
75 |
75 |
76 // ---------------------------------------------------------- |
76 // ---------------------------------------------------------- |
184 |
184 |
185 iTunnelingType = aInternalType; |
185 iTunnelingType = aInternalType; |
186 } |
186 } |
187 |
187 |
188 // ---------------------------------------------------------- |
188 // ---------------------------------------------------------- |
|
189 |
189 void CEapSecurID::SetIndexL( |
190 void CEapSecurID::SetIndexL( |
190 const TIndexType aIndexType, |
191 const TIndexType aIndexType, |
191 const TInt aIndex) |
192 const TInt aIndex) |
192 { |
193 { |
193 // First delete the target configuration |
194 // First delete the target configuration |
234 |
235 |
235 CleanupStack::PopAndDestroy(&db); |
236 CleanupStack::PopAndDestroy(&db); |
236 CleanupStack::PopAndDestroy(&session); |
237 CleanupStack::PopAndDestroy(&session); |
237 } |
238 } |
238 |
239 |
|
240 // ---------------------------------------------------------- |
|
241 |
239 void CEapSecurID::SetConfigurationL(const EAPSettings& aSettings) |
242 void CEapSecurID::SetConfigurationL(const EAPSettings& aSettings) |
240 { |
243 { |
241 RDbNamedDatabase db; |
244 RDbNamedDatabase db; |
242 |
245 |
243 RFs session; |
246 RFs session; |
263 |
266 |
264 CleanupStack::PopAndDestroy(&db); |
267 CleanupStack::PopAndDestroy(&db); |
265 CleanupStack::PopAndDestroy(&session); |
268 CleanupStack::PopAndDestroy(&session); |
266 } |
269 } |
267 |
270 |
|
271 // ---------------------------------------------------------- |
|
272 |
268 void CEapSecurID::GetConfigurationL(EAPSettings& aSettings) |
273 void CEapSecurID::GetConfigurationL(EAPSettings& aSettings) |
269 { |
274 { |
270 RDbNamedDatabase db; |
275 RDbNamedDatabase db; |
271 |
276 |
272 RFs session; |
277 RFs session; |
291 session.Close(); |
296 session.Close(); |
292 |
297 |
293 CleanupStack::PopAndDestroy(&db); |
298 CleanupStack::PopAndDestroy(&db); |
294 CleanupStack::PopAndDestroy(&session); |
299 CleanupStack::PopAndDestroy(&session); |
295 } |
300 } |
|
301 |
|
302 // ---------------------------------------------------------- |
296 |
303 |
297 void CEapSecurID::CopySettingsL( |
304 void CEapSecurID::CopySettingsL( |
298 const TIndexType aDestinationIndexType, |
305 const TIndexType aDestinationIndexType, |
299 const TInt aDestinationIndex) |
306 const TInt aDestinationIndex) |
300 { |
307 { |
339 |
346 |
340 CleanupStack::PopAndDestroy(&db); |
347 CleanupStack::PopAndDestroy(&db); |
341 CleanupStack::PopAndDestroy(&session); |
348 CleanupStack::PopAndDestroy(&session); |
342 } |
349 } |
343 |
350 |
|
351 // ---------------------------------------------------------- |
|
352 |
|
353 TInt CEapSecurID::InitialisePacStore(AbsPacStoreInitializer * const /* initializer */) |
|
354 { |
|
355 return KErrNone; |
|
356 } |
|
357 |
|
358 // ---------------------------------------------------------- |
344 |
359 |
345 // End of File |
360 // End of File |