vpnengine/ikev1lib/src/ikev1dialog.cpp
branchRCL_3
changeset 49 5960d2d03390
parent 46 29c8f9bc68e1
--- a/vpnengine/ikev1lib/src/ikev1dialog.cpp	Wed Sep 15 13:20:54 2010 +0300
+++ b/vpnengine/ikev1lib/src/ikev1dialog.cpp	Wed Oct 13 15:42:16 2010 +0300
@@ -189,9 +189,12 @@
     if ( iCallback )
 	{
 		TInt err;
-		TRAP(err, delete_obj = iCallback->DialogCompleteL(
-		    iUserInfo, un_bfr, pw_bfr));
-	    
+		TRAP(err, delete_obj = iCallback->DialogCompleteL(this, iUserInfo,
+								                          un_bfr,               //User name
+			                                              pw_bfr,               //Password
+			                                              NULL));               //domain
+	    delete un_bfr; 
+	    delete pw_bfr;
 	    if ( err != KErrNone )
 		  delete_obj = 1;
     }
@@ -270,18 +273,18 @@
 
 /*--------------------------------------------------------------------
  *
- *  Get user name and Secure ID code data for Legacy authentication
+ *  Get user name and Secure ID pin data for Legacy authentication
  *
  *---------------------------------------------------------------------*/
 void CIkev1Dialog::GetAsyncSecureidDialogL(TAny *aUserInfo, MIkeDialogComplete*  aCallback)
 {
 	DEBUG_LOG2(_L("CIkev1Dialog::GetAsyncSecureidDialogL(), aUserInfo =  %x, aCallback = %x"), aUserInfo, aCallback);
 	
-    iDialogType = TKMDDialog::ESecurIdCode;
+    iDialogType = TKMDDialog::ESecurIdPin;
     iUserInfo   = aUserInfo;
     iCallback   = aCallback; // For asynchronous dialog RunL
 
-	TIPSecDialogInfo dialog_input(TKMDDialog::ESecurIdCode, 0);		
+	TIPSecDialogInfo dialog_input(TKMDDialog::ESecurIdPin, 0);		
 	iInputData = CreateDialogInput(dialog_input, ETrue);// TRUE = Use user name cache    	
     if ( iInputData )
        LaunchDialogL();   //launch the dialog
@@ -289,26 +292,6 @@
 
 /*--------------------------------------------------------------------
  *
- *  Get user name and Secure ID pin data for Legacy authentication
- *
- *---------------------------------------------------------------------*/
-void CIkev1Dialog::GetAsyncSecureidPinDialogL(TAny *aUserInfo, MIkeDialogComplete*  aCallback)
-{
-    DEBUG_LOG2(_L("CIkev1Dialog::GetAsyncSecureidPinDialogL(), aUserInfo =  %x, aCallback = %x"), aUserInfo, aCallback);
-    
-    iDialogType = TKMDDialog::ESecurIdPin;
-    iUserInfo   = aUserInfo;
-    iCallback   = aCallback; // For asynchronous dialog RunL
-
-    TIPSecDialogInfo dialog_input(TKMDDialog::ESecurIdPin, 0);      
-    iInputData = CreateDialogInput(dialog_input, ETrue);// TRUE = Use user name cache       
-    if ( iInputData )
-       LaunchDialogL();   //launch the dialog
-}
-
-
-/*--------------------------------------------------------------------
- *
  *  Get user name and Secure ID next pin data for Legacy authentication
  *
  *---------------------------------------------------------------------*/
@@ -624,9 +607,11 @@
     {
 		TInt err;
 		DEBUG_LOG2(_L("Calling DialogCompleteL(), UserInfo = %x, Callback = %x"), (TUint32)iDialog->UserInfo(), (TUint32)Callback);					
-        TRAP(err, delete_dialog = Callback->DialogCompleteL(
-            iDialog->UserInfo(), NULL, NULL));
-
+        TRAP(err, delete_dialog = Callback->DialogCompleteL(iDialog,
+                                                            iDialog->UserInfo(),
+                                                            NULL,               //User name
+                                                            NULL,               //Password
+                                                            NULL));             //domain
 		DEBUG_LOG2(_L("DialogCompleteL() completed, err = %d, delete_dialog = %d"), err, delete_dialog);			
 		if ( err != KErrNone )
 			delete_dialog = 1;