vpnengine/ikev1lib/src/ikev1plugin.cpp
branchRCL_3
changeset 49 5960d2d03390
parent 46 29c8f9bc68e1
equal deleted inserted replaced
46:29c8f9bc68e1 49:5960d2d03390
    63     __ASSERT_DEBUG( iPluginSessions.Count() == 0,
    63     __ASSERT_DEBUG( iPluginSessions.Count() == 0,
    64                     User::Invariant() );
    64                     User::Invariant() );
    65     iPluginSessions.Close();    
    65     iPluginSessions.Close();    
    66     delete iPFKeySocket;
    66     delete iPFKeySocket;
    67     delete iIpsecPolicyUtil;
    67     delete iIpsecPolicyUtil;
    68     delete iSoftToken;
       
    69     }
    68     }
    70 
    69 
    71 // ---------------------------------------------------------------------------
    70 // ---------------------------------------------------------------------------
    72 // Constructor.
    71 // Constructor.
    73 // ---------------------------------------------------------------------------
    72 // ---------------------------------------------------------------------------
    87     {
    86     {
    88     iPFKeySocket = CPFKeySocketIf::NewL( this,
    87     iPFKeySocket = CPFKeySocketIf::NewL( this,
    89                                          iDebug );
    88                                          iDebug );
    90     
    89     
    91     iIpsecPolicyUtil = CIpsecPolicyUtil::NewL();
    90     iIpsecPolicyUtil = CIpsecPolicyUtil::NewL();
    92 
       
    93     TInt err(KErrNone);
       
    94     TRAP(err, iSoftToken = CSoftTokenPluginIf::NewL());
       
    95 #ifdef _DEBUG            
       
    96              if (err != KErrNone)
       
    97                  DEBUG_LOG(_L("SoftTokenPlugin not found"));
       
    98 #endif // _DEBUG             
       
    99 
       
   100     }
    91     }
   101     
    92     
   102 // ---------------------------------------------------------------------------
    93 // ---------------------------------------------------------------------------
   103 // Removes IKE plugin session from array.
    94 // Removes IKE plugin session from array.
   104 // ---------------------------------------------------------------------------
    95 // ---------------------------------------------------------------------------
   245 MKmdEventLoggerIf& CIkev1Plugin::EventLogger()
   236 MKmdEventLoggerIf& CIkev1Plugin::EventLogger()
   246     {
   237     {
   247     return iEventLogger;
   238     return iEventLogger;
   248     }
   239     }
   249 
   240 
   250 // ---------------------------------------------------------------------------
       
   251 // Returns SoftToken interface.
       
   252 // ---------------------------------------------------------------------------
       
   253 //
       
   254 //MSoftTokenPluginIf* CIkev1Plugin::SoftToken()
       
   255 CSoftTokenPluginIf* CIkev1Plugin::SoftToken()
       
   256     {
       
   257     return iSoftToken;
       
   258     }
       
   259 
       
   260