--- a/vpnengine/ikev1lib/src/ikev1plugin.cpp Tue Sep 14 23:16:15 2010 +0300
+++ b/vpnengine/ikev1lib/src/ikev1plugin.cpp Wed Sep 15 13:20:54 2010 +0300
@@ -65,6 +65,7 @@
iPluginSessions.Close();
delete iPFKeySocket;
delete iIpsecPolicyUtil;
+ delete iSoftToken;
}
// ---------------------------------------------------------------------------
@@ -88,6 +89,14 @@
iDebug );
iIpsecPolicyUtil = CIpsecPolicyUtil::NewL();
+
+ TInt err(KErrNone);
+ TRAP(err, iSoftToken = CSoftTokenPluginIf::NewL());
+#ifdef _DEBUG
+ if (err != KErrNone)
+ DEBUG_LOG(_L("SoftTokenPlugin not found"));
+#endif // _DEBUG
+
}
// ---------------------------------------------------------------------------
@@ -238,3 +247,14 @@
return iEventLogger;
}
+// ---------------------------------------------------------------------------
+// Returns SoftToken interface.
+// ---------------------------------------------------------------------------
+//
+//MSoftTokenPluginIf* CIkev1Plugin::SoftToken()
+CSoftTokenPluginIf* CIkev1Plugin::SoftToken()
+ {
+ return iSoftToken;
+ }
+
+