eapol/eapol_framework/eapol_symbian/am/type/mschapv2/symbian/plugin/src/EapMsChapV2.cpp
changeset 52 c23bdf5a328a
parent 42 53085837e73a
equal deleted inserted replaced
51:e863583e6720 52:c23bdf5a328a
    14 * Description:  EAP and WLAN authentication protocols.
    14 * Description:  EAP and WLAN authentication protocols.
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 /*
    18 /*
    19 * %version: 31 %
    19 * %version: 35 %
    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
    63 
    63 
    64 }
    64 }
    65 
    65 
    66 // ----------------------------------------------------------
    66 // ----------------------------------------------------------
    67 
    67 
    68 CEapMsChapV2* CEapMsChapV2::NewL(SIapInfo *aIapInfo)
    68 CEapMsChapV2* CEapMsChapV2::NewL(SPluginInfo *aIapInfo)
    69 {
    69 {
    70 	EAP_TRACE_DEBUG_SYMBIAN((_L("CEapMsChapV2::NewL()\n")));
    70 	EAP_TRACE_DEBUG_SYMBIAN((_L("CEapMsChapV2::NewL()\n")));
    71 	EAP_TRACE_RETURN_STRING_SYMBIAN(_L("returns: CEapMsChapV2::NewL()\n"));
    71 	EAP_TRACE_RETURN_STRING_SYMBIAN(_L("returns: CEapMsChapV2::NewL()\n"));
    72 
    72 
    73 	return new (ELeave) CEapMsChapV2(aIapInfo->indexType, aIapInfo->index, eap_type_mschapv2);
    73 	return new (ELeave) CEapMsChapV2(aIapInfo->indexType, aIapInfo->index, eap_type_mschapv2);
    74 }
    74 }
    75 
    75 
    76 // ----------------------------------------------------------
    76 // ----------------------------------------------------------
    77 
    77 
    78 CEapMsChapV2* CEapMsChapV2::NewPlainMSCHAPv2L(SIapInfo *aIapInfo)
    78 CEapMsChapV2* CEapMsChapV2::NewPlainMSCHAPv2L(SPluginInfo *aIapInfo)
    79 {
    79 {
    80 	EAP_TRACE_DEBUG_SYMBIAN((_L("CEapMsChapV2::NewPlainMSCHAPv2L()\n")));
    80 	EAP_TRACE_DEBUG_SYMBIAN((_L("CEapMsChapV2::NewPlainMSCHAPv2L()\n")));
    81 	EAP_TRACE_RETURN_STRING_SYMBIAN(_L("returns: CEapMsChapV2::NewPlainMSCHAPv2L()\n"));
    81 	EAP_TRACE_RETURN_STRING_SYMBIAN(_L("returns: CEapMsChapV2::NewPlainMSCHAPv2L()\n"));
    82 
    82 
    83 	return new (ELeave) CEapMsChapV2(
    83 	return new (ELeave) CEapMsChapV2(
   271 
   271 
   272 	CleanupStack::PopAndDestroy(&db);
   272 	CleanupStack::PopAndDestroy(&db);
   273 	CleanupStack::PopAndDestroy(&session);
   273 	CleanupStack::PopAndDestroy(&session);
   274 }
   274 }
   275 
   275 
       
   276 // ----------------------------------------------------------
       
   277 
   276 void CEapMsChapV2::SetConfigurationL(const EAPSettings& aSettings)
   278 void CEapMsChapV2::SetConfigurationL(const EAPSettings& aSettings)
   277 {
   279 {
   278 	EAP_TRACE_DEBUG_SYMBIAN((_L("CEapMsChapV2::SetConfigurationL()\n")));
   280 	EAP_TRACE_DEBUG_SYMBIAN((_L("CEapMsChapV2::SetConfigurationL()\n")));
   279 	EAP_TRACE_RETURN_STRING_SYMBIAN(_L("returns: CEapMsChapV2::SetConfigurationL()\n"));
   281 	EAP_TRACE_RETURN_STRING_SYMBIAN(_L("returns: CEapMsChapV2::SetConfigurationL()\n"));
   280 
   282 
   302 	session.Close();
   304 	session.Close();
   303 
   305 
   304 	CleanupStack::PopAndDestroy(&db);
   306 	CleanupStack::PopAndDestroy(&db);
   305 	CleanupStack::PopAndDestroy(&session);
   307 	CleanupStack::PopAndDestroy(&session);
   306 }
   308 }
       
   309 
       
   310 // ----------------------------------------------------------
   307 
   311 
   308 void CEapMsChapV2::GetConfigurationL(EAPSettings& aSettings)
   312 void CEapMsChapV2::GetConfigurationL(EAPSettings& aSettings)
   309 {
   313 {
   310 	EAP_TRACE_DEBUG_SYMBIAN((_L("CEapMsChapV2::GetConfigurationL()\n")));
   314 	EAP_TRACE_DEBUG_SYMBIAN((_L("CEapMsChapV2::GetConfigurationL()\n")));
   311 	EAP_TRACE_RETURN_STRING_SYMBIAN(_L("returns: CEapMsChapV2::GetConfigurationL()\n"));
   315 	EAP_TRACE_RETURN_STRING_SYMBIAN(_L("returns: CEapMsChapV2::GetConfigurationL()\n"));
   345 
   349 
   346 	CleanupStack::PopAndDestroy(&db);
   350 	CleanupStack::PopAndDestroy(&db);
   347 	CleanupStack::PopAndDestroy(&session);
   351 	CleanupStack::PopAndDestroy(&session);
   348 }
   352 }
   349 
   353 
       
   354 // ----------------------------------------------------------
       
   355 
   350 void CEapMsChapV2::CopySettingsL(
   356 void CEapMsChapV2::CopySettingsL(
   351 	const TIndexType aDestinationIndexType,
   357 	const TIndexType aDestinationIndexType,
   352 	const TInt aDestinationIndex)
   358 	const TInt aDestinationIndex)
   353 {
   359 {
   354 	EAP_TRACE_DEBUG_SYMBIAN((_L("CEapMsChapV2::CopySettingsL()\n")));
   360 	EAP_TRACE_DEBUG_SYMBIAN((_L("CEapMsChapV2::CopySettingsL()\n")));
   396 	CleanupStack::PopAndDestroy(&db);
   402 	CleanupStack::PopAndDestroy(&db);
   397 	CleanupStack::PopAndDestroy(&session);
   403 	CleanupStack::PopAndDestroy(&session);
   398 	
   404 	
   399 }
   405 }
   400 
   406 
       
   407 // ----------------------------------------------------------
       
   408 
       
   409 TInt CEapMsChapV2::InitialisePacStore(AbsPacStoreInitializer * const /* initializer */)
       
   410 {
       
   411 	return KErrNone;
       
   412 }
       
   413 
       
   414 // ----------------------------------------------------------
       
   415 
   401 // End of file
   416 // End of file