networksecurity/tlsprovider/source/tlsprovider/CTlsProvider.cpp
changeset 68 1697cc2ba93d
parent 0 af10295192d8
equal deleted inserted replaced
62:2f37ef12b43e 68:1697cc2ba93d
   134 CTlsCryptoAttributes* CTlsCryptoAttributes::NewL()
   134 CTlsCryptoAttributes* CTlsCryptoAttributes::NewL()
   135 	{
   135 	{
   136 	CTlsCryptoAttributes* tPtr = new (ELeave)CTlsCryptoAttributes;
   136 	CTlsCryptoAttributes* tPtr = new (ELeave)CTlsCryptoAttributes;
   137 	CleanupStack::PushL(tPtr);
   137 	CleanupStack::PushL(tPtr);
   138 	tPtr->iPublicKeyParams = new (ELeave)CTLSPublicKeyParams;
   138 	tPtr->iPublicKeyParams = new (ELeave)CTLSPublicKeyParams;
   139 	CleanupStack::Pop();
   139 	CleanupStack::Pop(tPtr);
   140 	return tPtr;
   140 	return tPtr;
   141 	}
   141 	}
   142 
   142 
   143 CTlsCryptoAttributes::CTlsCryptoAttributes()
   143 CTlsCryptoAttributes::CTlsCryptoAttributes()
   144 	{
   144 	{
  1265 	switch(iCurrentState)
  1265 	switch(iCurrentState)
  1266 	{			
  1266 	{			
  1267 	
  1267 	
  1268 	case EGetSessionInterface:
  1268 	case EGetSessionInterface:
  1269 		{
  1269 		{
       
  1270 		if (iPtrTokenSearch)
  1270 		iPtrTokenSearch->CancelRequest();
  1271 		iPtrTokenSearch->CancelRequest();
  1271 		break;
  1272 		}
  1272 		}
  1273 		break;
  1273 	case EGetCiphers:
  1274 	case EGetCiphers:
  1274 		{
  1275 		{
  1275 		if(iListAllTokensAndTypes[iCurrentTokentype].iProviderInterface)
  1276 		if(iListAllTokensAndTypes[iCurrentTokentype].iProviderInterface)
  1276 			iListAllTokensAndTypes[iCurrentTokentype].iProviderInterface->CancelCryptoCapabilities();
  1277 			iListAllTokensAndTypes[iCurrentTokentype].iProviderInterface->CancelCryptoCapabilities();
  1277 		}
  1278 		}
  1319 	case EUserDialog:
  1320 	case EUserDialog:
  1320 		{
  1321 		{
  1321 #ifdef _USESECDLGSV_
  1322 #ifdef _USESECDLGSV_
  1322 		iDialogServ.Cancel();
  1323 		iDialogServ.Cancel();
  1323 #else
  1324 #else
       
  1325 		if (iSecurityDialog)
  1324 		iSecurityDialog->Cancel();
  1326 		iSecurityDialog->Cancel();
  1325 #endif
  1327 #endif
  1326 		}
  1328 		}
  1327 		break;
  1329 		break;
  1328 			
  1330