vpnengine/ikev1lib/src/ikev1pluginsession.cpp
branchRCL_3
changeset 46 29c8f9bc68e1
parent 41 e06095241a65
child 49 5960d2d03390
equal deleted inserted replaced
44:735de8341ce4 46:29c8f9bc68e1
   900 // Handles completion of authentication dialog processing.
   900 // Handles completion of authentication dialog processing.
   901 // ---------------------------------------------------------------------------
   901 // ---------------------------------------------------------------------------
   902 //    
   902 //    
   903 TInt CIkev1PluginSession::AuthDialogCompletedL( CAuthDialogInfo* aUserInfo )
   903 TInt CIkev1PluginSession::AuthDialogCompletedL( CAuthDialogInfo* aUserInfo )
   904     {
   904     {
   905     CIkev1Negotiation* negotiation = FindNegotiation( aUserInfo->SAId() );
   905     CIkev1Negotiation* negotiation = aUserInfo->iNegotiation;
   906     if ( negotiation )
   906     if ( negotiation )
   907         {
   907         {
   908         DEBUG_LOG1( _L("Dialog completed for SAID: %d"),
   908         DEBUG_LOG1( _L("Dialog completed for SAID: %d"),
   909                 aUserInfo->SAId() );
   909                 aUserInfo->SAId() );
   910         
   910         
   918     DEBUG_LOG1( _L("Dialog completed, no negotiation found for SAID: %d"),
   918     DEBUG_LOG1( _L("Dialog completed, no negotiation found for SAID: %d"),
   919             aUserInfo->SAId() );
   919             aUserInfo->SAId() );
   920     return KErrNotFound;
   920     return KErrNotFound;
   921     }
   921     }
   922 
   922 
       
   923 // ---------------------------------------------------------------------------
       
   924 // Handles completion of error dialog processing.
       
   925 // ---------------------------------------------------------------------------
       
   926 //    
       
   927 TInt CIkev1PluginSession::ErrDialogCompletedL( CAuthDialogInfo* aUserInfo )
       
   928     {
       
   929     
       
   930     CIkev1Negotiation* negotiation = aUserInfo->iNegotiation;
       
   931     if ( negotiation )
       
   932         {
       
   933         DEBUG_LOG1( _L("Dialog completed for SAID: %d"),
       
   934                 aUserInfo->SAId() );
       
   935         
       
   936         negotiation->ErrDialogCompletedL();
       
   937         if ( negotiation->Finished() )
       
   938             {
       
   939             DeleteNegotiation( negotiation );
       
   940             }   
       
   941         return KErrNone;
       
   942         }   
       
   943     DEBUG_LOG1( _L("Dialog completed, no negotiation found for SAID: %d"),
       
   944             aUserInfo->SAId() );
       
   945             
       
   946     return KErrNotFound;    
       
   947     }
   923 
   948 
   924 // ---------------------------------------------------------------------------
   949 // ---------------------------------------------------------------------------
   925 // Handles change of internal address.
   950 // Handles change of internal address.
   926 // ---------------------------------------------------------------------------
   951 // ---------------------------------------------------------------------------
   927 //    
   952 //    
  1051 // ---------------------------------------------------------------------------
  1076 // ---------------------------------------------------------------------------
  1052 //
  1077 //
  1053 MKmdEventLoggerIf& CIkev1PluginSession::EventLogger()
  1078 MKmdEventLoggerIf& CIkev1PluginSession::EventLogger()
  1054     {
  1079     {
  1055     return iPlugin.EventLogger();
  1080     return iPlugin.EventLogger();
       
  1081     }
       
  1082 
       
  1083 // ---------------------------------------------------------------------------
       
  1084 // Returns SoftToken interface.
       
  1085 // ---------------------------------------------------------------------------
       
  1086 //
       
  1087 //MSoftTokenPluginIf* CIkev1PluginSession::SoftToken()
       
  1088 CSoftTokenPluginIf* CIkev1PluginSession::SoftToken()
       
  1089     {
       
  1090     return iPlugin.SoftToken();
  1056     }      
  1091     }      
  1057 
  1092 
  1058 // ---------------------------------------------------------------------------
  1093 // ---------------------------------------------------------------------------
  1059 // Returns internal address (NULL if does not exist). 
  1094 // Returns internal address (NULL if does not exist). 
  1060 // ---------------------------------------------------------------------------
  1095 // ---------------------------------------------------------------------------